You don’t have access to this AMI. Check its launch permissions on AWS

Background
We are using bamboo v8.2.4.
This started being a problem on the 17th July.

Problem Symptoms
Our bamboo builds are not able to be started, all builds say ‘No agent can build this job’. When looking at the image configuration used by the agents, the image is disabled. Enabling the image and running a build causes the image to be disabled again.

Investigation
Our Bamboo builds based on image ami-00d3257706c9cff62 (image.ASIA_PACIFIC_SE_2.EBS.x86_64.linux.HVM.Ubuntu - for bamboo v8.2.4) are failing with the message.

java.lang.IllegalStateException: Unable to find image: ami-00d3257706c9cff62
	at com.google.common.base.Preconditions.checkState(Preconditions.java:502)
	at com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstanceImpl.initEc2InstanceObject(RemoteElasticInstanceImpl.java:249)
	at com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstanceImpl.access$100(RemoteElasticInstanceImpl.java:77)
	at com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstanceImpl$Starter.run(RemoteElasticInstanceImpl.java:373)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Trying to create a new elastic image using ‘ami-00d3257706c9cff62’ returns the error

You don’t have access to this AMI. Check its launch permissions on AWS

When trying to create an image using ami-0323877238e2add03 (for bamboo v8.2.3) there seems to be no problems. I’m not sure if there would be any problems with us using a different image on this version of bamboo.

Questions

  1. Is there a way to solve this problem?
  2. Is there a work around?
  3. Is this something I can avoid in the future?

Thanks :slightly_smiling_face:

2 Likes

Hello @GeneCulling,

Can you please try that again? We have adjusted the image permissions and it should be fine by now.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

It’s all working fine now, thanks for your help :+1: