Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_comment": "Packer Test - Build",
- "variables": {
- "aws_access_key": "<access>",
- "aws_secret_key": "<key>",
- "region": "us-east-1"
- },
- "builders": [{
- "access_key": "{{user `aws_access_key`}}",
- "secret_key": "{{user `aws_secret_key`}}",
- "type": "amazon-ebs",
- "source_ami": "ami-<ami>",
- "instance_type": "m3.xlarge",
- "ssh_interface": "private_ip",
- "vpc_id": "vpc-<vpc>",
- "subnet_id": "subnet-<subnet>",
- "availability_zone": "us-east-1d",
- "security_group_id": "sg-<sg>",
- "ssh_pty": true,
- "ssh_username": "centos",
- "ssh_keypair_name": "centos",
- "ssh_private_key_file": "C:\\Users\\kishore_venkataraman\\key.pem",
- "ami_name": "Ezto Packer"
- }],
- "provisioners": [{
- "type": "shell",
- "inline_shebang": "/bin/bash -se",
- "remote_path": "/home/centos",
- "inline": [
- "sudo touch /tmp/packer_test",
- "touch /tmp/hello_test"
- ]
- }]
- }
Add Comment
Please, Sign In to add comment