-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: wrong region used for requests to route53 #34016
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
This also occurs with |
From my experiments, it appears that the regression might have been introduced in v5.5.0 (v5.4.0 works on our workspace, v5.5.0 fails with the SignatureDoesNotMatch error on a route53_hosted_zone resource). |
Can confirm this is still an issue this is the error if you set the route53 endpoint even to the amazonaws.com endpoint. Error: finding Route 53 Hosted Zone: SignatureDoesNotMatch: Credential should be scoped to a valid region. In this configuration I am using the default endpoint. provider "aws" {
region = "us-east-1"
endpoints {
route53 = "https://route53.amazonaws.com"
}
} If you force the provider to 5.4 like the previous comment this configuration works terraform {
backend "http" {}
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.4.0, < 5.5.0"
}
}
} |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.50.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
It appears that this might have regressed. It works with 5.50.0 and breaks the same way in 5.51.0. I suspect that could be the commit that re-introduced the issue. |
Hi @kopatsy. Are you still seeing this error in v5.52.0? I can't reproduce the error. If you are seeing it, can you please share your configuration and the debug log? |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.53.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.5.0
AWS Provider Version
5.21.0
Affected Resource(s)
aws_route53_record
Expected Behavior
I should be able to use the fips endpoint: https://route53-fips.amazonaws.com. However, it seems the provider hard-codes the use of the us-west-2 region when making requests to route53 and that isn't a valid region for that endpoint.
Actual Behavior
If i use a provider configuration that uses the
us-east-1
region, and specifythen when I try to refresh the state (including as part of a plan) I get an error that the " SignatureDoesNotMatch: Credential should be scoped to a valid region"
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create the resource without the custom route53 endpoint. Then run
terraform apply -refresh-only
to attempt to refresh the state.Debug Output
Notice that the request uses the "us-west-2" region, despite the fact that I have specified the "us-east-1" region.
Panic Output
No response
Important Factoids
No response
References
use_fips_endpoints
)Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: