Skip to content

Instantly share code, notes, and snippets.

@tsabat
Last active December 19, 2015 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsabat/5891427 to your computer and use it in GitHub Desktop.
Save tsabat/5891427 to your computer and use it in GitHub Desktop.
an aws launch config creation script
#!/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