autoscaling create-launch-configuration コマンドのサンプル
--associate-public-ip-address を指定したコンフィグを使用してEC2を起動しようとするとエラーになるので注意!
動作確認環境
OS : Mac OS X 10.9 awscli : 1.4.3 Credential : ~/.aws/credintial
VPCのcreate-launch-configuration コマンドのサンプル
aws --profile <PROFILE> autoscaling create-launch-configuration --launch-configuration-name <LAUNCH_CONFIG_NAME> --image-id <AMI_ID> --key-name <KEY_PAIR> --security-groups <SECURITY_GROUP_ID> --instance-type <INSTANCE_TYPE> --iam-instance-profile <INSTANCE_PROFILE> --no-ebs-optimized --associate-public-ip-address --user-data file://<USER_DATA_FILE>
EC2のcreate-launch-configuration コマンドのサンプル
aws --profile <PROFILE> autoscaling create-launch-configuration --launch-configuration-name <LAUNCH_CONFIG_NAME> --image-id <AMI_ID> --key-name <KEY_PAIR> --security-groups <SECURITY_GROUP_ID> --instance-type <INSTANCE_TYPE> --spot-price <SPOT_PRICE> --no-ebs-optimized