Created
July 22, 2020 09:22
-
-
Save tuladhar/2957a4a01993bbba86f615c76ccf17ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserData: | |
Fn::Base64: | |
Fn::Sub: | |
- | | |
#!/bin/bash -xe | |
echo ECS_CLUSTER=${EcsCluster} >> /etc/ecs/ecs.config | |
yum install -y aws-cfn-bootstrap ec2-instance-connect awscli | |
amazon-linux-extras install epel | |
yum install -y s3fs-fuse | |
mkdir -p /srv/omaha_s3 | |
s3fs ${OmahaS3BucketName} /srv/omaha_s3 -o iam_role=auto | |
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource EcsAutoScalingGroup --region ${AWS::Region} | |
- OmahaS3BucketName: | |
Fn::ImportValue: !Sub "${EnvironmentName}:BucketName" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment