2253 lines
80 KiB
JSON
2253 lines
80 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.13.5",
|
|
"serial": 24,
|
|
"lineage": "e0aed558-4ec9-71f4-d027-a84494b8dbf5",
|
|
"outputs": {
|
|
"aws_id": {
|
|
"value": "${AWS_ID}",
|
|
"type": "string"
|
|
},
|
|
"bastion": {
|
|
"value": {
|
|
"ec2_id": "i-046adf4158bfe6795",
|
|
"private_ip": "10.3.1.143",
|
|
"public_ip_associate": true,
|
|
"sg_id": [
|
|
"sg-09142d65e3a9aaf85"
|
|
]
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"ec2_id": "string",
|
|
"private_ip": "string",
|
|
"public_ip_associate": "bool",
|
|
"sg_id": [
|
|
"set",
|
|
"string"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"info_igw": {
|
|
"value": {
|
|
"igw_id": "igw-0ee2d92d53f024f58"
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"igw_id": "string"
|
|
}
|
|
]
|
|
},
|
|
"info_ngw": {
|
|
"value": "nat-005b00141e8937410",
|
|
"type": "string"
|
|
},
|
|
"info_subnet_ext": {
|
|
"value": {
|
|
"subnet": {
|
|
"zone-a": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-0bf94eac1514fd868",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2a",
|
|
"availability_zone_id": "apne2-az1",
|
|
"cidr_block": "10.3.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-0bf94eac1514fd868",
|
|
"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": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"zone-c": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-060218ba162a2bee1",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"availability_zone_id": "apne2-az3",
|
|
"cidr_block": "10.3.3.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-060218ba162a2bee1",
|
|
"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": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
}
|
|
}
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"subnet": [
|
|
"object",
|
|
{
|
|
"zone-a": [
|
|
"object",
|
|
{
|
|
"arn": "string",
|
|
"assign_ipv6_address_on_creation": "bool",
|
|
"availability_zone": "string",
|
|
"availability_zone_id": "string",
|
|
"cidr_block": "string",
|
|
"customer_owned_ipv4_pool": "string",
|
|
"enable_dns64": "bool",
|
|
"enable_lni_at_device_index": "number",
|
|
"enable_resource_name_dns_a_record_on_launch": "bool",
|
|
"enable_resource_name_dns_aaaa_record_on_launch": "bool",
|
|
"id": "string",
|
|
"ipv6_cidr_block": "string",
|
|
"ipv6_cidr_block_association_id": "string",
|
|
"ipv6_native": "bool",
|
|
"map_customer_owned_ip_on_launch": "bool",
|
|
"map_public_ip_on_launch": "bool",
|
|
"outpost_arn": "string",
|
|
"owner_id": "string",
|
|
"private_dns_hostname_type_on_launch": "string",
|
|
"region": "string",
|
|
"tags": [
|
|
"map",
|
|
"string"
|
|
],
|
|
"tags_all": [
|
|
"map",
|
|
"string"
|
|
],
|
|
"timeouts": [
|
|
"object",
|
|
{
|
|
"create": "string",
|
|
"delete": "string"
|
|
}
|
|
],
|
|
"vpc_id": "string"
|
|
}
|
|
],
|
|
"zone-c": [
|
|
"object",
|
|
{
|
|
"arn": "string",
|
|
"assign_ipv6_address_on_creation": "bool",
|
|
"availability_zone": "string",
|
|
"availability_zone_id": "string",
|
|
"cidr_block": "string",
|
|
"customer_owned_ipv4_pool": "string",
|
|
"enable_dns64": "bool",
|
|
"enable_lni_at_device_index": "number",
|
|
"enable_resource_name_dns_a_record_on_launch": "bool",
|
|
"enable_resource_name_dns_aaaa_record_on_launch": "bool",
|
|
"id": "string",
|
|
"ipv6_cidr_block": "string",
|
|
"ipv6_cidr_block_association_id": "string",
|
|
"ipv6_native": "bool",
|
|
"map_customer_owned_ip_on_launch": "bool",
|
|
"map_public_ip_on_launch": "bool",
|
|
"outpost_arn": "string",
|
|
"owner_id": "string",
|
|
"private_dns_hostname_type_on_launch": "string",
|
|
"region": "string",
|
|
"tags": [
|
|
"map",
|
|
"string"
|
|
],
|
|
"tags_all": [
|
|
"map",
|
|
"string"
|
|
],
|
|
"timeouts": [
|
|
"object",
|
|
{
|
|
"create": "string",
|
|
"delete": "string"
|
|
}
|
|
],
|
|
"vpc_id": "string"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"info_vpc": {
|
|
"value": {
|
|
"vpc_id": "vpc-094d0597c9f7de270",
|
|
"vpc_name": "icurfer-demo"
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"vpc_id": "string",
|
|
"vpc_name": "string"
|
|
}
|
|
]
|
|
},
|
|
"web": {
|
|
"value": {
|
|
"ec2_id": "i-061ac79742fb62f9a",
|
|
"private_ip": "10.3.2.166",
|
|
"public_ip_associate": false,
|
|
"sg_id": [
|
|
"sg-09de01b8aba29f83b"
|
|
]
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"ec2_id": "string",
|
|
"private_ip": "string",
|
|
"public_ip_associate": "bool",
|
|
"sg_id": [
|
|
"set",
|
|
"string"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"mode": "data",
|
|
"type": "aws_caller_identity",
|
|
"name": "this",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"account_id": "${AWS_ID}",
|
|
"arn": "arn:aws:iam::${AWS_ID}:user/icurfer-demo",
|
|
"id": "${AWS_ID}",
|
|
"user_id": "AIDAWQ4CBXWFJSQBH62TS"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb",
|
|
"mode": "managed",
|
|
"type": "aws_lb",
|
|
"name": "alb",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"access_logs": [
|
|
{
|
|
"bucket": "",
|
|
"enabled": false,
|
|
"prefix": ""
|
|
}
|
|
],
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:loadbalancer/app/icurfer-demo-alb/cfca3d19b8b78a49",
|
|
"arn_suffix": "app/icurfer-demo-alb/cfca3d19b8b78a49",
|
|
"client_keep_alive": 3600,
|
|
"connection_logs": [
|
|
{
|
|
"bucket": "",
|
|
"enabled": false,
|
|
"prefix": ""
|
|
}
|
|
],
|
|
"customer_owned_ipv4_pool": "",
|
|
"desync_mitigation_mode": "defensive",
|
|
"dns_name": "icurfer-demo-alb-1209844126.ap-northeast-2.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-2:${AWS_ID}:loadbalancer/app/icurfer-demo-alb/cfca3d19b8b78a49",
|
|
"idle_timeout": 60,
|
|
"internal": false,
|
|
"ip_address_type": "ipv4",
|
|
"ipam_pools": [],
|
|
"load_balancer_type": "application",
|
|
"minimum_load_balancer_capacity": [],
|
|
"name": "icurfer-demo-alb",
|
|
"name_prefix": "",
|
|
"preserve_host_header": false,
|
|
"region": "ap-northeast-2",
|
|
"secondary_ips_auto_assigned_per_subnet": null,
|
|
"security_groups": [
|
|
"sg-0b990b7962b1a40c7"
|
|
],
|
|
"subnet_mapping": [
|
|
{
|
|
"allocation_id": "",
|
|
"ipv6_address": "",
|
|
"outpost_id": "",
|
|
"private_ipv4_address": "",
|
|
"subnet_id": "subnet-060218ba162a2bee1"
|
|
},
|
|
{
|
|
"allocation_id": "",
|
|
"ipv6_address": "",
|
|
"outpost_id": "",
|
|
"private_ipv4_address": "",
|
|
"subnet_id": "subnet-0bf94eac1514fd868"
|
|
}
|
|
],
|
|
"subnets": [
|
|
"subnet-060218ba162a2bee1",
|
|
"subnet-0bf94eac1514fd868"
|
|
],
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270",
|
|
"xff_header_processing_mode": "append",
|
|
"zone_id": "ZWKZPGTI48KDX"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:loadbalancer/app/icurfer-demo-alb/cfca3d19b8b78a49"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb",
|
|
"mode": "managed",
|
|
"type": "aws_lb_listener",
|
|
"name": "http",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"alpn_policy": null,
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f",
|
|
"certificate_arn": null,
|
|
"default_action": [
|
|
{
|
|
"authenticate_cognito": [],
|
|
"authenticate_oidc": [],
|
|
"fixed_response": [],
|
|
"forward": [],
|
|
"order": 1,
|
|
"redirect": [],
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f",
|
|
"type": "forward"
|
|
}
|
|
],
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f",
|
|
"load_balancer_arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:loadbalancer/app/icurfer-demo-alb/cfca3d19b8b78a49",
|
|
"mutual_authentication": [],
|
|
"port": 80,
|
|
"protocol": "HTTP",
|
|
"region": "ap-northeast-2",
|
|
"routing_http_request_x_amzn_mtls_clientcert_header_name": null,
|
|
"routing_http_request_x_amzn_mtls_clientcert_issuer_header_name": null,
|
|
"routing_http_request_x_amzn_mtls_clientcert_leaf_header_name": null,
|
|
"routing_http_request_x_amzn_mtls_clientcert_serial_number_header_name": null,
|
|
"routing_http_request_x_amzn_mtls_clientcert_subject_header_name": null,
|
|
"routing_http_request_x_amzn_mtls_clientcert_validity_header_name": null,
|
|
"routing_http_request_x_amzn_tls_cipher_suite_header_name": null,
|
|
"routing_http_request_x_amzn_tls_version_header_name": null,
|
|
"routing_http_response_access_control_allow_credentials_header_value": "",
|
|
"routing_http_response_access_control_allow_headers_header_value": "",
|
|
"routing_http_response_access_control_allow_methods_header_value": "",
|
|
"routing_http_response_access_control_allow_origin_header_value": "",
|
|
"routing_http_response_access_control_expose_headers_header_value": "",
|
|
"routing_http_response_access_control_max_age_header_value": "",
|
|
"routing_http_response_content_security_policy_header_value": "",
|
|
"routing_http_response_server_enabled": true,
|
|
"routing_http_response_strict_transport_security_header_value": "",
|
|
"routing_http_response_x_content_type_options_header_value": "",
|
|
"routing_http_response_x_frame_options_header_value": "",
|
|
"ssl_policy": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"tcp_idle_timeout_seconds": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"module.alb.aws_lb.alb",
|
|
"module.alb.aws_lb_target_group.instance",
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb",
|
|
"mode": "managed",
|
|
"type": "aws_lb_listener_rule",
|
|
"name": "alb-lsn-rule",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"action": [
|
|
{
|
|
"authenticate_cognito": [],
|
|
"authenticate_oidc": [],
|
|
"fixed_response": [],
|
|
"forward": [],
|
|
"order": 1,
|
|
"redirect": [],
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f",
|
|
"type": "forward"
|
|
}
|
|
],
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener-rule/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f/76e733b43a3dac43",
|
|
"condition": [
|
|
{
|
|
"host_header": [],
|
|
"http_header": [],
|
|
"http_request_method": [],
|
|
"path_pattern": [
|
|
{
|
|
"regex_values": [],
|
|
"values": [
|
|
"*"
|
|
]
|
|
}
|
|
],
|
|
"query_string": [],
|
|
"source_ip": []
|
|
}
|
|
],
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener-rule/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f/76e733b43a3dac43",
|
|
"listener_arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f",
|
|
"priority": 100,
|
|
"region": "ap-northeast-2",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"transform": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:listener-rule/app/icurfer-demo-alb/cfca3d19b8b78a49/c08c4af125a9ed6f/76e733b43a3dac43"
|
|
},
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.alb.aws_lb.alb",
|
|
"module.alb.aws_lb_listener.http",
|
|
"module.alb.aws_lb_target_group.instance",
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb",
|
|
"mode": "managed",
|
|
"type": "aws_lb_target_group",
|
|
"name": "instance",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f",
|
|
"arn_suffix": "targetgroup/web-tg/346ef474807f527f",
|
|
"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-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f",
|
|
"ip_address_type": "ipv4",
|
|
"lambda_multi_value_headers_enabled": false,
|
|
"load_balancer_arns": [
|
|
"arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:loadbalancer/app/icurfer-demo-alb/cfca3d19b8b78a49"
|
|
],
|
|
"load_balancing_algorithm_type": "round_robin",
|
|
"load_balancing_anomaly_mitigation": "off",
|
|
"load_balancing_cross_zone_enabled": "use_load_balancer_configuration",
|
|
"name": "web-tg",
|
|
"name_prefix": "",
|
|
"port": 80,
|
|
"preserve_client_ip": null,
|
|
"protocol": "HTTP",
|
|
"protocol_version": "HTTP1",
|
|
"proxy_protocol_v2": false,
|
|
"region": "ap-northeast-2",
|
|
"slow_start": 0,
|
|
"stickiness": [
|
|
{
|
|
"cookie_duration": 86400,
|
|
"cookie_name": "",
|
|
"enabled": false,
|
|
"type": "lb_cookie"
|
|
}
|
|
],
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"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-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f"
|
|
},
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb",
|
|
"mode": "managed",
|
|
"type": "aws_lb_target_group_attachment",
|
|
"name": "instance",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"availability_zone": null,
|
|
"id": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f-20251114173146343200000001",
|
|
"port": 80,
|
|
"region": "ap-northeast-2",
|
|
"target_group_arn": "arn:aws:elasticloadbalancing:ap-northeast-2:${AWS_ID}:targetgroup/web-tg/346ef474807f527f",
|
|
"target_id": "i-061ac79742fb62f9a"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.alb.aws_lb_target_group.instance",
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.ngw.aws_eip.nat-eip",
|
|
"module.ngw.aws_nat_gateway.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg",
|
|
"module.web_svr.aws_instance.ec2",
|
|
"module.web_svr.aws_network_interface.eni"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb_sg",
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "sg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:security-group/sg-0b990b7962b1a40c7",
|
|
"description": "Security groups",
|
|
"egress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "-1",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"id": "sg-0b990b7962b1a40c7",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 80,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 80
|
|
}
|
|
],
|
|
"name": "icurfer-demo-alb-sg",
|
|
"name_prefix": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"region": "ap-northeast-2",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "sg-0b990b7962b1a40c7",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb_sg_egress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "ssh",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"id": "sgrule-4061797488",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "-1",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-0b990b7962b1a40c7",
|
|
"security_group_rule_id": "sgr-0f95caacb915475ab",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 0,
|
|
"type": "egress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.alb_sg_ingress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "http",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 80,
|
|
"id": "sgrule-1733558737",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "tcp",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-0b990b7962b1a40c7",
|
|
"security_group_rule_id": "sgr-03e037fd81a46cc57",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 80,
|
|
"type": "ingress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.alb_sg.aws_security_group.sg",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.bastion",
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "ec2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"ami": "ami-010be25c3775061c9",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:instance/i-046adf4158bfe6795",
|
|
"associate_public_ip_address": true,
|
|
"availability_zone": "ap-northeast-2a",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"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": [],
|
|
"force_destroy": false,
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-046adf4158bfe6795",
|
|
"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": "icurfer-demo",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_protocol_ipv6": "disabled",
|
|
"http_put_response_hop_limit": 1,
|
|
"http_tokens": "optional",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_group_id": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface": [
|
|
{
|
|
"delete_on_termination": false,
|
|
"network_interface_id": "eni-0e16a7a0542f62fad"
|
|
}
|
|
],
|
|
"primary_network_interface_id": "eni-0e16a7a0542f62fad",
|
|
"private_dns": "ip-10-3-1-143.ap-northeast-2.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.3.1.143",
|
|
"public_dns": "ec2-43-201-31-200.ap-northeast-2.compute.amazonaws.com",
|
|
"public_ip": "43.201.31.200",
|
|
"region": "ap-northeast-2",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/sda1",
|
|
"encrypted": false,
|
|
"iops": 100,
|
|
"kms_key_id": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"throughput": 0,
|
|
"volume_id": "vol-0a56f44d36a2724bc",
|
|
"volume_size": 8,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-0bf94eac1514fd868",
|
|
"tags": {
|
|
"Name": "bastion"
|
|
},
|
|
"tags_all": {
|
|
"Name": "bastion"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": null,
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-09142d65e3a9aaf85"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "i-046adf4158bfe6795",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9",
|
|
"dependencies": [
|
|
"module.bastion.aws_network_interface.eni",
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.bastion",
|
|
"mode": "managed",
|
|
"type": "aws_network_interface",
|
|
"name": "eni",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:network-interface/eni-0e16a7a0542f62fad",
|
|
"attachment": [
|
|
{
|
|
"attachment_id": "eni-attach-01cc7b433a07391bf",
|
|
"device_index": 0,
|
|
"instance": "i-046adf4158bfe6795",
|
|
"network_card_index": 0
|
|
}
|
|
],
|
|
"description": "",
|
|
"enable_primary_ipv6": null,
|
|
"id": "eni-0e16a7a0542f62fad",
|
|
"interface_type": "interface",
|
|
"ipv4_prefix_count": 0,
|
|
"ipv4_prefixes": [],
|
|
"ipv6_address_count": 0,
|
|
"ipv6_address_list": [],
|
|
"ipv6_address_list_enabled": false,
|
|
"ipv6_addresses": [],
|
|
"ipv6_prefix_count": 0,
|
|
"ipv6_prefixes": [],
|
|
"mac_address": "02:fc:21:1f:44:99",
|
|
"outpost_arn": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"private_dns_name": "ip-10-3-1-143.ap-northeast-2.compute.internal",
|
|
"private_ip": "10.3.1.143",
|
|
"private_ip_list": [
|
|
"10.3.1.143"
|
|
],
|
|
"private_ip_list_enabled": false,
|
|
"private_ips": [
|
|
"10.3.1.143"
|
|
],
|
|
"private_ips_count": 0,
|
|
"region": "ap-northeast-2",
|
|
"security_groups": [
|
|
"sg-09142d65e3a9aaf85"
|
|
],
|
|
"source_dest_check": true,
|
|
"subnet_id": "subnet-0bf94eac1514fd868",
|
|
"tags": {
|
|
"Name": "primary_network_interface"
|
|
},
|
|
"tags_all": {
|
|
"Name": "primary_network_interface"
|
|
}
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.bastion_sg",
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "sg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:security-group/sg-09142d65e3a9aaf85",
|
|
"description": "Security groups",
|
|
"egress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "-1",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"id": "sg-09142d65e3a9aaf85",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"140.245.71.192/32"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 22,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 22
|
|
}
|
|
],
|
|
"name": "icurfer-demo-bastion-sg",
|
|
"name_prefix": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"region": "ap-northeast-2",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "sg-09142d65e3a9aaf85",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.bastion_sg_egress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "ssh",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"id": "sgrule-2100603008",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "-1",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-09142d65e3a9aaf85",
|
|
"security_group_rule_id": "sgr-0f32711cd46a0d8ae",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 0,
|
|
"type": "egress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.bastion_sg_ingress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "ssh",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"140.245.71.192/32"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 22,
|
|
"id": "sgrule-3487828899",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "tcp",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-09142d65e3a9aaf85",
|
|
"security_group_rule_id": "sgr-0adb077887de6b592",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 22,
|
|
"type": "ingress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.igw",
|
|
"mode": "managed",
|
|
"type": "aws_internet_gateway",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:internet-gateway/igw-0ee2d92d53f024f58",
|
|
"id": "igw-0ee2d92d53f024f58",
|
|
"owner_id": "${AWS_ID}",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-igw"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-igw"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.ngw",
|
|
"mode": "managed",
|
|
"type": "aws_eip",
|
|
"name": "nat-eip",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"address": null,
|
|
"allocation_id": "eipalloc-001e6b4f360b452bb",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:elastic-ip/eipalloc-001e6b4f360b452bb",
|
|
"associate_with_private_ip": null,
|
|
"association_id": "eipassoc-01706e3c27d57aae3",
|
|
"carrier_ip": "",
|
|
"customer_owned_ip": "",
|
|
"customer_owned_ipv4_pool": "",
|
|
"domain": "vpc",
|
|
"id": "eipalloc-001e6b4f360b452bb",
|
|
"instance": "",
|
|
"ipam_pool_id": null,
|
|
"network_border_group": "ap-northeast-2",
|
|
"network_interface": "eni-095145bcc52ec8306",
|
|
"private_dns": "ip-10-3-1-216.ap-northeast-2.compute.internal",
|
|
"private_ip": "10.3.1.216",
|
|
"ptr_record": "",
|
|
"public_dns": "ec2-13-209-239-239.ap-northeast-2.compute.amazonaws.com",
|
|
"public_ip": "13.209.239.239",
|
|
"public_ipv4_pool": "amazon",
|
|
"region": "ap-northeast-2",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==",
|
|
"dependencies": [
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
],
|
|
"create_before_destroy": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.ngw",
|
|
"mode": "managed",
|
|
"type": "aws_nat_gateway",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"allocation_id": "eipalloc-001e6b4f360b452bb",
|
|
"association_id": "eipassoc-01706e3c27d57aae3",
|
|
"connectivity_type": "public",
|
|
"id": "nat-005b00141e8937410",
|
|
"network_interface_id": "eni-095145bcc52ec8306",
|
|
"private_ip": "10.3.1.216",
|
|
"public_ip": "13.209.239.239",
|
|
"region": "ap-northeast-2",
|
|
"secondary_allocation_ids": [],
|
|
"secondary_private_ip_address_count": 0,
|
|
"secondary_private_ip_addresses": [],
|
|
"subnet_id": "subnet-0bf94eac1514fd868",
|
|
"tags": {
|
|
"Name": "icurfer-demo-ngw"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-ngw"
|
|
},
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTgwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==",
|
|
"dependencies": [
|
|
"module.ngw.aws_eip.nat-eip",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_add",
|
|
"mode": "managed",
|
|
"type": "aws_route",
|
|
"name": "route-igw-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"carrier_gateway_id": "",
|
|
"core_network_arn": "",
|
|
"destination_cidr_block": "0.0.0.0/0",
|
|
"destination_ipv6_cidr_block": "",
|
|
"destination_prefix_list_id": "",
|
|
"egress_only_gateway_id": "",
|
|
"gateway_id": "igw-0ee2d92d53f024f58",
|
|
"id": "r-rtb-0baf654d0b000bede1080289494",
|
|
"instance_id": "",
|
|
"instance_owner_id": "",
|
|
"local_gateway_id": "",
|
|
"nat_gateway_id": "",
|
|
"network_interface_id": "",
|
|
"origin": "CreateRoute",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-0baf654d0b000bede",
|
|
"state": "active",
|
|
"timeouts": null,
|
|
"transit_gateway_id": "",
|
|
"vpc_endpoint_id": "",
|
|
"vpc_peering_connection_id": ""
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"destination_cidr_block": "0.0.0.0/0",
|
|
"destination_ipv6_cidr_block": null,
|
|
"destination_prefix_list_id": null,
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-0baf654d0b000bede"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.igw.aws_internet_gateway.main",
|
|
"module.route_public.aws_route_table.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_add_nat",
|
|
"mode": "managed",
|
|
"type": "aws_route",
|
|
"name": "route-nat-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"carrier_gateway_id": "",
|
|
"core_network_arn": "",
|
|
"destination_cidr_block": "0.0.0.0/0",
|
|
"destination_ipv6_cidr_block": "",
|
|
"destination_prefix_list_id": "",
|
|
"egress_only_gateway_id": "",
|
|
"gateway_id": "",
|
|
"id": "r-rtb-00de7d014a0da356d1080289494",
|
|
"instance_id": "",
|
|
"instance_owner_id": "",
|
|
"local_gateway_id": "",
|
|
"nat_gateway_id": "nat-005b00141e8937410",
|
|
"network_interface_id": "",
|
|
"origin": "CreateRoute",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-00de7d014a0da356d",
|
|
"state": "active",
|
|
"timeouts": null,
|
|
"transit_gateway_id": "",
|
|
"vpc_endpoint_id": "",
|
|
"vpc_peering_connection_id": ""
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"destination_cidr_block": "0.0.0.0/0",
|
|
"destination_ipv6_cidr_block": null,
|
|
"destination_prefix_list_id": null,
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-00de7d014a0da356d"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.ngw.aws_eip.nat-eip",
|
|
"module.ngw.aws_nat_gateway.main",
|
|
"module.route_private.aws_route_table.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_association",
|
|
"mode": "managed",
|
|
"type": "aws_route_table_association",
|
|
"name": "route-association",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-0eca570af20701aca",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-0baf654d0b000bede",
|
|
"subnet_id": "subnet-0bf94eac1514fd868",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.route_public.aws_route_table.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 1,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-0c42948b363f39d6f",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-0baf654d0b000bede",
|
|
"subnet_id": "subnet-060218ba162a2bee1",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.route_public.aws_route_table.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_association_nat",
|
|
"mode": "managed",
|
|
"type": "aws_route_table_association",
|
|
"name": "route-association",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-05dc35d613ad0485c",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-00de7d014a0da356d",
|
|
"subnet_id": "subnet-0a2b1a87f06b6beb4",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.route_private.aws_route_table.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 1,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway_id": "",
|
|
"id": "rtbassoc-061e1dd46ab376d11",
|
|
"region": "ap-northeast-2",
|
|
"route_table_id": "rtb-00de7d014a0da356d",
|
|
"subnet_id": "subnet-0357469df090fe600",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.route_private.aws_route_table.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_private",
|
|
"mode": "managed",
|
|
"type": "aws_route_table",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:route-table/rtb-00de7d014a0da356d",
|
|
"id": "rtb-00de7d014a0da356d",
|
|
"owner_id": "${AWS_ID}",
|
|
"propagating_vgws": [],
|
|
"region": "ap-northeast-2",
|
|
"route": [
|
|
{
|
|
"carrier_gateway_id": "",
|
|
"cidr_block": "0.0.0.0/0",
|
|
"core_network_arn": "",
|
|
"destination_prefix_list_id": "",
|
|
"egress_only_gateway_id": "",
|
|
"gateway_id": "",
|
|
"ipv6_cidr_block": "",
|
|
"local_gateway_id": "",
|
|
"nat_gateway_id": "nat-005b00141e8937410",
|
|
"network_interface_id": "",
|
|
"transit_gateway_id": "",
|
|
"vpc_endpoint_id": "",
|
|
"vpc_peering_connection_id": ""
|
|
}
|
|
],
|
|
"tags": {
|
|
"Name": "icurfer-demo-int-rt"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-int-rt"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "rtb-00de7d014a0da356d",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.route_public",
|
|
"mode": "managed",
|
|
"type": "aws_route_table",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:route-table/rtb-0baf654d0b000bede",
|
|
"id": "rtb-0baf654d0b000bede",
|
|
"owner_id": "${AWS_ID}",
|
|
"propagating_vgws": [],
|
|
"region": "ap-northeast-2",
|
|
"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-0ee2d92d53f024f58",
|
|
"ipv6_cidr_block": "",
|
|
"local_gateway_id": "",
|
|
"nat_gateway_id": "",
|
|
"network_interface_id": "",
|
|
"transit_gateway_id": "",
|
|
"vpc_endpoint_id": "",
|
|
"vpc_peering_connection_id": ""
|
|
}
|
|
],
|
|
"tags": {
|
|
"Name": "icurfer-demo-ext-rt"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-ext-rt"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "rtb-0baf654d0b000bede",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.subnet_ext",
|
|
"mode": "managed",
|
|
"type": "aws_subnet",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "zone-a",
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-0bf94eac1514fd868",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2a",
|
|
"availability_zone_id": "apne2-az1",
|
|
"cidr_block": "10.3.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-0bf94eac1514fd868",
|
|
"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": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "subnet-0bf94eac1514fd868",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
],
|
|
"create_before_destroy": true
|
|
},
|
|
{
|
|
"index_key": "zone-c",
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-060218ba162a2bee1",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"availability_zone_id": "apne2-az3",
|
|
"cidr_block": "10.3.3.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-060218ba162a2bee1",
|
|
"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": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "subnet-060218ba162a2bee1",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
],
|
|
"create_before_destroy": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.subnet_int",
|
|
"mode": "managed",
|
|
"type": "aws_subnet",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "zone-a",
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-0a2b1a87f06b6beb4",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2a",
|
|
"availability_zone_id": "apne2-az1",
|
|
"cidr_block": "10.3.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-0a2b1a87f06b6beb4",
|
|
"ipv6_cidr_block": "",
|
|
"ipv6_cidr_block_association_id": "",
|
|
"ipv6_native": false,
|
|
"map_customer_owned_ip_on_launch": false,
|
|
"map_public_ip_on_launch": false,
|
|
"outpost_arn": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "subnet-0a2b1a87f06b6beb4",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
},
|
|
{
|
|
"index_key": "zone-c",
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:subnet/subnet-0357469df090fe600",
|
|
"assign_ipv6_address_on_creation": false,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"availability_zone_id": "apne2-az3",
|
|
"cidr_block": "10.3.4.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-0357469df090fe600",
|
|
"ipv6_cidr_block": "",
|
|
"ipv6_cidr_block_association_id": "",
|
|
"ipv6_native": false,
|
|
"map_customer_owned_ip_on_launch": false,
|
|
"map_public_ip_on_launch": false,
|
|
"outpost_arn": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"private_dns_hostname_type_on_launch": "ip-name",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-subnet"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "subnet-0357469df090fe600",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.vpc",
|
|
"mode": "managed",
|
|
"type": "aws_vpc",
|
|
"name": "main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:vpc/vpc-094d0597c9f7de270",
|
|
"assign_generated_ipv6_cidr_block": false,
|
|
"cidr_block": "10.3.0.0/16",
|
|
"default_network_acl_id": "acl-038acdff82dee941a",
|
|
"default_route_table_id": "rtb-0631cc424c5b39ac7",
|
|
"default_security_group_id": "sg-03defe67960fcbac0",
|
|
"dhcp_options_id": "dopt-016212e28ae9032c1",
|
|
"enable_dns_hostnames": true,
|
|
"enable_dns_support": true,
|
|
"enable_network_address_usage_metrics": false,
|
|
"id": "vpc-094d0597c9f7de270",
|
|
"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-0631cc424c5b39ac7",
|
|
"owner_id": "${AWS_ID}",
|
|
"region": "ap-northeast-2",
|
|
"tags": {
|
|
"Name": "icurfer-demo-vpc"
|
|
},
|
|
"tags_all": {
|
|
"Name": "icurfer-demo-vpc"
|
|
}
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "vpc-094d0597c9f7de270",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
|
|
"create_before_destroy": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.web_sg",
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "sg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:security-group/sg-09de01b8aba29f83b",
|
|
"description": "Security groups",
|
|
"egress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "-1",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"id": "sg-09de01b8aba29f83b",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 80,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 80
|
|
},
|
|
{
|
|
"cidr_blocks": [
|
|
"10.3.1.143/32"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 22,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 22
|
|
}
|
|
],
|
|
"name": "icurfer-demo-web-sg",
|
|
"name_prefix": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"region": "ap-northeast-2",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-094d0597c9f7de270"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "sg-09de01b8aba29f83b",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.web_sg_egress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "ssh",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 0,
|
|
"id": "sgrule-1009189752",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "-1",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-09de01b8aba29f83b",
|
|
"security_group_rule_id": "sgr-0976d1555c00ab99c",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 0,
|
|
"type": "egress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.web_sg_ingress",
|
|
"mode": "managed",
|
|
"type": "aws_security_group_rule",
|
|
"name": "sg-rule-add",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "http",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 80,
|
|
"id": "sgrule-3420894346",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "tcp",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-09de01b8aba29f83b",
|
|
"security_group_rule_id": "sgr-0bff1fb2fff37ebe3",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 80,
|
|
"type": "ingress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.bastion.aws_instance.ec2",
|
|
"module.bastion.aws_network_interface.eni",
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg"
|
|
]
|
|
},
|
|
{
|
|
"index_key": "ssh",
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"cidr_blocks": [
|
|
"10.3.1.143/32"
|
|
],
|
|
"description": "icurfer-demo-sg-rule",
|
|
"from_port": 22,
|
|
"id": "sgrule-3174725373",
|
|
"ipv6_cidr_blocks": null,
|
|
"prefix_list_ids": null,
|
|
"protocol": "tcp",
|
|
"region": "ap-northeast-2",
|
|
"security_group_id": "sg-09de01b8aba29f83b",
|
|
"security_group_rule_id": "sgr-03f01e0876ef8b65d",
|
|
"self": false,
|
|
"source_security_group_id": null,
|
|
"timeouts": null,
|
|
"to_port": 22,
|
|
"type": "ingress"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
|
"dependencies": [
|
|
"module.bastion.aws_instance.ec2",
|
|
"module.bastion.aws_network_interface.eni",
|
|
"module.bastion_sg.aws_security_group.sg",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.web_svr",
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "ec2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"ami": "ami-010be25c3775061c9",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:instance/i-061ac79742fb62f9a",
|
|
"associate_public_ip_address": false,
|
|
"availability_zone": "ap-northeast-2a",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"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": [],
|
|
"force_destroy": false,
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-061ac79742fb62f9a",
|
|
"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": "icurfer-demo",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_protocol_ipv6": "disabled",
|
|
"http_put_response_hop_limit": 1,
|
|
"http_tokens": "optional",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_group_id": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface": [
|
|
{
|
|
"delete_on_termination": false,
|
|
"network_interface_id": "eni-067bc63bbbcf070e0"
|
|
}
|
|
],
|
|
"primary_network_interface_id": "eni-067bc63bbbcf070e0",
|
|
"private_dns": "ip-10-3-2-166.ap-northeast-2.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.3.2.166",
|
|
"public_dns": "",
|
|
"public_ip": "",
|
|
"region": "ap-northeast-2",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/sda1",
|
|
"encrypted": false,
|
|
"iops": 100,
|
|
"kms_key_id": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"throughput": 0,
|
|
"volume_id": "vol-0072a5a0d55072319",
|
|
"volume_size": 8,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-0a2b1a87f06b6beb4",
|
|
"tags": {
|
|
"Name": "web"
|
|
},
|
|
"tags_all": {
|
|
"Name": "web"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": "#!/bin/bash\nset -e\n\n# Update and install docker\napt update -y\napt install -y docker.io\n\n# Enable \u0026 start Docker\nsystemctl enable docker\nsystemctl start docker\n\n# Wait for docker daemon to be ready\ntries=0\nwhile ! docker info \u003e/dev/null 2\u003e\u00261; do\n tries=$((tries+1))\n echo \"Waiting for Docker... ($tries)\"\n sleep 30\ndone\n\n# Run the helloworld container\ndocker run -d --name hello -p 80:8080 testcontainers/helloworld:1.2.0",
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-09de01b8aba29f83b"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"identity": {
|
|
"account_id": "${AWS_ID}",
|
|
"id": "i-061ac79742fb62f9a",
|
|
"region": "ap-northeast-2"
|
|
},
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9",
|
|
"dependencies": [
|
|
"module.ngw.aws_eip.nat-eip",
|
|
"module.ngw.aws_nat_gateway.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg",
|
|
"module.web_svr.aws_network_interface.eni"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.web_svr",
|
|
"mode": "managed",
|
|
"type": "aws_network_interface",
|
|
"name": "eni",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:${AWS_ID}:network-interface/eni-067bc63bbbcf070e0",
|
|
"attachment": [
|
|
{
|
|
"attachment_id": "eni-attach-06745c1e3ac066527",
|
|
"device_index": 0,
|
|
"instance": "i-061ac79742fb62f9a",
|
|
"network_card_index": 0
|
|
}
|
|
],
|
|
"description": "",
|
|
"enable_primary_ipv6": null,
|
|
"id": "eni-067bc63bbbcf070e0",
|
|
"interface_type": "interface",
|
|
"ipv4_prefix_count": 0,
|
|
"ipv4_prefixes": [],
|
|
"ipv6_address_count": 0,
|
|
"ipv6_address_list": [],
|
|
"ipv6_address_list_enabled": false,
|
|
"ipv6_addresses": [],
|
|
"ipv6_prefix_count": 0,
|
|
"ipv6_prefixes": [],
|
|
"mac_address": "02:49:56:c6:c5:bb",
|
|
"outpost_arn": "",
|
|
"owner_id": "${AWS_ID}",
|
|
"private_dns_name": "ip-10-3-2-166.ap-northeast-2.compute.internal",
|
|
"private_ip": "10.3.2.166",
|
|
"private_ip_list": [
|
|
"10.3.2.166"
|
|
],
|
|
"private_ip_list_enabled": false,
|
|
"private_ips": [
|
|
"10.3.2.166"
|
|
],
|
|
"private_ips_count": 0,
|
|
"region": "ap-northeast-2",
|
|
"security_groups": [
|
|
"sg-09de01b8aba29f83b"
|
|
],
|
|
"source_dest_check": true,
|
|
"subnet_id": "subnet-0a2b1a87f06b6beb4",
|
|
"tags": {
|
|
"Name": "primary_network_interface"
|
|
},
|
|
"tags_all": {
|
|
"Name": "primary_network_interface"
|
|
}
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.ngw.aws_eip.nat-eip",
|
|
"module.ngw.aws_nat_gateway.main",
|
|
"module.subnet_ext.aws_subnet.main",
|
|
"module.subnet_int.aws_subnet.main",
|
|
"module.vpc.aws_vpc.main",
|
|
"module.web_sg.aws_security_group.sg"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|
|
|