Last active
March 9, 2018 18:41
-
-
Save kishore-vkrn/c643a87f551486a6d241cd73857314a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_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" | |
| ] | |
| }] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment