Terraform v0.12.29
Terraform v0.13.3
provider aws v3.7.0
data sources
Error: no matching VPC found
on data.tf line 51, in data "aws_vpc" "test-pen":
51: data "aws_vpc" "test-pen" {
Error: no matching VPC found
Create a data source that cant possibly return a value and you get an error that the resource was not found but it does not tell you what resource it is and on what line
With terraform 12.28 and AWS provider v2.63.0 all worked as expected but after update to latest (and tried terraform 0.13 too) it does not show helping information
This occurred after upgrading to Terraform Plugin SDK version 2 -- upstream bug report: https://github.com/hashicorp/terraform-plugin-sdk/issues/561
Due to the same issue, this makes some more generic error messages very hard to debug (searching for an AMI)
Error: Your query returned no results. Please change your search criteria and try again
Most helpful comment
This occurred after upgrading to Terraform Plugin SDK version 2 -- upstream bug report: https://github.com/hashicorp/terraform-plugin-sdk/issues/561