Guest User

Untitled

a guest
Mar 18th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. {
  2. "_comment": "Packer Test - Build",
  3. "variables": {
  4. "aws_access_key": "<access>",
  5. "aws_secret_key": "<key>",
  6. "region": "us-east-1"
  7. },
  8. "builders": [{
  9. "access_key": "{{user `aws_access_key`}}",
  10. "secret_key": "{{user `aws_secret_key`}}",
  11. "type": "amazon-ebs",
  12. "source_ami": "ami-<ami>",
  13. "instance_type": "m3.xlarge",
  14. "ssh_interface": "private_ip",
  15. "vpc_id": "vpc-<vpc>",
  16. "subnet_id": "subnet-<subnet>",
  17. "availability_zone": "us-east-1d",
  18. "security_group_id": "sg-<sg>",
  19. "ssh_pty": true,
  20. "ssh_username": "centos",
  21. "ssh_keypair_name": "centos",
  22. "ssh_private_key_file": "C:\\Users\\kishore_venkataraman\\key.pem",
  23. "ami_name": "Ezto Packer"
  24. }],
  25. "provisioners": [{
  26. "type": "shell",
  27. "inline_shebang": "/bin/bash -se",
  28. "remote_path": "/home/centos",
  29. "inline": [
  30. "sudo touch /tmp/packer_test",
  31. "touch /tmp/hello_test"
  32. ]
  33. }]
  34. }
Add Comment
Please, Sign In to add comment