cloudformation template not working in automation lesson
Could you please share your source code?
It only works in us-west-2 (Oregon)
"Quick note though, this template is only configured to run in Oregon. It will not work in any other region."
BastionEC2: Type: AWS::EC2::Instance Properties: ImageId: "ami-0e999cbd62129e3b1"
references an AMI that only exists in the Oregon region. If you want to run this in N. Virginia replace the ImageId.
To find the AMI ID, I set my region to Oregon and in EC2>>AMIs I searched for "ami-0e999cbd62129e3b1" in the public AMIs. From there I got the AMI Name (amzn2-ami-hvm-2.0.20210126.0-x86_64-gp2), switched to the N.Virginia region and looked-up the equivalent AMI ID for that AMI Name.
It’s worked with me by choose Oregon region