Skip to content

Commit

Permalink
Amazon ElastiCache Caching for Amazon RDS - Guidance Cloudformation
Browse files Browse the repository at this point in the history
  • Loading branch information
rlunar committed May 31, 2024
1 parent c39ed2a commit b5d6c6d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions guidance/guidance-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Create and EC2 to demonstrate the benefits of pairing RDBSM workloads with AWS ElastiCache
Description: Create and EC2 to demonstrate the benefits of pairing RDBMS workloads with AWS ElastiCache
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand All @@ -29,7 +29,6 @@ Parameters:
AppInstanceClass:
Description: 'The application EC2 instance class'
Type: String
# Default: c6g.xlarge
Default: t4g.micro
MinLength: '8'
MaxLength: '63'
Expand All @@ -38,15 +37,15 @@ Parameters:
AppInstanceSecurityGroup:
Description: 'A security group with inbound rules for SSH connectivity from customer computer. And RDBMS and ElastiCache'
Type: String
Default: default_security_group_id
Default: a-valid-sg-that-allows-ssh-database-and-EC-access
MinLength: '8'
MaxLength: '63'
# AllowedPattern: "^[a-zA-Z]+[0-9]+[-]*$"

AppInstanceSubnet:
Description: 'A valid subnet name in the default VPC'
Type: String
Default: default_subnet_name_id
Default: pick-a-valid-subnet
MinLength: '8'
MaxLength: '63'
# AllowedPattern: "^[A-Za-z]+[0-9A-Z-]*$"
Expand Down Expand Up @@ -78,6 +77,14 @@ Resources:
SecurityGroupIds:
- !Ref AppInstanceSecurityGroup
SubnetId: !Ref AppInstanceSubnet
BlockDeviceMappings:
- DeviceName: "/dev/xvda"
Ebs:
VolumeType: "io1"
Iops: "200"
DeleteOnTermination: "true"
VolumeSize: !Ref AppInstanceStorage
Encrypted: "true"
Tags:
-
Key: Name
Expand Down

0 comments on commit b5d6c6d

Please sign in to comment.