Created
May 31, 2018 03:19
-
-
Save spg/ac0ce6ce8b879c5e4f77b0877b58ca9b to your computer and use it in GitHub Desktop.
user-data.yml
This file contains hidden or 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
#!/bin/bash -x | |
yum -y install mysql # provisioning example | |
# Signal that the instance is ready | |
INSTANCE_ID=`wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` | |
aws ec2 create-tags --resources $INSTANCE_ID --tags Key=UserDataFinished,Value=true --region ${AWS::Region} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment