Last active
August 29, 2015 14:26
-
-
Save dsalazar-carecloud/5cd7dbdbc1b941ba3909 to your computer and use it in GitHub Desktop.
Knife server create
This file contains 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
# 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