-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_region data source breaks when new regions are launched #26558
Comments
@jbg Thanks for raising this issue 👏. |
But you don't need aws-sdk-go to just pass the string through from the provider (which already validated it, or was told not to validate it). That would only be needed to look up the |
The data source should also allow us to try to retrieve information for named regions that aren't supported yet.
If there's no match, we should return a warning. Optionally, we could add a strictness mode with |
Just happened again with |
Hi all, |
Relates #39224. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_region
data sourceTerraform Configuration Files
In a module, purely to get the region name of the provider the module is being used with:
Expected Behavior
It returns at least the region name that the provider is configured with, even if it doesn't know the endpoint and/or description for that region. It literally just has to pass the string through.
Actual Behavior
Steps to Reproduce
me-central-1
, so you can try now!)skip_region_validation = true
because the provider doesn't know about the new region yetterraform plan
Discussion
I realise the
aws_region
data source probably has a lookup table internally to find out endpoint & description for the region. But I would guess in the vast majority of cases people do not care about those attributes because they are just using this data source to get the region name of the provider that a module was configured with.It would be great to avoid this unnecessary breakage when new regions are launched, because there's always a delay after launch before the provider catches up.
Maybe to prevent any unexpected breakage due to
null
endpoint and description, there could be askip_region_validation
argument like the provider has, so people have to opt-in to potentially not getting those values.References
The text was updated successfully, but these errors were encountered: