Last active
December 19, 2015 03:38
-
-
Save tsabat/5891427 to your computer and use it in GitHub Desktop.
an aws launch config creation script
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 | |
LAUNCH_CONFIG_NAME="app-launch-config" | |
IMAGE_ID="ami-55198965" | |
INSTNCE_TYPE="c1.medium" | |
KEY="codepen_west" | |
GROUP="default" | |
USER_DATA_FILE="chef_userdata.sh" | |
MONITORING_ENABLED="--monitoring-enabled" | |
as-create-launch-config $LAUNCH_CONFIG_NAME \ | |
--image-id $IMAGE_ID \ | |
--instance-type $INSTNCE_TYPE \ | |
--group $GROUP \ | |
--user-data-file $USER_DATA_FILE \ | |
$MONITORING_ENABLED | |
as-describe-launch-configs $LAUNCH_CONFIG_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment