[Bug]: new eks-cluster example fails when running in a region with only 3 az's #191
Open
1 task done
Labels
bug
Something isn't working
Welcome to the AWS Observability Accelerator
AWS Observability Accelerator Release version
latest
What is your environment, configuration and the example used?
When running the eks-cluster-with-vpc example we use this in main.tf:
If you run this in a region with only 3 AZs like us-west-1 you get an error because the end value of the slice (3) exceeds the amount of items in the list (2) These are zero-indexed: If you change the above code to this:
You no longer get the error. We probably should read the amount of items in the 'aws_availability_zones' list and use that to set the end value of the slice.
What did you do and What did you see instead?
This worked in us-west-1 by manually changing slice index.
Additional Information
No response
The text was updated successfully, but these errors were encountered: