Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all AMIs in amis.json are public. #202

Closed
rhass opened this issue Oct 28, 2015 · 5 comments
Closed

Not all AMIs in amis.json are public. #202

rhass opened this issue Oct 28, 2015 · 5 comments

Comments

@rhass
Copy link

rhass commented Oct 28, 2015

When attempting to create a Windows 2012r2 kitchen instance in us-west-2 the following error occurred:

>>>>>> Message: Failed to complete #create action: [Not authorized for images: [ami-adf8cb9d]]

It seems like the AMI was not marked public after being created.

@rhass rhass changed the title Windows 2012r2 AMI in us-west-2 is not public Not all AMIs in amis.json are public. Oct 28, 2015
@rhass
Copy link
Author

rhass commented Oct 28, 2015

The permissions issue appears to be with multiple images (or they don't actually exist.) All the AMIs in us-west-2 do not appear to be visible, with exception to the centos AMI.

    "us-west-2": {
      "centos-6.4": "ami-b3bf2f83",
      "debian-7.1.0": "ami-158a1925",
      "windows-2012r2": "ami-c30a39f3",
      "windows-2008r2": "ami-adf8cb9d"
    }

I suspect this issue more widespread that just us-west-2.

@zl4bv
Copy link
Contributor

zl4bv commented Oct 29, 2015

Amazon provide their Windows and Linux AMIs as rolling releases: at the moment the AMIs are re-released around once a month usually with some new security patches applied. A couple of weeks after a new AMI has been released the previously released versions of the AMI is made inaccessible to the public.

Given the AMI IDs in amis.json have not been changed in at least a month it is likely they have been marked as inaccessible by Amazon.

For now you will need to specify the new AMI ID in your .kitchen.yml.

See #117

@rhass
Copy link
Author

rhass commented Oct 29, 2015

This may mean I may have a different issue at hand. In the case of Windows, are these AMIs stock Windows AMIs? I am having issues bringing up a Windows EC2 instance in kitchen, so I am not sure if there is anything which needs to be preconfigured to allow winrm and other commands to access the instance

@rhass
Copy link
Author

rhass commented Oct 29, 2015

Closing as duplicate of #117. I figured out that my root issue was caused by omissions in the transport section to decrypt the password.

@rhass rhass closed this as completed Oct 29, 2015
@zl4bv
Copy link
Contributor

zl4bv commented Oct 29, 2015

In the case of Windows, are these AMIs stock Windows AMIs?

Yes, they should be the stock images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants