amazon-archives/cost-optimization-ec2-right-sizing

Error while launching this stack

Closed this issue · 1 comments

While launching the stack, I received the following error:

image

It looks like the error is coming from here:

image

You are seeing this error because Fn:Select is trying to reference an index in an array/list that does not exist.

Now WHY you are getting this error is a larger issue that requires a bit of digging around. We need to figure out why a result from Fn:GetAZs is returning a result without a value at index position 1.

Can you please get back to us on the following:

  • What region are you running this in where you see the error?
  • Can you please run "aws ec2 describe-availability-zones" in the same region you are launching the stack and give us the output?
  • Try changing the index in the Fn:Select from 1 to 0 and update/re-launch the stack. Do you get the same error or a different error (i.e. do you now get "Availability Zone cannot be null")? Please make sure that you change all of the occurrences in the template.