Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pickering <[email protected]>
  • Loading branch information
alexvpickering committed Dec 10, 2024
1 parent 6810c18 commit 037cb5c
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions cf/rds-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,53 +57,53 @@ Resources:
- !Sub "arn:aws:rds:${AWS::Region}:${AWS::AccountId}:cluster:aurora-cluster-${Environment}"

RDSLaunchTemplate:
Type: AWS::EC2::LaunchTemplate
Properties:
LaunchTemplateName: !Sub "rds-${Environment}-ssm-launch-template"
LaunchTemplateData:
InstanceType: t2.nano
IamInstanceProfile: !Ref SSMProfile
MetadataOptions:
HttpTokens: required
HttpEndpoint: enabled
BlockDeviceMappings:
- DeviceName: "/dev/xvda"
Ebs:
VolumeSize: 8
Encrypted: true
SecurityGroupIds:
- Fn::ImportValue: !Sub "biomage-${Environment}-rds::RDSAgentSecurityGroupId"
#UserData Runs when ec2 is being deployed
UserData:
Fn::Base64:
'
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
Type: AWS::EC2::LaunchTemplate
Properties:
LaunchTemplateName: !Sub "rds-${Environment}-ssm-launch-template"
LaunchTemplateData:
InstanceType: t2.nano
IamInstanceProfile: !Ref SSMProfile
MetadataOptions:
HttpTokens: required
HttpEndpoint: enabled
BlockDeviceMappings:
- DeviceName: "/dev/xvda"
Ebs:
VolumeSize: 8
Encrypted: true
SecurityGroupIds:
- Fn::ImportValue: !Sub "biomage-${Environment}-rds::RDSAgentSecurityGroupId"
#UserData Runs when ec2 is being deployed
UserData:
Fn::Base64:
'
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
cloud_final_modules:
- [scripts-user, always]
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -e
sudo yum -y install postgresql
'
TagSpecifications:
- ResourceType: instance
Tags:
- Key: "Name"
Value: !Sub "rds-${Environment}-ssm-agent"
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -e
sudo yum -y install postgresql
'
TagSpecifications:
- ResourceType: instance
Tags:
- Key: "Name"
Value: !Sub "rds-${Environment}-ssm-agent"

RDSAgent:
Type: AWS::EC2::Instance
Expand Down

0 comments on commit 037cb5c

Please sign in to comment.