Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Use Cloud9 to create a packerfile.json with the following contents:
  2.  
  3.  
  4. It should use the AWS builder.
  5. The region should be set to us-east-1.
  6. Source AMI should use the ami_base variable.
  7. Instance Type should use the instance_size variable.
  8. SSH username should use the ssh_username variable.
  9. The ssh timeout should be set to 20m.
  10. The AMI name should use the ami_name variable.
  11. Set SSH pty to true.
  12. Set the VPC ID to use the vpc_id variable.
  13. Set the Subnet ID to use the subnet_id variable.
  14. Create two tags:
  15. Call the first one Name with a value of “Base AMI”.
  16. Call the second BuiltBy and set it to “Packer”.
  17. The description should be set to “AWS image”.
  18. Create an inline shell provisioner that will execute a yum update and install git.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement