AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

AWS::RDS::DBSubnetGroup

The AWS::RDS::DBSubnetGroup type creates an RDS database subnet group. Subnet groups must contain at least one subnet in two availability zones in the region.

Syntax

{
   "Type" : "AWS::RDS::DBSubnetGroup",
   "Properties" : {
      "DBSubnetGroupDescription" : String,
      "SubnetIds" : [ String, ... ],
      "Tags" : [ Resource Tag, ... ]
   }
}     

Properties

DBSubnetGroupDescription

The description for the DB Subnet Group.

Required: Yes

Type: String

Update requires: No interruption

SubnetIds

The EC2 Subnet IDs for the DB Subnet Group.

Required: Yes

Type: A list of strings

Update requires: No interruption

Tags

The tags that you want to attach to the RDS database subnet group.

Required: No

Type: A list of resource tags.

Update requires: No interruption

Example

{
   "AWSTemplateFormatVersion" : "2010-09-09",
   "Resources" : {
      "myDBSubnetGroup" : {
         "Type" : "AWS::RDS::DBSubnetGroup",
         "Properties" : {
            "DBSubnetGroupDescription" : "description",
            "SubnetIds" : [ "subnet-7b5b4112", "subnet-7b5b4115" ],
            "Tags" : [ {"key" : "value", "key2" : "value2"} ]
         }
      }
   }
}     

See Also