What's the error message you are getting?
On Mon, Feb 4, 2019 at 7:33 PM Frank Dias <[email protected]> wrote:
> I am using the following packer file; it is failing on the last function
> of copying to other regions.
> copying encrypted AIM not supported. I would think that it would copy
> first then encrypt.
> any help would be greatly appreciated.
>
> Frank
>
> {
> "_comment": "To create a new AMI in us-west-2 run:",
> "_comment": " packer build -var aws_region='us-west-2' dockerhost.json",
> "_comment": "To create an AMI and copy to one or more regions, run:",
> "_comment": " packer build -var aws_region='us-west-2' -var
> copy_to='us-west-1,eu-central-1' dockerhost.json",
> "variables": {
> "aws_region": "",
> "copy_to": "",
> "aws_vpc_id": "",
> "aws_subnet_id": "",
> "instance_type": "m3.medium",
> "version": "0.0.3"
> },
> "builders": [{
> "type": "amazon-ebs",
> "vpc_id": "{{user `aws_vpc_id`}}",
> "subnet_id": "{{user `aws_subnet_id`}}",
> "region": "{{user `aws_region`}}",
> "ami_regions": "{{user `copy_to`}}",
> "source_ami_filter": {
> "filters": {
> "virtualization-type": "hvm",
> "name": "CentOS Linux 7*",
> "state": "available",
> "root-device-type": "ebs"
> },
> "owners": [ "679593333241" ],
> "most_recent": true
> },
> "user_data_file": "./scripts/disable_requiretty.sh",
> "instance_type": "{{user `instance_type`}}",
> "ssh_username": "centos",
> "ami_name": "dockerhost {{timestamp}}",
> "encrypt_boot": true,
> "ena_support": true,
> "tags": {
> "Owner": "arrayent",
> "Version": "{{user `version`}}",
> "Environment": "packer build"
> }
> }],
> "provisioners": [{
> "type": "ansible",
> "user": "centos",
> "extra_arguments": "-vvv",
> "pause_before": "10s",
> "sftp_command": "/usr/libexec/openssh/sftp-server",
> "playbook_file": "../playbooks/packer/play.yml"
> }]
> }
>
> --
> 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/ee19e981-65b7-4df8-9c99-8be1012d53ee%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/ee19e981-65b7-4df8-9c99-8be1012d53ee%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CALz9Rt8vze9oPWV%2BVeDtosN9aP%3Dfg439RsXvNc6Y-JqaeTpZWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.