Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

us-west-1 AZs causes an Index error #218

Open
computerdeath opened this issue Jan 8, 2025 · 0 comments
Open

us-west-1 AZs causes an Index error #218

computerdeath opened this issue Jan 8, 2025 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@computerdeath
Copy link

computerdeath commented Jan 8, 2025

Describe the Bug

When attempting to create a subnet in us-west-1 AZs I get the following error

Error: Invalid index
 on .terraform/modules/Perforce-private-subnet/outputs.tf line 9, in output "availability_zone_ids":
    9:     for az in local.vpc_availability_zones : local.az_name_map[az]
      local.az_name_map is map of string with 2 elements

 The given key does not identify an element in this collection value.

This error occurs with any number of us-west-1 AZs provided, switching to another region AZ like us-east-1 or us-west-2 resolves the error

availability_zones = ["us-west-1a", "us-west-1b"]

Expected Behavior

Deployment should succeed with us-west-1

Steps to Reproduce

Use us-west-1 AZs
availability_zones = ["us-west-1a", "us-west-1b"]

Screenshots

No response

Environment

Module: 2.4.2
Opentofu: 1.8.8
Macos: 14.1

Additional Context

No response

@computerdeath computerdeath added the bug 🐛 An issue with the system label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant