Dear All,
I am trying to create an Amazon base image using the centoOS 7.6 iso from 
https://mirrors.edge.kernel.org/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso
I am able to get the AMI as ami-XXXXX with out any problem.

Now using this output AMI ami-XXXXX, I want to create a another base AMI 
with some custom configuration, which I want to distribute across my org.

I am getting everytime the following issue 
[image: screen shot 2019-02-13 at 7 16 46 pm]


Following in my json

{
  "variables": {
    "region": "XXXX",
    "creator": "{{env `USER`}}",
    "ami_name": "centos-7-base-ami-{{timestamp}}",
    "source_ami_id": "XXXXX",
    "instance_type": "c5.large",
    "aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
    "aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
    "encrypted": "true"
  },
  "builders": [
    {
      "access_key": "{{user `aws_access_key`}}",
      "secret_key": "{{user `aws_secret_key`}}",
      "iam_instance_profile": "packer",
      "type": "amazon-ebs",
      "region": "XXXX",
      "source_ami": "{{user `source_ami_id`}}",
      "instance_type": "{{user `instance_type`}}",
      "ssh_username": "centos",
      "ami_name": "{{user `ami_name`}}",
      "ami_description": "CentOS 7 Base AMI",
      "associate_public_ip_address": true
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "script": "test.sh",
      "expect_disconnect": true
    },
    {
      "type": "shell",
      "script": "cleanup.sh"
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/centOS-7.6-base-ami.yaml",
      "role_paths": [
                "ansible/roles/"
            ],
      "playbook_dir": "ansible"
    }

  ],
  "post-processors": [
    {
      "type": "manifest",
      "output": "manifest.json",
      "strip_path": true
    }
  ]
}




Please help me to resolve this error, It is driving me nuts

-- 
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/986b4ab3-bbf9-4504-bfa4-61a06be9adc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to