Missing AMI on AWS

15 views
Skip to first unread message

Luigi Tagliamonte

unread,
Aug 6, 2022, 11:25:54 PMAug 6
to Flatcar Container Linux User
Hello folks,
I was trying to update my server and when running terraform plan i'm getting:
Error: No images found for AMI ami-0670e450bda89efc0
I checked the Image on AWS and it doesn't exists anymore can someone please fix this?
Thanks in advance!
Regards
L.

Luigi Tagliamonte

unread,
Aug 6, 2022, 11:32:10 PMAug 6
to Flatcar Container Linux User

I can't even update to a newer AMI bc my terraform state wants to calculate the diff and doesn't find the old AMI.

Mathieu Tortuyaux

unread,
Aug 8, 2022, 5:00:12 AMAug 8
to Flatcar Container Linux User
Hi there,

Could you please give another chance to this AMI (ami-0670e450bda89efc0)? In case you missed it, Flatcar team has recently published in this group about AWS AMI retention of old releases (see: https://groups.google.com/g/flatcar-linux-user/c/3ucqvn7gQy4/m/ucIEsqk-BQAJ).

That's interesting that TF is not able to use a newer AMI. Did you reference the AMI directly via its ID or are you using the TF aws_ami datasource?

Mathieu (@tormath1)

Luigi Tagliamonte

unread,
Aug 8, 2022, 1:09:43 PMAug 8
to Flatcar Container Linux User
Thanks
Will try it as soon as possible.
Regards
Luigi

--
You received this message because you are subscribed to a topic in the Google Groups "Flatcar Container Linux User" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flatcar-linux-user/nazfqdvk_6M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flatcar-linux-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flatcar-linux-user/c54b4697-d27f-4a53-9582-c84369d69189n%40googlegroups.com.

Luigi Tagliamonte

unread,
Aug 13, 2022, 10:52:43 AMAug 13
to Flatcar Container Linux User
@mathieu the AMI is still not available.
Regards
Luigi

Jeremi Piotrowski

unread,
Aug 15, 2022, 3:52:27 AMAug 15
to Flatcar Container Linux User
Hi Luigi,
The automation re-marked the AMI for deletion on Aug. 11. I've now changed that, it will be eligible again in 30 days, please perform your migration soon.
Jeremi

Luigi Tagliamonte

unread,
Aug 15, 2022, 6:49:45 PMAug 15
to Jeremi Piotrowski, Flatcar Container Linux User
Thanks Jeremi,
Sorry for the inconvenience I work on this project only on weekends.

I hacked the tf state by:
- removing the obj from the state
- edit the asg configuration from the console to use a newer Ami
- import the obj in terraform state using `terraform import`

Thanks for helping recreating the img.
With such short retention i will have to create my own Ami since i have projects that don't get very frequently updated.

Thanks for everything!
Regards
Luigi

Reply all
Reply to author
Forward
0 new messages