Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Use Cloud9 to create a packerfile.json with the following contents:
- It should use the AWS builder.
- The region should be set to us-east-1.
- Source AMI should use the ami_base variable.
- Instance Type should use the instance_size variable.
- SSH username should use the ssh_username variable.
- The ssh timeout should be set to 20m.
- The AMI name should use the ami_name variable.
- Set SSH pty to true.
- Set the VPC ID to use the vpc_id variable.
- Set the Subnet ID to use the subnet_id variable.
- Create two tags:
- Call the first one Name with a value of “Base AMI”.
- Call the second BuiltBy and set it to “Packer”.
- The description should be set to “AWS image”.
- Create an inline shell provisioner that will execute a yum update and install git.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement