33
44AWSTemplateFormatVersion : ' 2010-09-09'
55Transform : ' AWS::Serverless-2016-10-31'
6- Description : Create and EC2 to demonstrate the benefits of pairing RDBSM workloads with AWS ElastiCache
6+ Description : Create and EC2 to demonstrate the benefits of pairing RDBMS workloads with AWS ElastiCache
77Metadata :
88 AWS::CloudFormation::Interface :
99 ParameterGroups :
@@ -29,7 +29,6 @@ Parameters:
2929 AppInstanceClass :
3030 Description : ' The application EC2 instance class'
3131 Type : String
32- # Default: c6g.xlarge
3332 Default : t4g.micro
3433 MinLength : ' 8'
3534 MaxLength : ' 63'
@@ -38,15 +37,15 @@ Parameters:
3837 AppInstanceSecurityGroup :
3938 Description : ' A security group with inbound rules for SSH connectivity from customer computer. And RDBMS and ElastiCache'
4039 Type : String
41- Default : default_security_group_id
40+ Default : a-valid-sg-that-allows-ssh-database-and-EC-access
4241 MinLength : ' 8'
4342 MaxLength : ' 63'
4443 # AllowedPattern: "^[a-zA-Z]+[0-9]+[-]*$"
4544
4645 AppInstanceSubnet :
4746 Description : ' A valid subnet name in the default VPC'
4847 Type : String
49- Default : default_subnet_name_id
48+ Default : pick-a-valid-subnet
5049 MinLength : ' 8'
5150 MaxLength : ' 63'
5251 # AllowedPattern: "^[A-Za-z]+[0-9A-Z-]*$"
@@ -78,6 +77,14 @@ Resources:
7877 SecurityGroupIds :
7978 - !Ref AppInstanceSecurityGroup
8079 SubnetId : !Ref AppInstanceSubnet
80+ BlockDeviceMappings :
81+ - DeviceName : " /dev/xvda"
82+ Ebs :
83+ VolumeType : " io1"
84+ Iops : " 200"
85+ DeleteOnTermination : " true"
86+ VolumeSize : !Ref AppInstanceStorage
87+ Encrypted : " true"
8188 Tags :
8289 -
8390 Key : Name
0 commit comments