terraform.aws-baseline-infra/examples/vpc-ep/terraform.tfstate
2023-02-28 16:38:16 +08:00

415 lines
14 KiB
JSON

{
"version": 4,
"terraform_version": "1.3.0",
"serial": 18,
"lineage": "7e7c4a8c-a513-bbd8-4ebb-b03583bbd5c6",
"outputs": {},
"resources": [
{
"module": "module.vpc-ep",
"mode": "data",
"type": "aws_subnets",
"name": "this-subnets",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"filter": [
{
"name": "vpc-id",
"values": [
"vpc-01a10b033169f89a8"
]
}
],
"id": "ap-east-1",
"ids": [
"subnet-0927ba1b06ccfe6c5",
"subnet-0551e96ffd016192a",
"subnet-08dec6787782ee087"
],
"tags": null,
"timeouts": null
},
"sensitive_attributes": []
}
]
},
{
"module": "module.vpc-ep",
"mode": "data",
"type": "aws_vpc",
"name": "this-vpc",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"arn": "arn:aws:ec2:ap-east-1:040216112220:vpc/vpc-01a10b033169f89a8",
"cidr_block": "172.20.0.0/16",
"cidr_block_associations": [
{
"association_id": "vpc-cidr-assoc-021814ddaa62efd0f",
"cidr_block": "172.20.0.0/16",
"state": "associated"
}
],
"default": false,
"dhcp_options_id": "dopt-005007bcb610d7cdc",
"enable_dns_hostnames": true,
"enable_dns_support": true,
"filter": null,
"id": "vpc-01a10b033169f89a8",
"instance_tenancy": "default",
"ipv6_association_id": "vpc-cidr-assoc-0f7f4b5f1bdbf7972",
"ipv6_cidr_block": "2406:da1e:1db:f100::/56",
"main_route_table_id": "rtb-0ffa35a24e515f3b8",
"owner_id": "040216112220",
"state": null,
"tags": {
"Application": "infra",
"BuildDate": "20220421",
"CreatedBy": "arn:aws:iam::040216112220:user/ken2026",
"Environment": "lab",
"Name": "lab-ape1-ken2026-shared-vpc",
"Project": "shared",
"ServiceProvider": "RackspaceTechnology",
"TerraformDir": "LDP.aws.projects/rs-sandbox/rs-asia-sandbox-ken2026/networking.vpc-subnet",
"TerraformMode": "managed"
},
"timeouts": null
},
"sensitive_attributes": []
}
]
},
{
"module": "module.vpc-ep",
"mode": "managed",
"type": "aws_security_group",
"name": "generic-ep-sg",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"arn": "arn:aws:ec2:ap-east-1:040216112220:security-group/sg-0e2be56016c1440a8",
"description": "HttpsAccessToVpcEndpoints",
"egress": [
{
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "",
"from_port": 0,
"ipv6_cidr_blocks": [],
"prefix_list_ids": [],
"protocol": "-1",
"security_groups": [],
"self": false,
"to_port": 0
}
],
"id": "sg-0e2be56016c1440a8",
"ingress": [
{
"cidr_blocks": [
"172.20.0.0/16"
],
"description": "TLS from VPC",
"from_port": 443,
"ipv6_cidr_blocks": [],
"prefix_list_ids": [],
"protocol": "tcp",
"security_groups": [],
"self": false,
"to_port": 443
}
],
"name": "HttpsAccessToVpcEndpoints",
"name_prefix": "",
"owner_id": "040216112220",
"revoke_rules_on_delete": false,
"tags": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "VpcEpAccess",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"tags_all": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "VpcEpAccess",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_id": "vpc-01a10b033169f89a8"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
"dependencies": [
"module.vpc-ep.data.aws_vpc.this-vpc"
]
}
]
},
{
"module": "module.vpc-ep",
"mode": "managed",
"type": "aws_vpc_endpoint",
"name": "vpc-gateway-ep",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"index_key": "dynamodb",
"schema_version": 0,
"attributes": {
"arn": "arn:aws:ec2:ap-east-1:040216112220:vpc-endpoint/vpce-05b5ee2a00842263e",
"auto_accept": null,
"cidr_blocks": [
"35.71.107.0/25",
"35.71.107.128/26",
"52.119.248.0/24"
],
"dns_entry": [],
"dns_options": [],
"id": "vpce-05b5ee2a00842263e",
"ip_address_type": "",
"network_interface_ids": [],
"owner_id": "040216112220",
"policy": "{\"Statement\":[{\"Action\":\"*\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"*\"}],\"Version\":\"2008-10-17\"}",
"prefix_list_id": "pl-c9b451a0",
"private_dns_enabled": false,
"requester_managed": false,
"route_table_ids": [],
"security_group_ids": [],
"service_name": "com.amazonaws.ap-east-1.dynamodb",
"state": "available",
"subnet_ids": [],
"tags": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-dynamodb",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"tags_all": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-dynamodb",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_endpoint_type": "Gateway",
"vpc_id": "vpc-01a10b033169f89a8"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
"dependencies": [
"module.vpc-ep.data.aws_vpc.this-vpc"
]
},
{
"index_key": "s3",
"schema_version": 0,
"attributes": {
"arn": "arn:aws:ec2:ap-east-1:040216112220:vpc-endpoint/vpce-0ffad2bdf13118244",
"auto_accept": null,
"cidr_blocks": [
"3.5.236.0/22",
"52.95.162.0/24",
"16.12.8.0/24",
"16.12.6.0/23",
"52.95.160.0/23"
],
"dns_entry": [],
"dns_options": [],
"id": "vpce-0ffad2bdf13118244",
"ip_address_type": "",
"network_interface_ids": [],
"owner_id": "040216112220",
"policy": "{\"Statement\":[{\"Action\":\"*\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"*\"}],\"Version\":\"2008-10-17\"}",
"prefix_list_id": "pl-64a5400d",
"private_dns_enabled": false,
"requester_managed": false,
"route_table_ids": [],
"security_group_ids": [],
"service_name": "com.amazonaws.ap-east-1.s3",
"state": "available",
"subnet_ids": [],
"tags": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-s3",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"tags_all": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-s3",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_endpoint_type": "Gateway",
"vpc_id": "vpc-01a10b033169f89a8"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
"dependencies": [
"module.vpc-ep.data.aws_vpc.this-vpc"
]
}
]
},
{
"module": "module.vpc-ep",
"mode": "managed",
"type": "aws_vpc_endpoint",
"name": "vpc-interface-ep",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"index_key": "ssm",
"schema_version": 0,
"attributes": {
"arn": "arn:aws:ec2:ap-east-1:040216112220:vpc-endpoint/vpce-07b8a9af30673995f",
"auto_accept": null,
"cidr_blocks": [],
"dns_entry": [
{
"dns_name": "vpce-07b8a9af30673995f-2n2ird8h.ssm.ap-east-1.vpce.amazonaws.com",
"hosted_zone_id": "Z2LIHJ7PKBEMWN"
},
{
"dns_name": "vpce-07b8a9af30673995f-2n2ird8h-ap-east-1c.ssm.ap-east-1.vpce.amazonaws.com",
"hosted_zone_id": "Z2LIHJ7PKBEMWN"
},
{
"dns_name": "vpce-07b8a9af30673995f-2n2ird8h-ap-east-1b.ssm.ap-east-1.vpce.amazonaws.com",
"hosted_zone_id": "Z2LIHJ7PKBEMWN"
},
{
"dns_name": "vpce-07b8a9af30673995f-2n2ird8h-ap-east-1a.ssm.ap-east-1.vpce.amazonaws.com",
"hosted_zone_id": "Z2LIHJ7PKBEMWN"
},
{
"dns_name": "ssm.ap-east-1.amazonaws.com",
"hosted_zone_id": "Z0476620U1IKM0YK6Q0X"
}
],
"dns_options": [
{
"dns_record_ip_type": "ipv4"
}
],
"id": "vpce-07b8a9af30673995f",
"ip_address_type": "ipv4",
"network_interface_ids": [
"eni-05f45ed86856de58d"
],
"owner_id": "040216112220",
"policy": "{\"Statement\":[{\"Action\":\"*\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"*\"}]}",
"prefix_list_id": null,
"private_dns_enabled": true,
"requester_managed": false,
"route_table_ids": [],
"security_group_ids": [
"sg-0e2be56016c1440a8"
],
"service_name": "com.amazonaws.ap-east-1.ssm",
"state": "available",
"subnet_ids": [
"subnet-0551e96ffd016192a",
"subnet-08dec6787782ee087",
"subnet-0927ba1b06ccfe6c5"
],
"tags": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-ssm",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"tags_all": {
"Application": "terraform",
"BuildDate": "20220921",
"CostCenter": "none",
"DynamicAddressGroup": "",
"Environment": "dev",
"Name": "dev-ap-ken2026-iac-vpcep-ssm",
"Owner": "Rackspace",
"Project": "iac",
"ServiceProvider": "RackspaceTechnology",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_endpoint_type": "Interface",
"vpc_id": "vpc-01a10b033169f89a8"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
"dependencies": [
"module.vpc-ep.aws_security_group.generic-ep-sg",
"module.vpc-ep.data.aws_subnets.this-subnets",
"module.vpc-ep.data.aws_vpc.this-vpc"
]
}
]
}
],
"check_results": [
{
"object_kind": "resource",
"config_addr": "module.vpc-ep.data.aws_vpc.this-vpc",
"status": "unknown",
"objects": [
{
"object_addr": "module.vpc-ep.data.aws_vpc.this-vpc",
"status": "unknown"
}
]
}
]
}