作者:vaaal52653 | 来源:互联网 | 2024-11-13 21:40
ThisfeatureautomaticallyvalidatesnewregionsusingtheAWSSDK,ensuringcompatibilityandaccuracy.
Reference: AWS SDK for Go API Documentation
The current implementation maintains strict matching for the ValidateRegion()
function. However, it can be relaxed to include regular expression (regexp) matching as shown below:
if _, isValidRegion := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), c.Region); isValidRegion {
return nil
}
This change would allow more flexible region validation while maintaining the integrity of the provider.
The original issue is sourced from the open-source project: hashicorp/terraform-provider-aws.
We are locking this issue as it has been closed for 30 days ⏳. This helps our maintainers focus on active issues.
If you believe this issue should be reopened, please create a new issue and link back to this one for additional context. Thank you for your understanding and cooperation!