Skip to content

Instantly share code, notes, and snippets.

@dsalazar-carecloud
Last active August 29, 2015 14:26
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 dsalazar-carecloud/5cd7dbdbc1b941ba3909 to your computer and use it in GitHub Desktop.
Save dsalazar-carecloud/5cd7dbdbc1b941ba3909 to your computer and use it in GitHub Desktop.
Knife server create
# Optional
# --server-connect-attribute and --ssh-gateway flags are only required when target server is behind an ssh Gateway.
# --iam-profile
# Only applies to AWS based environments.
knife ec2 server create \
--node-name $node_name \
--flavor $ec2_flavour \
--image $ami \
--run-list "$run_list" \
--json-attributes '$json_attributes'
--ssh-user ubuntu \
--ssh-key $key_pair \
--identity-file $identity_file \
--environment $environment \
--distro $bootstrap_file \
--security-group-ids $security_group \
--subnet $subnet \
--availability-zone $availability_zone \
--iam-profile $iam_profile \
--server-connect-attribute private_ip_address \
--ssh-gateway $ssh_gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment