O'Reilly logo

AWS Administration Cookbook by Rowan Udell, Lucas Chan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Create a new CloudFormation template. We're going to add a total of 12 parameters to it:

  1. The first three parameters will contain the values we mentioned in the Getting ready section:
      VPCId:         Type: AWS::EC2::VPC::Id         Description: VPC where DB will launch       SubnetIds:         Type: List<AWS::EC2::Subnet::Id>         Description: Subnets where the DB will launch (pick at least 2)       SecurityGroupAllowCidr:         Type: String         Description: Allow this CIDR block to access the DB         Default: "172.30.0.0/16"
  1. We're also going to add the database credentials as parameters. This is good practice as it means we're not storing any credentials in our infrastructure source code. Note that the password contains the NoEcho parameter set to true. This stops ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required