Skip to content

Instantly share code, notes, and snippets.

@okram999
Last active December 16, 2016 21:20
Show Gist options
  • Save okram999/7c325850a6f23761f6251c3921050dd7 to your computer and use it in GitHub Desktop.
Save okram999/7c325850a6f23761f6251c3921050dd7 to your computer and use it in GitHub Desktop.
Some commands to provision env
##aws cli command to create an EC2
aws ec2 run-instances --image-id ami-d440a6e7 --security-group-ids sg-1a534363 --count 1 --instance-type t2.micro --key-name aws-hplap --query 'Instances[0].InstanceId'
##knife bootstrap
knife bootstrap ec2-54-202-209-195.us-west-2.compute.amazonaws.com -r "role[jenkinsCI_1]" -x centos -E utilities_dev_1 -N jen --sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment