Last active
September 2, 2016 05:50
-
-
Save hadashiA/4353436 to your computer and use it in GitHub Desktop.
launch instance for knife-ec2
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
#USAGE: knife ec2 server create (options) | |
# -Z, --availability-zone ZONE The Availability Zone | |
# -A, --aws-access-key-id KEY Your AWS Access Key ID | |
# -K SECRET, Your AWS API Secret Access Key | |
# --aws-secret-access-key | |
# --user-data USER_DATA_FILE The EC2 User Data file to provision the instance with | |
# --bootstrap-version VERSION The version of Chef to install | |
# -N, --node-name NAME The Chef node name for your new node | |
# --server-url URL Chef Server URL | |
# -k, --key KEY API Client Key | |
# --[no-]color Use colored output, defaults to enabled | |
# -c, --config CONFIG The configuration file to use | |
# --defaults Accept default values for all questions | |
# --disable-editing Do not open EDITOR, just accept the data as is | |
# -d, --distro DISTRO Bootstrap a distro using a template; default is 'chef-full' | |
# --ebs-no-delete-on-term Do not delete EBS volume on instance termination | |
# --ebs-optimized Enabled optimized EBS I/O | |
# --ebs-size SIZE The size of the EBS volume in GB, for EBS-backed instances | |
# -e, --editor EDITOR Set the editor to use for interactive commands | |
# -E, --environment ENVIRONMENT Set the Chef environment | |
# --ephemeral EPHEMERAL_DEVICES | |
# Comma separated list of device locations (eg - /dev/sdb) to map ephemeral devices | |
# -f, --flavor FLAVOR The flavor of server (m1.small, m1.medium, etc) | |
# -F, --format FORMAT Which format to use for output | |
# --hint HINT_NAME[=HINT_FILE] Specify Ohai Hint to be set on the bootstrap target. Use multiple --hint options to specify multiple hints. | |
# --[no-]host-key-verify Verify host key, enabled by default. | |
# -i IDENTITY_FILE, The SSH identity file used for authentication | |
# --identity-file | |
# -I, --image IMAGE The AMI for the server | |
# -j, --json-attributes JSON A JSON string to be added to the first run of chef-client | |
# -u, --user USER API Client Username | |
# --prerelease Install the pre-release chef gems | |
# --print-after Show the data after a destructive operation | |
# --region REGION Your AWS region | |
# -r, --run-list RUN_LIST Comma separated list of roles/recipes to apply | |
# -g, --security-group-ids X,Y,Z The security group ids for this server; required when using VPC | |
# -G, --groups X,Y,Z The security groups for this server; not allowed when using VPC | |
# -a ATTRIBUTE, The EC2 server attribute to use for SSH connection | |
# --server-connect-attribute | |
# -w, --ssh-gateway GATEWAY The ssh gateway server | |
# -S, --ssh-key KEY The AWS SSH key id | |
# -P, --ssh-password PASSWORD The ssh password | |
# -p, --ssh-port PORT The ssh port | |
# -x, --ssh-user USERNAME The ssh username | |
# -s, --subnet SUBNET-ID create node in this Virtual Private Cloud Subnet ID (implies VPC mode) | |
# -T Tag=Value[,Tag=Value...], The tags for this server | |
# --tags | |
# --template-file TEMPLATE Full path to location of template to use | |
# -V, --verbose More verbose output. Use twice for max verbosity | |
# -v, --version Show chef version | |
# -y, --yes Say yes to all prompts for confirmation | |
# -h, --help Show this message | |
knife ec2 server create -x ubuntu -i ~/Dropbox/keys/aws/fuwah.pem -S fuwah -I ami-aace75ab -f m1.small --region ap-northeast-1 -Z ap-northeast-1b -g dev -r 'role[development]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment