Configuring supporting RDS resources

Referring back to the preceding example, it is clear that you need to configure at least two additional supporting resources for the RDS instance:

  • ApplicationDatabaseSecurityGroup: A security group resource that defines the ingress and egress security rules applied to the RDS instance.
  • ApplicationDatabaseSubnetGroup: A list of subnets that the RDS instance can be deployed to.

In addition to these resources, the following example demonstrates we also need to add a few more:

...Resources:  ApplicationDatabase:    Type: AWS::RDS::DBInstance    Properties:      Engine: MySQL      EngineVersion: 5.7      DBInstanceClass: db.t2.micro      AllocatedStorage: 10      StorageType: gp2      MasterUsername: todobackend      MasterUserPassword: Ref: DatabasePassword ...

Get Docker on Amazon Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.