Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
"Check AMI" validation button results into "No such AMI, or not usable with this accessId" in spite of the fact that AMI can be provisioned (when ignoring the warning, AMI is provisioned and running)
it's because of
users.add("self");
in SlaveTemplate.doValidateAmi()
as adding users cause, that only intersection of requested ami with set of amis where user has explicit launch permission is returned (which is often empty set). IMHO empty user setup should be sufficient, according to http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/index.html?ApiReference-cmd-DescribeImages.html :
??If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. ... If you specify an AMI ID for which you do not have access, it will not be included in the returned results. ??