Troubleshooting a CloudFormation stack failing due to a Property validation failure

2024-06-21 1 min read Troubleshooting Barny Baron

Journey: 📊 Community Builder 📊

Subject matter: 💡 Troubleshooting 💡

Task: Troubleshooting a CloudFormation stack failing due to a Property validation failure

While working on an EKS with Fargate Game Build project linked here, at one point I was having problems with the design and execution of the build, so I switched tactics and attempted the same build using Cloud9. During the deployment of the Cloud9 infrastructure, I ran into an issue and thought I would share it.

Troubleshooting

Problem observed:

When running a YAML template using CloudFormation, it initiated a rollback and failed.

When I looked at why, it was citing the following error:

“Property validation failure: [The property {ImageId} is required]”

CloudFormation starting:

CloudFormation starting

Error seen:

Error seen

Current template:

Current template

Fix required:

After some investigations online, I identified that the ImageId that I could use for this project was: “amazonlinux-2023-x86_64”

I updated my templates as follows:

Template update:

Template update

Template update continued:

Template update continued

New YAML file:

New YAML file

CloudFormation running:

CloudFormation running

CloudFormation success:

CloudFormation success

If this post helps just one other person, it has served its purpose well!

Cloud