From 24ae387019ceaecfae1e41886d033916fe0b1f9e Mon Sep 17 00:00:00 2001 From: Elie Date: Thu, 21 Jan 2021 10:44:07 +0100 Subject: [PATCH] Remove unwanted resources from IaC test --- .../state/test/route/result.golden.json | 67 --------- .../state/test/route/terraform.tfstate | 138 ------------------ 2 files changed, 205 deletions(-) diff --git a/pkg/iac/terraform/state/test/route/result.golden.json b/pkg/iac/terraform/state/test/route/result.golden.json index 501fc925..161eee17 100755 --- a/pkg/iac/terraform/state/test/route/result.golden.json +++ b/pkg/iac/terraform/state/test/route/result.golden.json @@ -1,71 +1,4 @@ [ - { - "Arn": "arn:aws:ec2:us-east-1:929327065333:vpc/vpc-0a5666c0cfc366714", - "AssignGeneratedIpv6CidrBlock": false, - "CidrBlock": "10.0.0.0/16", - "DefaultNetworkAclId": "acl-081a06acb9d092caf", - "DefaultRouteTableId": "rtb-0aa0a93a2960854a1", - "DefaultSecurityGroupId": "sg-0b1ad864ecd584998", - "DhcpOptionsId": "dopt-d29e33a8", - "EnableClassiclink": false, - "EnableClassiclinkDnsSupport": false, - "EnableDnsHostnames": false, - "EnableDnsSupport": true, - "Id": "vpc-0a5666c0cfc366714", - "InstanceTenancy": "default", - "Ipv6AssociationId": "", - "Ipv6CidrBlock": "", - "MainRouteTableId": "rtb-0aa0a93a2960854a1", - "OwnerId": "929327065333", - "Tags": {} - }, - { - "Id": "rtb-0f37e1ce04d833435", - "OwnerId": "929327065333", - "PropagatingVgws": null, - "Route": [ - { - "CidrBlock": "", - "EgressOnlyGatewayId": "", - "GatewayId": "igw-0125fbf19e83d008b", - "InstanceId": "", - "Ipv6CidrBlock": "::/0", - "LocalGatewayId": "", - "NatGatewayId": "", - "NetworkInterfaceId": "", - "TransitGatewayId": "", - "VpcEndpointId": "", - "VpcPeeringConnectionId": "" - }, - { - "CidrBlock": "0.0.0.0/0", - "EgressOnlyGatewayId": "", - "GatewayId": "igw-0125fbf19e83d008b", - "InstanceId": "", - "Ipv6CidrBlock": "", - "LocalGatewayId": "", - "NatGatewayId": "", - "NetworkInterfaceId": "", - "TransitGatewayId": "", - "VpcEndpointId": "", - "VpcPeeringConnectionId": "" - } - ], - "Tags": { - "Name": "r" - }, - "VpcId": "vpc-0a5666c0cfc366714" - }, - { - "Id": "rtb-0232602f0f07748fc", - "OwnerId": "929327065333", - "PropagatingVgws": null, - "Route": null, - "Tags": { - "Name": "rr" - }, - "VpcId": "vpc-0a5666c0cfc366714" - }, { "DestinationCidrBlock": "1.1.1.1/32", "DestinationIpv6CidrBlock": null, diff --git a/pkg/iac/terraform/state/test/route/terraform.tfstate b/pkg/iac/terraform/state/test/route/terraform.tfstate index aeaca31a..4e50264a 100644 --- a/pkg/iac/terraform/state/test/route/terraform.tfstate +++ b/pkg/iac/terraform/state/test/route/terraform.tfstate @@ -5,31 +5,6 @@ "lineage": "0a405b90-f526-2004-0d4b-f5fd84ca6664", "outputs": {}, "resources": [ - { - "mode": "managed", - "type": "aws_internet_gateway", - "name": "main", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-1:929327065333:internet-gateway/igw-0125fbf19e83d008b", - "id": "igw-0125fbf19e83d008b", - "owner_id": "929327065333", - "tags": { - "Name": "main" - }, - "vpc_id": "vpc-0a5666c0cfc366714" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_vpc.vpc" - ] - } - ] - }, { "mode": "managed", "type": "aws_route", @@ -105,119 +80,6 @@ ] } ] - }, - { - "mode": "managed", - "type": "aws_route_table", - "name": "r", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "rtb-0f37e1ce04d833435", - "owner_id": "929327065333", - "propagating_vgws": [], - "route": [ - { - "cidr_block": "", - "egress_only_gateway_id": "", - "gateway_id": "igw-0125fbf19e83d008b", - "instance_id": "", - "ipv6_cidr_block": "::/0", - "local_gateway_id": "", - "nat_gateway_id": "", - "network_interface_id": "", - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - }, - { - "cidr_block": "0.0.0.0/0", - "egress_only_gateway_id": "", - "gateway_id": "igw-0125fbf19e83d008b", - "instance_id": "", - "ipv6_cidr_block": "", - "local_gateway_id": "", - "nat_gateway_id": "", - "network_interface_id": "", - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - } - ], - "tags": { - "Name": "r" - }, - "vpc_id": "vpc-0a5666c0cfc366714" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_internet_gateway.main", - "aws_vpc.vpc" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_route_table", - "name": "rr", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "rtb-0232602f0f07748fc", - "owner_id": "929327065333", - "propagating_vgws": [], - "route": [], - "tags": { - "Name": "rr" - }, - "vpc_id": "vpc-0a5666c0cfc366714" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_vpc.vpc" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_vpc", - "name": "vpc", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-1:929327065333:vpc/vpc-0a5666c0cfc366714", - "assign_generated_ipv6_cidr_block": false, - "cidr_block": "10.0.0.0/16", - "default_network_acl_id": "acl-081a06acb9d092caf", - "default_route_table_id": "rtb-0aa0a93a2960854a1", - "default_security_group_id": "sg-0b1ad864ecd584998", - "dhcp_options_id": "dopt-d29e33a8", - "enable_classiclink": false, - "enable_classiclink_dns_support": false, - "enable_dns_hostnames": false, - "enable_dns_support": true, - "id": "vpc-0a5666c0cfc366714", - "instance_tenancy": "default", - "ipv6_association_id": "", - "ipv6_cidr_block": "", - "main_route_table_id": "rtb-0aa0a93a2960854a1", - "owner_id": "929327065333", - "tags": {} - }, - "sensitive_attributes": [], - "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" - } - ] } ] }