Secondary Region

Creating the Default VPC Parameter

The secondary region CloudFormation Template is utilizing the default VPC. We need to create a parameter with that default VPC ID before we deploy the CloudFormation template.

1.1 Click AWS Cloudshell to navigate to the dashboard in the N. Virginia (us-east-1) region.

1.2 If you have never used CloudShell you will be prompted with a Welcome to AWS CloudShell message, click the Close button.

1.3 Once you see the prompt, paste the following AWS CLI commands. You will be prompted with a Safe Paste for multiline text message, click the Paste button.

export DEFAULT_VPC=$(aws ec2 describe-vpcs --filters Name=isDefault,Values=true --query "Vpcs[].VpcId" --region us-west-1 --output text) 
aws ssm put-parameter --name "/deployer/backupandrestore-secondary/default-vpc" --value $DEFAULT_VPC --type "String"  --overwrite --region us-west-1

Deploying the Amazon CloudFormation Template

2.1 Create the application in the secondary region N. California (us-west-1) by launching CloudFormation Template.

2.2 Click the Next button.

2.3 Click the Next button.

Leave LatestAmiId as the default values

2.4 Click the Next button.

2.5 Scroll to the bottom of the page and enable the I acknowledge that AWS CloudFormation might create IAM resources with custom names checkbox, then click the Create stack button.

You will need to wait for the BackupAndRestore Primary Region stack to have a status of Completed before moving on to the next step. This will take approximately 15 minutes.