You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provider"aws" {
region ="us-east-2"
version ="~> 1.42"
}
provider"aws" {
alias ="development_testing"
region ="us-east-1"
version ="~> 1.42"
}
data"aws_s3_bucket""yum-mirror" {
provider ="development_testing"
bucket ="yum.example"
}
$ terraform plan
Error: module : provider alias must be defined by the module: development_testing
Expected Behavior
There should be no error
Actual Behavior
Error: module : provider alias must be defined by the module:
Steps to Reproduce
terraform plan
Additional Context
The project does utilize a module I created.
I was assuming S3 buckets are global, but I got
* data.aws_s3_bucket.yum-mirror: data.aws_s3_bucket.yum-mirror: Failed getting S3 bucket: BucketRegionError: incorrect region, the bucket is not in 'us-east-2' region
status code: 301, request id: , host id: Bucket: "yum.example"
Which should not be an error since it is a 301 not a 4xx or 5xx
A workaround for the time being is to put the ARN explicitly where I need it.
Terraform Version
Terraform Configuration Files
or
Debug Output
Crash Output
Expected Behavior
There should be no error
Actual Behavior
Error: module : provider alias must be defined by the module:
Steps to Reproduce
terraform plan
Additional Context
Which should not be an error since it is a
301
not a4xx
or5xx
References
The text was updated successfully, but these errors were encountered: