awsproviderlint: New Check: Prefer aws_region data source instead of hardcoded Region identifier #12996
Labels
provider
Pertains to the provider itself, rather than any interaction with AWS.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Community Note
Description
To ensure test configurations are region and partition agnostic, any hardcoded Region identifiers ([a-z]{2}(-[a-z]+)+-[1-9][0-9]*) should be replaced with the
aws_region
data source.Flagged Code
In test configuration:
Passing Code
In test configuration:
The text was updated successfully, but these errors were encountered: