1
+ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT-0
3
+
1
4
AWSTemplateFormatVersion : ' 2010-09-09'
2
5
Transform : ' AWS::Serverless-2016-10-31'
3
- 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
4
7
Metadata :
5
8
AWS::CloudFormation::Interface :
6
9
ParameterGroups :
@@ -26,7 +29,6 @@ Parameters:
26
29
AppInstanceClass :
27
30
Description : ' The application EC2 instance class'
28
31
Type : String
29
- # Default: c6g.xlarge
30
32
Default : t4g.micro
31
33
MinLength : ' 8'
32
34
MaxLength : ' 63'
@@ -35,15 +37,15 @@ Parameters:
35
37
AppInstanceSecurityGroup :
36
38
Description : ' A security group with inbound rules for SSH connectivity from customer computer. And RDBMS and ElastiCache'
37
39
Type : String
38
- Default : sg-0a87f73dcc1dffc4f
40
+ Default : a-valid- sg-that-allows-ssh-database-and-EC-access
39
41
MinLength : ' 8'
40
42
MaxLength : ' 63'
41
43
# AllowedPattern: "^[a-zA-Z]+[0-9]+[-]*$"
42
44
43
45
AppInstanceSubnet :
44
46
Description : ' A valid subnet name in the default VPC'
45
47
Type : String
46
- Default : subnet-05cfa282f9b9dc8df
48
+ Default : pick-a-valid-subnet
47
49
MinLength : ' 8'
48
50
MaxLength : ' 63'
49
51
# AllowedPattern: "^[A-Za-z]+[0-9A-Z-]*$"
@@ -75,7 +77,15 @@ Resources:
75
77
SecurityGroupIds :
76
78
- !Ref AppInstanceSecurityGroup
77
79
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"
78
88
Tags :
79
89
-
80
90
Key : Name
81
- Value : !Ref AppInstanceName
91
+ Value : !Ref AppInstanceName
0 commit comments