dist: aws ami workaround for packer throwing an error at build time

Using the base fedora22 image there are many updates - for an unknown
reason after doing all the rpm installs we are getting

    amazon-ebs:
    amazon-ebs: Complete!
    amazon-ebs: Failed to execute operation: Access denied
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: No AMIs to cleanup
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1

The workaround is to create fedora22 image that already pulled the
updates

Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
This commit is contained in:
Shlomi Livne
2015-09-19 00:14:12 +03:00
parent 55dc4c2d83
commit b820fa1e58

View File

@@ -8,7 +8,7 @@
"security_group_id": "{{user `security_group_id`}}",
"region": "{{user `region`}}",
"associate_public_ip_address": "{{user `associate_public_ip_address`}}",
"source_ami": "ami-76dfc41e",
"source_ami": "ami-d1b1c1b4",
"instance_type": "{{user `instance_type`}}",
"ssh_username": "fedora",
"ssh_timeout": "5m",