aws-samples / aft-workshop-sample

Collection of sample Terraform configuration for AFT workshop
MIT No Attribution
13 stars 22 forks source link

error in aft-workshop-sample #16

Closed maricat0210 closed 6 months ago

maricat0210 commented 9 months ago

when executing step4 (Execute the bash script to launch the Cloud9. Change the placeholder {{CT-HOME-REGION}} with your AWS Control Tower home region (AWS region where AWS Control Tower is deployed).) In the prerequisites section of aft-workshop-sample, the following error occurs.

│ Error: Missing required argument │ │ on main.tf line 34, in resource "aws_cloud9_environment_ec2" "cloud9-aft": │ 34: resource "aws_cloud9_environment_ec2" "cloud9-aft" { │ │ The argument "image_id" is required, but no definition was found.

jarrettj commented 8 months ago

Encountered the same issue :|

They must of deleted the image.

roguen commented 7 months ago

The issue is in main.tf Add a new line 38 with the following

image_id = "amazonlinux-2023-x86_64"

And it will run as expected. This was a new property added to the API call at the end of last year.

wellsiau-aws commented 6 months ago

PR #17 should resolve this now, let us know if you are still encountering problem , thank you.