Hi all,
Trying to use amazon-ebs builder with ansible provision
I'm behind a NAT and trying to do the bake on aws, but after 5 minutes the 
ssh connections is shutdown and the bake fails
any thoughts? thanks


this is my packer json:

{
    "builders": [
      {
        "type": "amazon-ebs",
        "access_key": "{{user `aws_access_key`}}",
        "secret_key": "{{user `aws_secret_key`}}",
        "region": "{{user `aws_region`}}",
        "iam_instance_profile": "{{user `iam_instance_profile`}}",
        "launch_block_device_mappings": [ {
            "device_name": "/dev/sda1",
            "volume_size": "{{user `volume`}}"
        } ],
        "source_ami": "{{user `source_ami_id`}}",
        "associate_public_ip_address": true,
        "force_deregister": true,
        "ssh_pty": false,
        "ssh_timeout": "600s",
        "ssh_keypair_name" : "{{user `ssh_keypair_name`}}",
        "ssh_private_key_file" : "{{user `ssh_private_key_file`}}",
        "ssh_username": "{{user `ssh_user`}}",
        "instance_type": "{{user `ami_instance_type`}}",
        "ami_name": "{{user `ami_name`}} {{isotime `2006-01-02 03_04_05`}}",
        "ami_regions": ["us-west-1","us-west-2","eu-west-1","eu-central-1"],
        "tags": {
          "Name": "{{user `ami_name`}}",
          "Version": "{{user `version`}}",
          "Packer": "true"
        },
        "ami_description": "{{user `ami_description`}}"
      }
    ],
    "provisioners": [
       {
          "type": "ansible",
          "ansible_env_vars": [ 
"ANSIBLE_HOST_KEY_CHECKING=False","ANSIBLE_CONFIG=/home/admin/ioto-edge/ansible.cfg"],
          "playbook_file": "{{user `playbook_file`}}",
          "host_alias":"{{user `ami_name`}}",
          "user":"{{user `ssh_user`}}",
          "extra_arguments": [ "--vault-password-file","{{user 
`vault_file`}}"]
       }
     ]
}

-- 
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/5a462600-6d96-456a-967f-0d000db7e998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to