AWS Fundamentals Logo
AWS Fundamentals
AWS::MemoryDB::SubnetGroup

MemoryDB SubnetGroup

The AWS::MemoryDB::SubnetGroup resource creates an Amazon MemoryDB Subnet Group.

Properties

4 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
SubnetGroupName
string
RequiredCreate-only
SubnetIds
Array<string>
Required
Description
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ARNstringThe Amazon Resource Name (ARN) of the subnet group.
SupportedNetworkTypesArray<string>Supported network types would be a list of network types supported by subnet group and can be either [ipv4] or [ipv4, dual_stack] or [ipv6].

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::MemoryDB::SubnetGroup

Resources:
  MyResource:
    Type: AWS::MemoryDB::SubnetGroup
    Properties:
      SubnetGroupName: "my-subnetgroupname"
      SubnetIds: "my-subnetids"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

memorydb:CreateSubnetGroupmemorydb:DescribeSubnetGroupsmemorydb:TagResourcememorydb:ListTagsiam:CreateServiceLinkedRole

read

memorydb:DescribeSubnetGroupsmemorydb:ListTags

update

memorydb:UpdateSubnetGroupmemorydb:DescribeSubnetGroupsmemorydb:ListTagsmemorydb:TagResourcememorydb:UntagResource

delete

memorydb:DeleteSubnetGroupmemorydb:DescribeSubnetGroups

list

memorydb:DescribeSubnetGroups

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceMemoryDB
Properties6
Required2
TaggingSupported
Primary IDSubnetGroupName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

SubnetGroupName

External Links