diff --git a/aws/data_source_aws_internet_gateway_test.go b/aws/data_source_aws_internet_gateway_test.go index d1463bd442e..b42907b516d 100644 --- a/aws/data_source_aws_internet_gateway_test.go +++ b/aws/data_source_aws_internet_gateway_test.go @@ -32,17 +32,12 @@ func TestAccDataSourceAwsInternetGateway_typical(t *testing.T) { resource.TestCheckResourceAttrPair(ds3ResourceName, "owner_id", igwResourceName, "owner_id"), resource.TestCheckResourceAttrPair(ds3ResourceName, "attachments.0.vpc_id", vpcResourceName, "id"), ), - ExpectNonEmptyPlan: true, }, }, }) } const testAccDataSourceAwsInternetGatewayConfig = ` -provider "aws" { - region = "eu-central-1" -} - resource "aws_vpc" "test" { cidr_block = "172.16.0.0/16" @@ -71,10 +66,8 @@ data "aws_internet_gateway" "by_tags" { data "aws_internet_gateway" "by_filter" { filter { - name = "attachment.vpc-id" - values = ["${aws_vpc.test.id}"] + name = "internet-gateway-id" + values = ["${aws_internet_gateway.test.id}"] } - - depends_on = ["aws_internet_gateway.test"] } `