[Bug]: Error: no matching EC2 VPC found for data "aws_vpc" even if it exists #27203
Labels
bug
Addresses a defect in current functionality.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
0.12.31
AWS Provider Version
4.26
Affected Resource(s)
Started upgrading terraform from 0.11.14 to 0.12.31
All stack apply went fine but fails on eu-central-1 with
Error: no matching EC2 VPC found for data "aws_vpc" "selected" { tags = {
Name = var.vpc
}
} I verified the vpc exists for the region and with old terraform 0.11.14 the apply works
Error: error reading SNS Topic (arn:aws:sns:eu-central-1:941285077303:fms-eu-swarm-blue-worker-windows-scaling): InvalidParameter: Invalid parameter: TopicArn
status code: 400, request id: b4888a16-e5d9-5fe2-ae59-d1a97fee2134
Expected Behavior
vpc should be found
Actual Behavior
Error: no matching EC2 VPC found
Relevant Error/Panic Output Snippet
Terraform Configuration Files
fms-eu.zip
Steps to Reproduce
terraform init
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response
The text was updated successfully, but these errors were encountered: