Hi everyone!
I have a problem when I try to get vpc from my aws account
data “aws_vpcs” “foo” {
tags = {
Env = “demo”
}
}
output “foo” {
value = “${data.aws_vpcs.foo.ids}”
}
I got:
data.aws_vpcs.foo: Refreshing state…
Error: no matching VPC found
on simplyWebServer.tf line 78, in data “aws_vpcs” “foo”:
78: data “aws_vpcs” “foo” {
but in my aws account vpc with tag Env = “demo” exist
terraform -v
Terraform v0.12.24
- provider.aws v2.56.0
Can someone help me, please?