Hi Team,
I need to create 2 AWS VIFs using these 2 regions “eu-west-3” and “eu-central-1”. To try to achieve that I configured 2 providers using alias attribute.
provider “aws” {
alias = “eu-west-3”
region = “eu-west-3”
}
provider “aws” {
alias = “eu-central-1”
region = “eu-central-1”
}
Once identified the providers I created the resource block using alias.
resource “aws_dx_private_virtual_interface” “vif1” {
provider = aws.eu-west-3
connection_id = …
name = “…”
vlan = …
}
resource “aws_dx_private_virtual_interface” “vif2” {
provider = aws.eu-central-1
connection_id = …
name = “…”
vlan = …
}
After running this I got this output:
-
terraform plan
provider.aws.region
The region where AWS operations will take place. Examples
are us-east-1, us-west-2, etc.Enter a value:
Even trying a value is not working.