Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "variables": {
- "intsance_size": "t2.small",
- "ami_name": "ami-ryanj",
- "base_ami": "ami-1853ac65",
- "ssh_username": "ec2-user",
- "vpc_id": "",
- "subnet_id": ""
- },
- "builders": [{
- "type": "amazon-ebs",
- "region": "us-east-1",
- "source_ami": "{{ user `base_ami`}}",
- "instance_type": "{{ user `intsance_size` }}",
- "ssh_username": "{{ user `ssh_username` }}",
- "ssh_timeout": "20m",
- "ami_name": "{{ user `ami_name` }}",
- "ssh_pty": "true",
- "vpc_id": "{{ user `wpc_id` }}",
- "subnet_id": "{{ user `subnet_id` }}",
- "tags": {
- "Name": "App Name",
- "BuiltBy": "Packer"
- }
- }],
- "description": "AWS Image",
- "provisioners": [
- {
- "type": "shell",
- "inline": [
- "sudo yum upate -y",
- "sudo yum install -y git"
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement