901 lines
32 KiB
JSON
901 lines
32 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.9.5",
|
|
"serial": 80,
|
|
"lineage": "aeeac7c3-7e1c-a1e0-095f-cc9727392647",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "demo_web_1",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"ami": "ami-0f75d1a8c9141bd00",
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:instance/i-0f721588e39e30ae3",
|
|
"associate_public_ip_address": true,
|
|
"availability_zone": "ap-northeast-1a",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_core_count": 1,
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"threads_per_core": 1
|
|
}
|
|
],
|
|
"cpu_threads_per_core": 1,
|
|
"credit_specification": [
|
|
{
|
|
"cpu_credits": "standard"
|
|
}
|
|
],
|
|
"disable_api_stop": false,
|
|
"disable_api_termination": false,
|
|
"ebs_block_device": [],
|
|
"ebs_optimized": false,
|
|
"enable_primary_ipv6": null,
|
|
"enclave_options": [
|
|
{
|
|
"enabled": false
|
|
}
|
|
],
|
|
"ephemeral_block_device": [],
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-0f721588e39e30ae3",
|
|
"instance_initiated_shutdown_behavior": "stop",
|
|
"instance_lifecycle": "",
|
|
"instance_market_options": [],
|
|
"instance_state": "running",
|
|
"instance_type": "t2.micro",
|
|
"ipv6_address_count": 0,
|
|
"ipv6_addresses": [],
|
|
"key_name": "",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_protocol_ipv6": "disabled",
|
|
"http_put_response_hop_limit": 2,
|
|
"http_tokens": "required",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface_id": "eni-048e53a411fcf30d1",
|
|
"private_dns": "ip-10-9-1-32.ap-northeast-1.compute.internal",
|
|
"private_dns_name_options": [
|
|
{
|
|
"enable_resource_name_dns_a_record": false,
|
|
"enable_resource_name_dns_aaaa_record": false,
|
|
"hostname_type": "ip-name"
|
|
}
|
|
],
|
|
"private_ip": "10.9.1.32",
|
|
"public_dns": "ec2-3-112-128-5.ap-northeast-1.compute.amazonaws.com",
|
|
"public_ip": "3.112.128.5",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/xvda",
|
|
"encrypted": false,
|
|
"iops": 3000,
|
|
"kms_key_id": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"throughput": 125,
|
|
"volume_id": "vol-0ce30013c39bff0d7",
|
|
"volume_size": 8,
|
|
"volume_type": "gp3"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [
|
|
"sg-0a917d86778b66c16"
|
|
],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-0f2e371f0010dc6e0",
|
|
"tags": {
|
|
"Name": "demo_web_1"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_web_1"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": "2bf70ae7606b4ed91abf0ff3cc8c27da75294d18",
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-0a917d86778b66c16"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_1",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "demo_web_2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"ami": "ami-0f75d1a8c9141bd00",
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:instance/i-0daee39cc079c10b4",
|
|
"associate_public_ip_address": true,
|
|
"availability_zone": "ap-northeast-1c",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_core_count": 1,
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"threads_per_core": 1
|
|
}
|
|
],
|
|
"cpu_threads_per_core": 1,
|
|
"credit_specification": [
|
|
{
|
|
"cpu_credits": "standard"
|
|
}
|
|
],
|
|
"disable_api_stop": false,
|
|
"disable_api_termination": false,
|
|
"ebs_block_device": [],
|
|
"ebs_optimized": false,
|
|
"enable_primary_ipv6": null,
|
|
"enclave_options": [
|
|
{
|
|
"enabled": false
|
|
}
|
|
],
|
|
"ephemeral_block_device": [],
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-0daee39cc079c10b4",
|
|
"instance_initiated_shutdown_behavior": "stop",
|
|
"instance_lifecycle": "",
|
|
"instance_market_options": [],
|
|
"instance_state": "running",
|
|
"instance_type": "t2.micro",
|
|
"ipv6_address_count": 0,
|
|
"ipv6_addresses": [],
|
|
"key_name": "",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_protocol_ipv6": "disabled",
|
|
"http_put_response_hop_limit": 2,
|
|
"http_tokens": "required",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface_id": "eni-080e9ca7ffbc05df0",
|
|
"private_dns": "ip-10-9-2-187.ap-northeast-1.compute.internal",
|
|
"private_dns_name_options": [
|
|
{
|
|
"enable_resource_name_dns_a_record": false,
|
|
"enable_resource_name_dns_aaaa_record": false,
|
|
"hostname_type": "ip-name"
|
|
}
|
|
],
|
|
"private_ip": "10.9.2.187",
|
|
"public_dns": "ec2-35-78-123-5.ap-northeast-1.compute.amazonaws.com",
|
|
"public_ip": "35.78.123.5",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/xvda",
|
|
"encrypted": false,
|
|
"iops": 3000,
|
|
"kms_key_id": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"throughput": 125,
|
|
"volume_id": "vol-03dbb321020216c18",
|
|
"volume_size": 8,
|
|
"volume_type": "gp3"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [
|
|
"sg-0a917d86778b66c16"
|
|
],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-071b9667aa4e11b05",
|
|
"tags": {
|
|
"Name": "demo_web_2"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_web_2"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": "9a7decfa2292b8b72a0d1f90fd0801f9a6fca6ae",
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-0a917d86778b66c16"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_2",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_internet_gateway",
|
|
"name": "demo_igw_main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:internet-gateway/igw-0cf0649ef4f106fe6",
|
|
"id": "igw-0cf0649ef4f106fe6",
|
|
"owner_id": "095277089098",
|
|
"tags": {
|
|
"Name": "demo_igw_main"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_igw_main"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lb",
|
|
"name": "demo_lb_main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"access_logs": [
|
|
{
|
|
"bucket": "",
|
|
"enabled": false,
|
|
"prefix": ""
|
|
}
|
|
],
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:loadbalancer/app/demo-lb-main/79f2bd855b359068",
|
|
"arn_suffix": "app/demo-lb-main/79f2bd855b359068",
|
|
"client_keep_alive": 3600,
|
|
"connection_logs": [
|
|
{
|
|
"bucket": "",
|
|
"enabled": false,
|
|
"prefix": ""
|
|
}
|
|
],
|
|
"customer_owned_ipv4_pool": "",
|
|
"desync_mitigation_mode": "defensive",
|
|
"dns_name": "demo-lb-main-267186099.ap-northeast-1.elb.amazonaws.com",
|
|
"dns_record_client_routing_policy": null,
|
|
"drop_invalid_header_fields": false,
|
|
"enable_cross_zone_load_balancing": true,
|
|
"enable_deletion_protection": false,
|
|
"enable_http2": true,
|
|
"enable_tls_version_and_cipher_suite_headers": false,
|
|
"enable_waf_fail_open": false,
|
|
"enable_xff_client_port": false,
|
|
"enable_zonal_shift": false,
|
|
"enforce_security_group_inbound_rules_on_private_link_traffic": "",
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:loadbalancer/app/demo-lb-main/79f2bd855b359068",
|
|
"idle_timeout": 60,
|
|
"internal": false,
|
|
"ip_address_type": "ipv4",
|
|
"load_balancer_type": "application",
|
|
"name": "demo-lb-main",
|
|
"name_prefix": "",
|
|
"preserve_host_header": false,
|
|
"security_groups": [
|
|
"sg-0a917d86778b66c16"
|
|
],
|
|
"subnet_mapping": [
|
|
{
|
|
"allocation_id": "",
|
|
"ipv6_address": "",
|
|
"outpost_id": "",
|
|
"private_ipv4_address": "",
|
|
"subnet_id": "subnet-071b9667aa4e11b05"
|
|
},
|
|
{
|
|
"allocation_id": "",
|
|
"ipv6_address": "",
|
|
"outpost_id": "",
|
|
"private_ipv4_address": "",
|
|
"subnet_id": "subnet-0f2e371f0010dc6e0"
|
|
}
|
|
],
|
|
"subnets": [
|
|
"subnet-071b9667aa4e11b05",
|
|
"subnet-0f2e371f0010dc6e0"
|
|
],
|
|
"tags": {
|
|
"Name": "demo_lb_main"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_lb_main"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9",
|
|
"xff_header_processing_mode": "append",
|
|
"zone_id": "Z14GRHDCWA56QT"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_1",
|
|
"aws_subnet.demo_subnet_public_2",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lb_listener",
|
|
"name": "demo_listener_http",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"alpn_policy": null,
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:listener/app/demo-lb-main/79f2bd855b359068/8cacb3572903169c",
|
|
"certificate_arn": null,
|
|
"default_action": [
|
|
{
|
|
"authenticate_cognito": [],
|
|
"authenticate_oidc": [],
|
|
"fixed_response": [],
|
|
"forward": [],
|
|
"order": 1,
|
|
"redirect": [],
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771",
|
|
"type": "forward"
|
|
}
|
|
],
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:listener/app/demo-lb-main/79f2bd855b359068/8cacb3572903169c",
|
|
"load_balancer_arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:loadbalancer/app/demo-lb-main/79f2bd855b359068",
|
|
"mutual_authentication": [],
|
|
"port": 80,
|
|
"protocol": "HTTP",
|
|
"ssl_policy": "",
|
|
"tags": null,
|
|
"tags_all": {},
|
|
"tcp_idle_timeout_seconds": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"aws_lb.demo_lb_main",
|
|
"aws_lb_target_group.demo_tg_web",
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_1",
|
|
"aws_subnet.demo_subnet_public_2",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lb_target_group",
|
|
"name": "demo_tg_web",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771",
|
|
"arn_suffix": "targetgroup/demo-tg-web/7b563928eb416771",
|
|
"connection_termination": null,
|
|
"deregistration_delay": "300",
|
|
"health_check": [
|
|
{
|
|
"enabled": true,
|
|
"healthy_threshold": 5,
|
|
"interval": 30,
|
|
"matcher": "200",
|
|
"path": "/",
|
|
"port": "traffic-port",
|
|
"protocol": "HTTP",
|
|
"timeout": 5,
|
|
"unhealthy_threshold": 2
|
|
}
|
|
],
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771",
|
|
"ip_address_type": "ipv4",
|
|
"lambda_multi_value_headers_enabled": false,
|
|
"load_balancer_arns": [],
|
|
"load_balancing_algorithm_type": "round_robin",
|
|
"load_balancing_anomaly_mitigation": "off",
|
|
"load_balancing_cross_zone_enabled": "use_load_balancer_configuration",
|
|
"name": "demo-tg-web",
|
|
"name_prefix": "",
|
|
"port": 80,
|
|
"preserve_client_ip": null,
|
|
"protocol": "HTTP",
|
|
"protocol_version": "HTTP1",
|
|
"proxy_protocol_v2": false,
|
|
"slow_start": 0,
|
|
"stickiness": [
|
|
{
|
|
"cookie_duration": 86400,
|
|
"cookie_name": "",
|
|
"enabled": false,
|
|
"type": "lb_cookie"
|
|
}
|
|
],
|
|
"tags": {
|
|
"Name": "demo_tg_web"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_tg_web"
|
|
},
|
|
"target_failover": [
|
|
{
|
|
"on_deregistration": null,
|
|
"on_unhealthy": null
|
|
}
|
|
],
|
|
"target_group_health": [
|
|
{
|
|
"dns_failover": [
|
|
{
|
|
"minimum_healthy_targets_count": "1",
|
|
"minimum_healthy_targets_percentage": "off"
|
|
}
|
|
],
|
|
"unhealthy_state_routing": [
|
|
{
|
|
"minimum_healthy_targets_count": 1,
|
|
"minimum_healthy_targets_percentage": "off"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"target_health_state": [
|
|
{
|
|
"enable_unhealthy_connection_termination": null,
|
|
"unhealthy_draining_interval": null
|
|
}
|
|
],
|
|
"target_type": "instance",
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lb_target_group_attachment",
|
|
"name": "demo_attach_web_1",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"availability_zone": null,
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771-20241217065617251800000006",
|
|
"port": 80,
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771",
|
|
"target_id": "i-0f721588e39e30ae3"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"aws_instance.demo_web_1",
|
|
"aws_lb_target_group.demo_tg_web",
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_1",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lb_target_group_attachment",
|
|
"name": "demo_attach_web_2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"availability_zone": null,
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771-20241217065617185700000005",
|
|
"port": 80,
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-1:095277089098:targetgroup/demo-tg-web/7b563928eb416771",
|
|
"target_id": "i-0daee39cc079c10b4"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"aws_instance.demo_web_2",
|
|
"aws_lb_target_group.demo_tg_web",
|
|
"aws_security_group.demo_sg_web",
|
|
"aws_subnet.demo_subnet_public_2",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_route_table",
|
|
"name": "demo_route_table_main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:route-table/rtb-0fb42cb820278a19c",
|
|
"id": "rtb-0fb42cb820278a19c",
|
|
"owner_id": "095277089098",
|
|
"propagating_vgws": [],
|
|
"route": [
|
|
{
|
|
"carrier_gateway_id": "",
|
|
"cidr_block": "0.0.0.0/0",
|
|
"core_network_arn": "",
|
|
"destination_prefix_list_id": "",
|
|
"egress_only_gateway_id": "",
|
|
"gateway_id": "igw-0cf0649ef4f106fe6",
|
|
"ipv6_cidr_block": "",
|
|
"local_gateway_id": "",
|
|
"nat_gateway_id": "",
|
|
"network_interface_id": "",
|
|
"transit_gateway_id": "",
|
|
"vpc_endpoint_id": "",
|
|
"vpc_peering_connection_id": ""
|
|
}
|
|
],
|
|
"tags": {
|
|
"Name": "demo_route_table_main"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_route_table_main"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_internet_gateway.demo_igw_main",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_route_table_association",
|
|
"name": "demo_assoc_public_1",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-0478a366df34ff2cb",
|
|
"route_table_id": "rtb-0fb42cb820278a19c",
|
|
"subnet_id": "subnet-0f2e371f0010dc6e0",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_internet_gateway.demo_igw_main",
|
|
"aws_route_table.demo_route_table_main",
|
|
"aws_subnet.demo_subnet_public_1",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_route_table_association",
|
|
"name": "demo_assoc_public_2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-0f3962dc6e5b289b6",
|
|
"route_table_id": "rtb-0fb42cb820278a19c",
|
|
"subnet_id": "subnet-071b9667aa4e11b05",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_internet_gateway.demo_igw_main",
|
|
"aws_route_table.demo_route_table_main",
|
|
"aws_subnet.demo_subnet_public_2",
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "demo_sg_web",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:security-group/sg-0a917d86778b66c16",
|
|
"description": "Managed by Terraform",
|
|
"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-0a917d86778b66c16",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "",
|
|
"from_port": 80,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 80
|
|
}
|
|
],
|
|
"name": "terraform-20241217065553471700000001",
|
|
"name_prefix": "terraform-",
|
|
"owner_id": "095277089098",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {
|
|
"Name": "demo_sg_web"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_sg_web"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
|
|
"dependencies": [
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_subnet",
|
|
"name": "demo_subnet_public_1",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:subnet/subnet-0f2e371f0010dc6e0",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-1a",
|
|
"availability_zone_id": "apne1-az4",
|
|
"cidr_block": "10.9.1.0/24",
|
|
"customer_owned_ipv4_pool": "",
|
|
"enable_dns64": false,
|
|
"enable_lni_at_device_index": 0,
|
|
"enable_resource_name_dns_a_record_on_launch": false,
|
|
"enable_resource_name_dns_aaaa_record_on_launch": false,
|
|
"id": "subnet-0f2e371f0010dc6e0",
|
|
"ipv6_cidr_block": "",
|
|
"ipv6_cidr_block_association_id": "",
|
|
"ipv6_native": false,
|
|
"map_customer_owned_ip_on_launch": false,
|
|
"map_public_ip_on_launch": true,
|
|
"outpost_arn": "",
|
|
"owner_id": "095277089098",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"tags": {
|
|
"Name": "demo_subnet_public_1"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_subnet_public_1"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_subnet",
|
|
"name": "demo_subnet_public_2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:subnet/subnet-071b9667aa4e11b05",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-1c",
|
|
"availability_zone_id": "apne1-az1",
|
|
"cidr_block": "10.9.2.0/24",
|
|
"customer_owned_ipv4_pool": "",
|
|
"enable_dns64": false,
|
|
"enable_lni_at_device_index": 0,
|
|
"enable_resource_name_dns_a_record_on_launch": false,
|
|
"enable_resource_name_dns_aaaa_record_on_launch": false,
|
|
"id": "subnet-071b9667aa4e11b05",
|
|
"ipv6_cidr_block": "",
|
|
"ipv6_cidr_block_association_id": "",
|
|
"ipv6_native": false,
|
|
"map_customer_owned_ip_on_launch": false,
|
|
"map_public_ip_on_launch": true,
|
|
"outpost_arn": "",
|
|
"owner_id": "095277089098",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"tags": {
|
|
"Name": "demo_subnet_public_2"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_subnet_public_2"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-0f107a79b360c1fb9"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"aws_vpc.demo_vpc_main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_vpc",
|
|
"name": "demo_vpc_main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-1:095277089098:vpc/vpc-0f107a79b360c1fb9",
|
|
"assign_generated_ipv6_cidr_block": false,
|
|
"cidr_block": "10.9.0.0/16",
|
|
"default_network_acl_id": "acl-03b345abb56e12174",
|
|
"default_route_table_id": "rtb-031762f747a4f813e",
|
|
"default_security_group_id": "sg-042bf87cc7cbdf8ea",
|
|
"dhcp_options_id": "dopt-5f01e23a",
|
|
"enable_dns_hostnames": true,
|
|
"enable_dns_support": true,
|
|
"enable_network_address_usage_metrics": false,
|
|
"id": "vpc-0f107a79b360c1fb9",
|
|
"instance_tenancy": "default",
|
|
"ipv4_ipam_pool_id": null,
|
|
"ipv4_netmask_length": null,
|
|
"ipv6_association_id": "",
|
|
"ipv6_cidr_block": "",
|
|
"ipv6_cidr_block_network_border_group": "",
|
|
"ipv6_ipam_pool_id": "",
|
|
"ipv6_netmask_length": 0,
|
|
"main_route_table_id": "rtb-031762f747a4f813e",
|
|
"owner_id": "095277089098",
|
|
"tags": {
|
|
"Name": "demo_vpc_main"
|
|
},
|
|
"tags_all": {
|
|
"Name": "demo_vpc_main"
|
|
}
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ=="
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|