Good suggestion.  Unfortunately, I'm getting the same error still.  Here's 
the json file:

{
  "variables": {
    "aws_access_key_id": "",
    "aws_secret_access_key": ""
  },
  "builders": [{
    "type": "amazon-ebs",
    "access_key": "{{user `aws_access_key_id`}}",
    "secret_key": "{{user `aws_secret_access_key`}}",
    "region": "us-east-1",
    "vpc_id": "REDACTED",
    "subnet_id": "REDACTED",
    "source_ami": "ami-0b898040803850657",
    "instance_type": "t2.micro",
    "ssh_username": "ec2-user",
    "ami_name": "REDACTED",
    "ami_description": "REDACTED",
    "ami_regions": [
      "us-east-1",
      "us-west-1",
      "us-west-2",
      "ap-northeast-1",
      "ap-southeast-1",
      "ap-southeast-2",
      "eu-west-1",
      "sa-east-1"
    ],
    "ami_users": [
      "REDACTED"
    ]
  }],
  "provisioners":[
    {
    "type": "shell",
    "inline": [
      "sleep 30"
      ]
    },
    {
    "type": "shell",
    "script": "01_system_repos_and_kernels.sh"
    },
    {
    "type": "shell",
    "inline": [
      "sudo /sbin/reboot"
      ]
    },
    {
    "type": "shell",
    "pause_before": "30s",
    "script": "02_userland_packages.sh"
    },
    {
    "type": "shell",
    "inline": [
      "sudo /sbin/reboot"
      ]
    },
    {
    "type": "shell",
    "pause_before": "30s",
    "scripts": [
      "91_cleanup.sh"
      ]
    }
  ]
}
 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/88fc8c5e-3940-4f49-b0b7-d454206cd2fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to