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
I have a module which utilizes for_each to enable VPC flow logs on all VPCs found in a region, however if I run the module on account/region with empty VPC list the data source returns an error:
data "aws_vpcs" "all" {}
on modules/vpc_logs/main.tf line 2, in data "aws_vpcs" "all":
2: data "aws_vpcs" "all" {
Error: no matching VPC found
Proposal
data source "aws_vpcs" should return an empty list, like the aws cli:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jul 26, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Terraform Version
Use-cases
I have a module which utilizes for_each to enable VPC flow logs on all VPCs found in a region, however if I run the module on account/region with empty VPC list the data source returns an error:
data "aws_vpcs" "all" {}
Proposal
data source "aws_vpcs" should return an empty list, like the aws cli:
References
The text was updated successfully, but these errors were encountered: