diff --git a/kops/prod.datasaker.io-20221102.yaml b/kops/prod.datasaker.io-20221102.yaml new file mode 100644 index 0000000..c7e4e29 --- /dev/null +++ b/kops/prod.datasaker.io-20221102.yaml @@ -0,0 +1,411 @@ +apiVersion: kops.k8s.io/v1alpha2 +kind: Cluster +metadata: + creationTimestamp: "2022-11-01T05:36:36Z" + generation: 2 + name: k8s-prod.datasaker.io +spec: + api: + loadBalancer: + class: Network + type: Public + authorization: + rbac: {} + channel: stable + cloudProvider: aws + configBase: s3://clusters.prod.datasaker.io/k8s-prod.datasaker.io + containerRuntime: containerd + etcdClusters: + - cpuRequest: 200m + etcdMembers: + - encryptedVolume: true + instanceGroup: master-ap-northeast-2a + name: a + - encryptedVolume: true + instanceGroup: master-ap-northeast-2b + name: b + - encryptedVolume: true + instanceGroup: master-ap-northeast-2c + name: c + memoryRequest: 100Mi + name: main + - cpuRequest: 100m + etcdMembers: + - encryptedVolume: true + instanceGroup: master-ap-northeast-2a + name: a + - encryptedVolume: true + instanceGroup: master-ap-northeast-2b + name: b + - encryptedVolume: true + instanceGroup: master-ap-northeast-2c + name: c + memoryRequest: 100Mi + name: events + iam: + allowContainerRegistry: true + legacy: false + kubelet: + anonymousAuth: false + kubernetesApiAccess: + - 0.0.0.0/0 + - ::/0 + kubernetesVersion: 1.25.2 + masterInternalName: api.internal.k8s-prod.datasaker.io + masterPublicName: api.k8s-prod.datasaker.io + networkCIDR: 172.24.0.0/19 + networkID: vpc-00ba2b0e9ad59f0ed + networking: + calico: {} + nonMasqueradeCIDR: 100.64.0.0/10 + sshAccess: + - 0.0.0.0/0 + - ::/0 + subnets: + - cidr: 172.24.8.0/23 + id: subnet-024f0deda82039fa4 + name: ap-northeast-2a + type: Private + zone: ap-northeast-2a + - cidr: 172.24.10.0/23 + id: subnet-050d942fa1c46540a + name: ap-northeast-2b + type: Private + zone: ap-northeast-2b + - cidr: 172.24.12.0/23 + id: subnet-0946eb806af7377be + name: ap-northeast-2c + type: Private + zone: ap-northeast-2c + - cidr: 172.24.0.0/24 + id: subnet-00c363356f133411d + name: utility-ap-northeast-2a + type: Utility + zone: ap-northeast-2a + - cidr: 172.24.1.0/24 + id: subnet-07aa5e879a262014d + name: utility-ap-northeast-2b + type: Utility + zone: ap-northeast-2b + - cidr: 172.24.2.0/24 + id: subnet-0073a61bc56a68a3e + name: utility-ap-northeast-2c + type: Utility + zone: ap-northeast-2c + topology: + dns: + type: Public + masters: private + nodes: private + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:50:52Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-druid-a +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-druid + kops.k8s.io/instancegroup: k8s-prod-data-druid-a + role: Node + subnets: + - ap-northeast-2a + taints: + - prod/data-druid:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:50:52Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-druid-b +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-druid + kops.k8s.io/instancegroup: k8s-prod-data-druid-b + role: Node + subnets: + - ap-northeast-2b + taints: + - prod/data-druid:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:50:52Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-druid-c +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-druid + kops.k8s.io/instancegroup: k8s-prod-data-druid-c + role: Node + subnets: + - ap-northeast-2c + taints: + - prod/data-druid:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:35Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-kafka-a +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-kafka + kops.k8s.io/instancegroup: k8s-prod-data-kafka-a + role: Node + subnets: + - ap-northeast-2a + taints: + - prod/data-kafka:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:35Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-kafka-b +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-kafka + kops.k8s.io/instancegroup: k8s-prod-data-kafka-b + role: Node + subnets: + - ap-northeast-2b + taints: + - prod/data-kafka:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:35Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-data-kafka-c +spec: + image: ami-0abb33b73a78cae31 + kubelet: + anonymousAuth: false + nodeLabels: + node-role.kubernetes.io/node: "" + machineType: m6i.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: data-kafka + kops.k8s.io/instancegroup: k8s-prod-data-kafka-c + role: Node + subnets: + - ap-northeast-2c + taints: + - prod/data-kafka:NoSchedule + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:49Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-process-a +spec: + image: ami-0abb33b73a78cae31 + machineType: c5.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: process + kops.k8s.io/instancegroup: k8s-prod-process-a + role: Node + rootVolumeSize: 100 + subnets: + - ap-northeast-2a + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:49Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-process-b +spec: + image: ami-0abb33b73a78cae31 + machineType: c5.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: process + kops.k8s.io/instancegroup: k8s-prod-process-b + role: Node + rootVolumeSize: 100 + subnets: + - ap-northeast-2b + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-02T01:51:49Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: k8s-prod-process-c +spec: + image: ami-0abb33b73a78cae31 + machineType: c5.large + manager: CloudGroup + maxSize: 1 + minSize: 1 + nodeLabels: + datasaker/group: process + kops.k8s.io/instancegroup: k8s-prod-process-c + role: Node + rootVolumeSize: 100 + subnets: + - ap-northeast-2c + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-01T05:36:36Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: master-ap-northeast-2a +spec: + image: ami-0abb33b73a78cae31 + instanceMetadata: + httpPutResponseHopLimit: 3 + httpTokens: required + machineType: c5a.large + maxSize: 1 + minSize: 1 + role: Master + subnets: + - ap-northeast-2a + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-01T05:36:36Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: master-ap-northeast-2b +spec: + image: ami-0abb33b73a78cae31 + instanceMetadata: + httpPutResponseHopLimit: 3 + httpTokens: required + machineType: c5a.large + maxSize: 1 + minSize: 1 + role: Master + subnets: + - ap-northeast-2b + +--- + +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + creationTimestamp: "2022-11-01T05:36:36Z" + generation: 1 + labels: + kops.k8s.io/cluster: k8s-prod.datasaker.io + name: master-ap-northeast-2c +spec: + image: ami-0abb33b73a78cae31 + instanceMetadata: + httpPutResponseHopLimit: 3 + httpTokens: required + machineType: c5a.large + maxSize: 1 + minSize: 1 + role: Master + subnets: + - ap-northeast-2c diff --git a/terraform/tf-prod-cloud-20221102/.terraform.lock.hcl b/terraform/tf-prod-cloud-20221102/.terraform.lock.hcl new file mode 100644 index 0000000..a5d1044 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/.terraform.lock.hcl @@ -0,0 +1,22 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "4.36.1" + constraints = ">= 4.0.0" + hashes = [ + "h1:04NI9x34nwhgghwevSGdsjssqy5zzvMsQg2Qjpmx/n0=", + "zh:19b16047b4f15e9b8538a2b925f1e860463984eed7d9bd78e870f3e884e827a7", + "zh:3c0db06a9a14b05a77f3fe1fc029a5fb153f4966964790ca8e71ecc3427d83f5", + "zh:3c7407a8229005e07bc274cbae6e3a464c441a88810bfc6eceb2414678fd08ae", + "zh:3d96fa82c037fafbd3e7f4edc1de32afb029416650f6e392c39182fc74a9e03a", + "zh:8f4f540c5f63d847c4b802ca84d148bb6275a3b0723deb09bf933a4800bc7209", + "zh:9802cb77472d6bcf24c196ce2ca6d02fac9db91558536325fec85f955b71a8a4", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:a263352433878c89832c2e38f4fd56cf96ae9969c13b5c710d5ba043cbd95743", + "zh:aca7954a5f458ceb14bf0c04c961c4e1e9706bf3b854a1e90a97d0b20f0fe6d3", + "zh:d78f400332e87a97cce2e080db9d01beb01f38f5402514a6705d6b8167e7730d", + "zh:e14bdc49be1d8b7d2543d5c58078c84b76051085e8e6715a895dcfe6034b6098", + "zh:f2e400b88c8de170bb5027922226da1e9a6614c03f2a6756c15c3b930c2f460c", + ] +} diff --git a/terraform/tf-prod-cloud-20221102/bastion.tf b/terraform/tf-prod-cloud-20221102/bastion.tf new file mode 100644 index 0000000..640b996 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/bastion.tf @@ -0,0 +1,25 @@ +resource "aws_instance" "bastion-k8s-prod-datasaker-io" { + ami = "ami-0b6591f49cf24e237" + instance_type = "t3.small" + count = 1 + key_name = "kp-jay-bastion-datasaker" + vpc_security_group_ids = ["${aws_security_group.sg-prod-dmz-datasaker.id}"] + subnet_id = aws_subnet.sbn-prod-dmz-a.id + associate_public_ip_address = true + user_data = "${file("data.sh")}" + + root_block_device { + delete_on_termination = true + encrypted = false + tags = { + Name = "bastion-k8s-prod-datasaker-io" + } + volume_size = 20 + volume_type = "gp3" + iops = 3000 + } + + tags = { + Name = "bastion-k8s-prod-datasaker-io" + } +} diff --git a/terraform/tf-prod-cloud-20221102/data.sh b/terraform/tf-prod-cloud-20221102/data.sh new file mode 100644 index 0000000..419f686 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/data.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + +curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +chmod 700 get_helm.sh +sh get_helm.sh diff --git a/terraform/tf-prod-cloud-20221102/dmz.tf b/terraform/tf-prod-cloud-20221102/dmz.tf new file mode 100644 index 0000000..0ece6bd --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/dmz.tf @@ -0,0 +1,189 @@ + + +output "sbn_dmz_prod_a_id" { + value = aws_subnet.sbn-prod-dmz-a.id +} + +output "sbn_dmz_prod_b_id" { + value = aws_subnet.sbn-prod-dmz-b.id +} + +output "sbn_dmz_prod_c_id" { + value = aws_subnet.sbn-prod-dmz-c.id +} + +resource "aws_subnet" "sbn-prod-dmz-a" { + availability_zone = "ap-northeast-2a" + cidr_block = "172.24.0.0/24" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name"= "sbn-prod-dmz-a.datasaker" + "SubnetType" = "Utility" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_subnet" "sbn-prod-dmz-b" { + availability_zone = "ap-northeast-2b" + cidr_block = "172.24.1.0/24" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name" = "sbn-prod-dmz-b.datasaker" + "SubnetType" = "Utility" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_subnet" "sbn-prod-dmz-c" { + availability_zone = "ap-northeast-2c" + cidr_block = "172.24.2.0/24" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name" = "sbn-prod-dmz-c.datasaker" + "SubnetType" = "Utility" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_route_table" "rt-prod-datasaker-pub" { + tags = { + "Name" = "rt-prod-datasaker-pub" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_route" "r-0-0-0-0--0" { + destination_cidr_block = "0.0.0.0/0" + gateway_id = aws_internet_gateway.igw-prod-datasaker.id + route_table_id = aws_route_table.rt-prod-datasaker-pub.id +} + +resource "aws_route" "r-__--0" { + destination_ipv6_cidr_block = "::/0" + gateway_id = aws_internet_gateway.igw-prod-datasaker.id + route_table_id = aws_route_table.rt-prod-datasaker-pub.id +} +resource "aws_route_table_association" "rta-prod-dmz-a" { + route_table_id = aws_route_table.rt-prod-datasaker-pub.id + subnet_id = aws_subnet.sbn-prod-dmz-a.id +} + +resource "aws_route_table_association" "rta-prod-dmz-b" { + route_table_id = aws_route_table.rt-prod-datasaker-pub.id + subnet_id = aws_subnet.sbn-prod-dmz-b.id +} + +resource "aws_route_table_association" "rta-prod-dmz-c" { + route_table_id = aws_route_table.rt-prod-datasaker-pub.id + subnet_id = aws_subnet.sbn-prod-dmz-c.id +} + +resource "aws_security_group" "sg-prod-dmz-datasaker" { + description = "Security group dmz-datasaker" + name = "secg-dmz-datasaker" + tags = { + "Name" = "sg-prod-dmz-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_security_group_rule" "sgr-from-115-178-73-2--32-ingress-tcp-22to22-dmz-prod-datasaker-io" { + cidr_blocks = ["115.178.73.2/32"] + from_port = 22 + protocol = "tcp" + security_group_id = aws_security_group.sg-prod-dmz-datasaker.id + to_port = 22 + type = "ingress" +} + +resource "aws_security_group_rule" "sgr-from-115-178-73-91--32-ingress-tcp-22to22-dmz-prod-datasaker-io" { + cidr_blocks = ["115.178.73.91/32"] + from_port = 22 + protocol = "tcp" + security_group_id = aws_security_group.sg-prod-dmz-datasaker.id + to_port = 22 + type = "ingress" +} + +resource "aws_security_group_rule" "sgr-from-0-0-0-0--0-engress-tcp-all-dmz-prod-datasaker-io" { + cidr_blocks = ["0.0.0.0/0"] + from_port = 0 + protocol = "tcp" + security_group_id = aws_security_group.sg-prod-dmz-datasaker.id + to_port = 65535 + type = "egress" +} + +resource "aws_eip" "eip-bastion-prod-datasaker" { + vpc = true + tags = { + Name = "eip-bastion-prod-datasaker" + } +} + +resource "aws_eip" "eip-natgw-prod-a-datasaker" { + vpc = true + tags = { + Name = "eip-natgw-prod-a-datasaker" + } +} + +resource "aws_eip" "eip-natgw-prod-b-datasaker" { + vpc = true + tags = { + Name = "eip-natgw-prod-b-datasaker" + } +} + +resource "aws_eip" "eip-natgw-prod-c-datasaker" { + vpc = true + tags = { + Name = "eip-natgw-prod-c-datasaker" + } +} + +resource "aws_nat_gateway" "natgw-prod-a-datasaker" { + allocation_id = aws_eip.eip-natgw-prod-a-datasaker.id + subnet_id = aws_subnet.sbn-prod-dmz-a.id + + tags = { + Name = "natgw-prod-a-datasaker" + } + depends_on = [aws_internet_gateway.igw-prod-datasaker] +} + +resource "aws_nat_gateway" "natgw-prod-b-datasaker" { + allocation_id = aws_eip.eip-natgw-prod-b-datasaker.id + subnet_id = aws_subnet.sbn-prod-dmz-b.id + + tags = { + Name = "natgw-prod-b-datasaker" + } + depends_on = [aws_internet_gateway.igw-prod-datasaker] +} + +resource "aws_nat_gateway" "natgw-prod-c-datasaker" { + allocation_id = aws_eip.eip-natgw-prod-c-datasaker.id + subnet_id = aws_subnet.sbn-prod-dmz-c.id + + tags = { + Name = "natgw-prod-c-datasaker" + } + depends_on = [aws_internet_gateway.igw-prod-datasaker] +} + diff --git a/terraform/tf-prod-cloud-20221102/prod.tf b/terraform/tf-prod-cloud-20221102/prod.tf new file mode 100644 index 0000000..32944e2 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/prod.tf @@ -0,0 +1,148 @@ +resource "aws_route_table" "private-prod-a-datasaker" { + tags = { + "Name" = "private-prod-a-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_route_table" "private-prod-b-datasaker" { + tags = { + "Name" = "private-prod-b-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_route_table" "private-prod-c-datasaker" { + tags = { + "Name" = "private-prod-c-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_route" "route-private-rt-prod-a-datasaker-0-0-0-0--0" { + destination_cidr_block = "0.0.0.0/0" + nat_gateway_id = aws_nat_gateway.natgw-prod-a-datasaker.id + route_table_id = aws_route_table.private-prod-a-datasaker.id +} + +resource "aws_route" "route-private-rt-prod-b-datasaker-0-0-0-0--0" { + destination_cidr_block = "0.0.0.0/0" + nat_gateway_id = aws_nat_gateway.natgw-prod-b-datasaker.id + route_table_id = aws_route_table.private-prod-b-datasaker.id +} + +resource "aws_route" "route-private-rt-prod-c-datasaker-0-0-0-0--0" { + destination_cidr_block = "0.0.0.0/0" + nat_gateway_id = aws_nat_gateway.natgw-prod-c-datasaker.id + route_table_id = aws_route_table.private-prod-c-datasaker.id +} + +resource "aws_subnet" "sbn-prod-a" { + availability_zone = "ap-northeast-2a" + cidr_block = "172.24.8.0/23" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name" = "sbn-prod-a-datasaker" + "SubnetType" = "Private" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_subnet" "sbn-prod-b" { + availability_zone = "ap-northeast-2b" + cidr_block = "172.24.10.0/23" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name" = "sbn-prod-b-datasaker" + "SubnetType" = "Private" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_subnet" "sbn-prod-c" { + availability_zone = "ap-northeast-2c" + cidr_block = "172.24.12.0/23" + enable_resource_name_dns_a_record_on_launch = true + private_dns_hostname_type_on_launch = "resource-name" + tags = { + "Name" = "sbn-prod-c-datasaker" + "SubnetType" = "Private" + "kubernetes.io/cluster/datasaker" = "owned" + "kubernetes.io/cluster/prod.datasaker.io" = "shared" + "kubernetes.io/role/nlb" = "1" + "kubernetes.io/role/internal-nlb" = "1" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + + +resource "aws_route_table_association" "rta-prod-a" { + route_table_id = aws_route_table.private-prod-a-datasaker.id + subnet_id = aws_subnet.sbn-prod-a.id +} + +resource "aws_route_table_association" "rta-prod-b" { + route_table_id = aws_route_table.private-prod-b-datasaker.id + subnet_id = aws_subnet.sbn-prod-b.id +} + +resource "aws_route_table_association" "rta-prod-c" { + route_table_id = aws_route_table.private-prod-c-datasaker.id + subnet_id = aws_subnet.sbn-prod-c.id +} + +resource "aws_security_group" "sg-prod-datasaker" { + description = "Security group prod-datasaker" + name = "secg-prod-datasaker" + tags = { + "Name" = "sg-prod-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + + +resource "aws_security_group_rule" "sgr-from-0-0-0-0--0-ingress-tcp-22to22-prod-datasaker-io" { + cidr_blocks = ["0.0.0.0/0"] + from_port = 22 + protocol = "tcp" + security_group_id = aws_security_group.sg-prod-datasaker.id + to_port = 22 + type = "ingress" +} + +resource "aws_security_group_rule" "sgr-from-0-0-0-0--0-ingress-icmp-prod-datasaker-io" { + cidr_blocks = ["0.0.0.0/0"] + from_port = 8 + protocol = "icmp" + security_group_id = aws_security_group.sg-prod-datasaker.id + to_port = 8 + type = "ingress" +} + +resource "aws_security_group_rule" "sgr-to-0-0-0-0--0-egress-icmp-prod-datasaker-io" { + cidr_blocks = ["0.0.0.0/0"] + from_port = 8 + protocol = "icmp" + security_group_id = aws_security_group.sg-prod-datasaker.id + to_port = 8 + type = "egress" +} + +resource "aws_security_group_rule" "sgr-from-0-0-0-0--0-engress-tcp-all-prod-datasaker-io" { + cidr_blocks = ["0.0.0.0/0"] + from_port = 0 + protocol = "tcp" + security_group_id = aws_security_group.sg-prod-datasaker.id + to_port = 65535 + type = "egress" +} diff --git a/terraform/tf-prod-cloud-20221102/terraform.tfstate b/terraform/tf-prod-cloud-20221102/terraform.tfstate new file mode 100644 index 0000000..1d3ad34 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/terraform.tfstate @@ -0,0 +1,1822 @@ +{ + "version": 4, + "terraform_version": "1.3.1", + "serial": 228, + "lineage": "ecaa7345-bb24-0c93-e372-6393af38e5dd", + "outputs": { + "sbn_dmz_prod_a_id": { + "value": "subnet-00c363356f133411d", + "type": "string" + }, + "sbn_dmz_prod_b_id": { + "value": "subnet-07aa5e879a262014d", + "type": "string" + }, + "sbn_dmz_prod_c_id": { + "value": "subnet-0073a61bc56a68a3e", + "type": "string" + }, + "vpc_prod_datasaker_cidr_block": { + "value": "172.24.0.0/19", + "type": "string" + }, + "vpc_prod_datasaker_id": { + "value": "vpc-00ba2b0e9ad59f0ed", + "type": "string" + } + }, + "resources": [ + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-bastion-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0fd807bea69b0368d", + "associate_with_private_ip": null, + "association_id": "", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0fd807bea69b0368d", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "", + "private_dns": "ip-172-24-0-185.ap-northeast-2.compute.internal", + "private_ip": "", + "public_dns": "ec2-15-164-7-36.ap-northeast-2.compute.amazonaws.com", + "public_ip": "15.164.7.36", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-bastion-prod-datasaker" + }, + "tags_all": { + "Name": "eip-bastion-prod-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-01c6f062ab2d71496", + "associate_with_private_ip": null, + "association_id": "eipassoc-034461f403b96dbc1", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-01c6f062ab2d71496", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-0042ca86e83abce3c", + "private_dns": "ip-172-24-0-195.ap-northeast-2.compute.internal", + "private_ip": "172.24.0.195", + "public_dns": "ec2-3-39-155-22.ap-northeast-2.compute.amazonaws.com", + "public_ip": "3.39.155.22", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-a-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-a-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-06ad8fd187125ab84", + "associate_with_private_ip": null, + "association_id": "eipassoc-03d274b1f4a7aefc4", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-06ad8fd187125ab84", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-0039b2dcdd3be1c2a", + "private_dns": "ip-172-24-1-72.ap-northeast-2.compute.internal", + "private_ip": "172.24.1.72", + "public_dns": "ec2-3-34-35-206.ap-northeast-2.compute.amazonaws.com", + "public_ip": "3.34.35.206", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-b-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-b-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0aa4bd953a8b3f385", + "associate_with_private_ip": null, + "association_id": "eipassoc-0583fd7cb18bc1a6e", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0aa4bd953a8b3f385", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-04c4cd2cf32ba8c13", + "private_dns": "ip-172-24-2-82.ap-northeast-2.compute.internal", + "private_ip": "172.24.2.82", + "public_dns": "ec2-13-124-115-56.ap-northeast-2.compute.amazonaws.com", + "public_ip": "13.124.115.56", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-c-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-c-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_instance", + "name": "bastion-k8s-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "ami": "ami-0b6591f49cf24e237", + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:instance/i-0814b9d3c50354b38", + "associate_public_ip_address": true, + "availability_zone": "ap-northeast-2a", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 1, + "cpu_threads_per_core": 2, + "credit_specification": [ + { + "cpu_credits": "unlimited" + } + ], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "host_resource_group_arn": null, + "iam_instance_profile": "", + "id": "i-0814b9d3c50354b38", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "t3.small", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "kp-jay-bastion-datasaker", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": null, + "primary_network_interface_id": "eni-000b064a343f4fc2c", + "private_dns": "i-0814b9d3c50354b38.ap-northeast-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": true, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "resource-name" + } + ], + "private_ip": "172.24.0.189", + "public_dns": "ec2-52-79-149-87.ap-northeast-2.compute.amazonaws.com", + "public_ip": "52.79.149.87", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": { + "Name": "bastion-k8s-prod-datasaker-io" + }, + "throughput": 125, + "volume_id": "vol-036755411708ad7d1", + "volume_size": 20, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "subnet_id": "subnet-00c363356f133411d", + "tags": { + "Name": "bastion-k8s-prod-datasaker-io" + }, + "tags_all": { + "Name": "bastion-k8s-prod-datasaker-io" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "91e69bf5d3ea1fbb91bad62f584448144d6798e2", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0008b5a90bccb7495" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_internet_gateway", + "name": "igw-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:internet-gateway/igw-0572dee550dd59394", + "id": "igw-0572dee550dd59394", + "owner_id": "508259851457", + "tags": { + "Name": "igw-prod-datasaker" + }, + "tags_all": { + "Name": "igw-prod-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-01c6f062ab2d71496", + "connectivity_type": "public", + "id": "nat-0140f41e3b53da909", + "network_interface_id": "eni-0042ca86e83abce3c", + "private_ip": "172.24.0.195", + "public_ip": "3.39.155.22", + "subnet_id": "subnet-00c363356f133411d", + "tags": { + "Name": "natgw-prod-a-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-a-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-a-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-06ad8fd187125ab84", + "connectivity_type": "public", + "id": "nat-03542174185263f94", + "network_interface_id": "eni-0039b2dcdd3be1c2a", + "private_ip": "172.24.1.72", + "public_ip": "3.34.35.206", + "subnet_id": "subnet-07aa5e879a262014d", + "tags": { + "Name": "natgw-prod-b-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-b-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-b-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-0aa4bd953a8b3f385", + "connectivity_type": "public", + "id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "eni-04c4cd2cf32ba8c13", + "private_ip": "172.24.2.82", + "public_ip": "13.124.115.56", + "subnet_id": "subnet-0073a61bc56a68a3e", + "tags": { + "Name": "natgw-prod-c-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-c-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-c-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "r-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-0572dee550dd59394", + "id": "r-rtb-03946dbc2731e24bf1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-03946dbc2731e24bf", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.igw-prod-datasaker", + "aws_route_table.rt-prod-datasaker-pub", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "r-__--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "carrier_gateway_id": "", + "core_network_arn": "", + "destination_cidr_block": "", + "destination_ipv6_cidr_block": "::/0", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "id": "r-rtb-03946dbc2731e24bf2750132062", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-03946dbc2731e24bf", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.igw-prod-datasaker", + "aws_route_table.rt-prod-datasaker-pub", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-a-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-007510614400a1b851080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0140f41e3b53da909", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-007510614400a1b85", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-a-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-a-datasaker", + "aws_route_table.private-prod-a-datasaker", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-b-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-00d59120bc62ea7bd1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-03542174185263f94", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-00d59120bc62ea7bd", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-b-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-b-datasaker", + "aws_route_table.private-prod-b-datasaker", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-c-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-0dd3a781ffd160a4f1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-0dd3a781ffd160a4f", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-c-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-c-datasaker", + "aws_route_table.private-prod-c-datasaker", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-007510614400a1b85", + "id": "rtb-007510614400a1b85", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0140f41e3b53da909", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-a-datasaker" + }, + "tags_all": { + "Name": "private-prod-a-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-00d59120bc62ea7bd", + "id": "rtb-00d59120bc62ea7bd", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-03542174185263f94", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-b-datasaker" + }, + "tags_all": { + "Name": "private-prod-b-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-0dd3a781ffd160a4f", + "id": "rtb-0dd3a781ffd160a4f", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-c-datasaker" + }, + "tags_all": { + "Name": "private-prod-c-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "rt-prod-datasaker-pub", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-03946dbc2731e24bf", + "id": "rtb-03946dbc2731e24bf", + "owner_id": "508259851457", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "instance_id": "", + "ipv6_cidr_block": "::/0", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "rt-prod-datasaker-pub" + }, + "tags_all": { + "Name": "rt-prod-datasaker-pub" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-04d79a53ff1198d85", + "route_table_id": "rtb-007510614400a1b85", + "subnet_id": "subnet-024f0deda82039fa4" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-a-datasaker", + "aws_subnet.sbn-prod-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-01bed4e926725fab5", + "route_table_id": "rtb-00d59120bc62ea7bd", + "subnet_id": "subnet-050d942fa1c46540a" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-b-datasaker", + "aws_subnet.sbn-prod-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-064b354c91809f337", + "route_table_id": "rtb-0dd3a781ffd160a4f", + "subnet_id": "subnet-0946eb806af7377be" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-c-datasaker", + "aws_subnet.sbn-prod-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0b60d7de8fbdfc9f9", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-00c363356f133411d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-052dea1d6a35b4c04", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-07aa5e879a262014d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0f552b98609812aaa", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-0073a61bc56a68a3e" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "sg-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:security-group/sg-03edeb142eac081be", + "description": "Security group prod-datasaker", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 65535 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": 8 + } + ], + "id": "sg-03edeb142eac081be", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": 8 + } + ], + "name": "secg-prod-datasaker", + "name_prefix": "", + "owner_id": "508259851457", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sg-prod-datasaker" + }, + "tags_all": { + "Name": "sg-prod-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "sg-prod-dmz-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:security-group/sg-0008b5a90bccb7495", + "description": "Security group dmz-datasaker", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 65535 + } + ], + "id": "sg-0008b5a90bccb7495", + "ingress": [ + { + "cidr_blocks": [ + "115.178.73.91/32", + "115.178.73.2/32" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + } + ], + "name": "secg-dmz-datasaker", + "name_prefix": "", + "owner_id": "508259851457", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sg-prod-dmz-datasaker" + }, + "tags_all": { + "Name": "sg-prod-dmz-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-engress-tcp-all-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "id": "sgrule-3895433967", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-engress-tcp-all-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "id": "sgrule-3909504547", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-ingress-icmp-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "id": "sgrule-3507241791", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "icmp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 8, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-ingress-tcp-22to22-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2674276135", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-115-178-73-2--32-ingress-tcp-22to22-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "115.178.73.2/32" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2067065416", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-115-178-73-91--32-ingress-tcp-22to22-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "115.178.73.91/32" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2363562782", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-to-0-0-0-0--0-egress-icmp-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "id": "sgrule-3186842610", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "icmp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 8, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-024f0deda82039fa4", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2a", + "availability_zone_id": "apne2-az1", + "cidr_block": "172.24.8.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-024f0deda82039fa4", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-a-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-a-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-050d942fa1c46540a", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2b", + "availability_zone_id": "apne2-az2", + "cidr_block": "172.24.10.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-050d942fa1c46540a", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-b-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-b-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-0946eb806af7377be", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2c", + "availability_zone_id": "apne2-az3", + "cidr_block": "172.24.12.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0946eb806af7377be", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-c-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-c-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-00c363356f133411d", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2a", + "availability_zone_id": "apne2-az1", + "cidr_block": "172.24.0.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-00c363356f133411d", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-a.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-a.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-07aa5e879a262014d", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2b", + "availability_zone_id": "apne2-az2", + "cidr_block": "172.24.1.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-07aa5e879a262014d", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-b.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-b.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-0073a61bc56a68a3e", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2c", + "availability_zone_id": "apne2-az3", + "cidr_block": "172.24.2.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0073a61bc56a68a3e", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-c.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-c.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc", + "name": "vpc-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:vpc/vpc-00ba2b0e9ad59f0ed", + "assign_generated_ipv6_cidr_block": true, + "cidr_block": "172.24.0.0/19", + "default_network_acl_id": "acl-0b4d4293c9fb72a58", + "default_route_table_id": "rtb-02f8760816091f578", + "default_security_group_id": "sg-06f6bc2ffe76b3d1c", + "dhcp_options_id": "dopt-04c63f3dae603e7b3", + "enable_classiclink": false, + "enable_classiclink_dns_support": false, + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-00ba2b0e9ad59f0ed", + "instance_tenancy": "default", + "ipv4_ipam_pool_id": null, + "ipv4_netmask_length": null, + "ipv6_association_id": "vpc-cidr-assoc-0a6a0a2c121fa5682", + "ipv6_cidr_block": "2406:da12:65:ca00::/56", + "ipv6_cidr_block_network_border_group": "ap-northeast-2", + "ipv6_ipam_pool_id": "", + "ipv6_netmask_length": 0, + "main_route_table_id": "rtb-02f8760816091f578", + "owner_id": "508259851457", + "tags": { + "Name": "vpc-prod-datasaker" + }, + "tags_all": { + "Name": "vpc-prod-datasaker" + } + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc_dhcp_options", + "name": "vpc-dhcp-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:dhcp-options/dopt-04c63f3dae603e7b3", + "domain_name": "ap-northeast-2.compute.internal", + "domain_name_servers": [ + "AmazonProvidedDNS" + ], + "id": "dopt-04c63f3dae603e7b3", + "netbios_name_servers": [], + "netbios_node_type": "", + "ntp_servers": [], + "owner_id": "508259851457", + "tags": { + "Name": "vpc-dhcp-prod-datasaker" + }, + "tags_all": { + "Name": "vpc-dhcp-prod-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc_dhcp_options_association", + "name": "vpc-dhcp-asso-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dhcp_options_id": "dopt-04c63f3dae603e7b3", + "id": "dopt-04c63f3dae603e7b3-vpc-00ba2b0e9ad59f0ed", + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker", + "aws_vpc_dhcp_options.vpc-dhcp-prod-datasaker" + ] + } + ] + } + ], + "check_results": [] +} diff --git a/terraform/tf-prod-cloud-20221102/terraform.tfstate.backup b/terraform/tf-prod-cloud-20221102/terraform.tfstate.backup new file mode 100644 index 0000000..40ad2fd --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/terraform.tfstate.backup @@ -0,0 +1,1695 @@ +{ + "version": 4, + "terraform_version": "1.3.1", + "serial": 185, + "lineage": "ecaa7345-bb24-0c93-e372-6393af38e5dd", + "outputs": { + "sbn_dmz_prod_a_id": { + "value": "subnet-00c363356f133411d", + "type": "string" + }, + "sbn_dmz_prod_b_id": { + "value": "subnet-07aa5e879a262014d", + "type": "string" + }, + "sbn_dmz_prod_c_id": { + "value": "subnet-0073a61bc56a68a3e", + "type": "string" + }, + "vpc_prod_datasaker_cidr_block": { + "value": "172.24.0.0/19", + "type": "string" + }, + "vpc_prod_datasaker_id": { + "value": "vpc-00ba2b0e9ad59f0ed", + "type": "string" + } + }, + "resources": [ + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-bastion-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0fd807bea69b0368d", + "associate_with_private_ip": null, + "association_id": "eipassoc-07f2384be1df85a7f", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0fd807bea69b0368d", + "instance": "i-0ec76d1dcb0d56cec", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-0977f26972f55c584", + "private_dns": "ip-172-24-0-185.ap-northeast-2.compute.internal", + "private_ip": "172.24.0.185", + "public_dns": "ec2-15-164-7-36.ap-northeast-2.compute.amazonaws.com", + "public_ip": "15.164.7.36", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-bastion-prod-datasaker" + }, + "tags_all": { + "Name": "eip-bastion-prod-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-01c6f062ab2d71496", + "associate_with_private_ip": null, + "association_id": "eipassoc-034461f403b96dbc1", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-01c6f062ab2d71496", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-0042ca86e83abce3c", + "private_dns": "ip-172-24-0-195.ap-northeast-2.compute.internal", + "private_ip": "172.24.0.195", + "public_dns": "ec2-3-39-155-22.ap-northeast-2.compute.amazonaws.com", + "public_ip": "3.39.155.22", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-a-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-a-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-06ad8fd187125ab84", + "associate_with_private_ip": null, + "association_id": "eipassoc-03d274b1f4a7aefc4", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-06ad8fd187125ab84", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-0039b2dcdd3be1c2a", + "private_dns": "ip-172-24-1-72.ap-northeast-2.compute.internal", + "private_ip": "172.24.1.72", + "public_dns": "ec2-3-34-35-206.ap-northeast-2.compute.amazonaws.com", + "public_ip": "3.34.35.206", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-b-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-b-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_eip", + "name": "eip-natgw-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0aa4bd953a8b3f385", + "associate_with_private_ip": null, + "association_id": "eipassoc-0583fd7cb18bc1a6e", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0aa4bd953a8b3f385", + "instance": "", + "network_border_group": "ap-northeast-2", + "network_interface": "eni-04c4cd2cf32ba8c13", + "private_dns": "ip-172-24-2-82.ap-northeast-2.compute.internal", + "private_ip": "172.24.2.82", + "public_dns": "ec2-13-124-115-56.ap-northeast-2.compute.amazonaws.com", + "public_ip": "13.124.115.56", + "public_ipv4_pool": "amazon", + "tags": { + "Name": "eip-natgw-prod-c-datasaker" + }, + "tags_all": { + "Name": "eip-natgw-prod-c-datasaker" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_internet_gateway", + "name": "igw-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:internet-gateway/igw-0572dee550dd59394", + "id": "igw-0572dee550dd59394", + "owner_id": "508259851457", + "tags": { + "Name": "igw-prod-datasaker" + }, + "tags_all": { + "Name": "igw-prod-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-01c6f062ab2d71496", + "connectivity_type": "public", + "id": "nat-0140f41e3b53da909", + "network_interface_id": "eni-0042ca86e83abce3c", + "private_ip": "172.24.0.195", + "public_ip": "3.39.155.22", + "subnet_id": "subnet-00c363356f133411d", + "tags": { + "Name": "natgw-prod-a-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-a-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-a-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-06ad8fd187125ab84", + "connectivity_type": "public", + "id": "nat-03542174185263f94", + "network_interface_id": "eni-0039b2dcdd3be1c2a", + "private_ip": "172.24.1.72", + "public_ip": "3.34.35.206", + "subnet_id": "subnet-07aa5e879a262014d", + "tags": { + "Name": "natgw-prod-b-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-b-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-b-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_nat_gateway", + "name": "natgw-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-0aa4bd953a8b3f385", + "connectivity_type": "public", + "id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "eni-04c4cd2cf32ba8c13", + "private_ip": "172.24.2.82", + "public_ip": "13.124.115.56", + "subnet_id": "subnet-0073a61bc56a68a3e", + "tags": { + "Name": "natgw-prod-c-datasaker" + }, + "tags_all": { + "Name": "natgw-prod-c-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_eip.eip-natgw-prod-c-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "r-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-0572dee550dd59394", + "id": "r-rtb-03946dbc2731e24bf1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-03946dbc2731e24bf", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.igw-prod-datasaker", + "aws_route_table.rt-prod-datasaker-pub", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "r-__--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "carrier_gateway_id": "", + "core_network_arn": "", + "destination_cidr_block": "", + "destination_ipv6_cidr_block": "::/0", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "id": "r-rtb-03946dbc2731e24bf2750132062", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-03946dbc2731e24bf", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_internet_gateway.igw-prod-datasaker", + "aws_route_table.rt-prod-datasaker-pub", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-a-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-007510614400a1b851080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0140f41e3b53da909", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-007510614400a1b85", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-a-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-a-datasaker", + "aws_route_table.private-prod-a-datasaker", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-b-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-00d59120bc62ea7bd1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-03542174185263f94", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-00d59120bc62ea7bd", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-b-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-b-datasaker", + "aws_route_table.private-prod-b-datasaker", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route", + "name": "route-private-rt-prod-c-datasaker-0-0-0-0--0", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "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-0dd3a781ffd160a4f1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-0dd3a781ffd160a4f", + "state": "active", + "timeouts": null, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_eip.eip-natgw-prod-c-datasaker", + "aws_internet_gateway.igw-prod-datasaker", + "aws_nat_gateway.natgw-prod-c-datasaker", + "aws_route_table.private-prod-c-datasaker", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-a-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-007510614400a1b85", + "id": "rtb-007510614400a1b85", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0140f41e3b53da909", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-a-datasaker" + }, + "tags_all": { + "Name": "private-prod-a-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-b-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-00d59120bc62ea7bd", + "id": "rtb-00d59120bc62ea7bd", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-03542174185263f94", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-b-datasaker" + }, + "tags_all": { + "Name": "private-prod-b-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "private-prod-c-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-0dd3a781ffd160a4f", + "id": "rtb-0dd3a781ffd160a4f", + "owner_id": "508259851457", + "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": "", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0e75ab6d7fe5a26c3", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "private-prod-c-datasaker" + }, + "tags_all": { + "Name": "private-prod-c-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table", + "name": "rt-prod-datasaker-pub", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:route-table/rtb-03946dbc2731e24bf", + "id": "rtb-03946dbc2731e24bf", + "owner_id": "508259851457", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "instance_id": "", + "ipv6_cidr_block": "::/0", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-0572dee550dd59394", + "instance_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Name": "rt-prod-datasaker-pub" + }, + "tags_all": { + "Name": "rt-prod-datasaker-pub" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-04d79a53ff1198d85", + "route_table_id": "rtb-007510614400a1b85", + "subnet_id": "subnet-024f0deda82039fa4" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-a-datasaker", + "aws_subnet.sbn-prod-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-01bed4e926725fab5", + "route_table_id": "rtb-00d59120bc62ea7bd", + "subnet_id": "subnet-050d942fa1c46540a" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-b-datasaker", + "aws_subnet.sbn-prod-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-064b354c91809f337", + "route_table_id": "rtb-0dd3a781ffd160a4f", + "subnet_id": "subnet-0946eb806af7377be" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.private-prod-c-datasaker", + "aws_subnet.sbn-prod-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0b60d7de8fbdfc9f9", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-00c363356f133411d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-a", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-052dea1d6a35b4c04", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-07aa5e879a262014d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-b", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_route_table_association", + "name": "rta-prod-dmz-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0f552b98609812aaa", + "route_table_id": "rtb-03946dbc2731e24bf", + "subnet_id": "subnet-0073a61bc56a68a3e" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_route_table.rt-prod-datasaker-pub", + "aws_subnet.sbn-prod-dmz-c", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "sg-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:security-group/sg-03edeb142eac081be", + "description": "Security group prod-datasaker", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 65535 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": 8 + } + ], + "id": "sg-03edeb142eac081be", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": 8 + } + ], + "name": "secg-prod-datasaker", + "name_prefix": "", + "owner_id": "508259851457", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sg-prod-datasaker" + }, + "tags_all": { + "Name": "sg-prod-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "sg-prod-dmz-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:security-group/sg-0008b5a90bccb7495", + "description": "Security group dmz-datasaker", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 65535 + } + ], + "id": "sg-0008b5a90bccb7495", + "ingress": [ + { + "cidr_blocks": [ + "115.178.73.91/32", + "115.178.73.2/32" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + } + ], + "name": "secg-dmz-datasaker", + "name_prefix": "", + "owner_id": "508259851457", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sg-prod-dmz-datasaker" + }, + "tags_all": { + "Name": "sg-prod-dmz-datasaker" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-engress-tcp-all-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "id": "sgrule-3895433967", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-engress-tcp-all-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "id": "sgrule-3909504547", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-ingress-icmp-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "id": "sgrule-3507241791", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "icmp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 8, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-0-0-0-0--0-ingress-tcp-22to22-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2674276135", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-115-178-73-2--32-ingress-tcp-22to22-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "115.178.73.2/32" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2067065416", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-from-115-178-73-91--32-ingress-tcp-22to22-dmz-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "115.178.73.91/32" + ], + "description": "", + "from_port": 22, + "id": "sgrule-2363562782", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-0008b5a90bccb7495", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 22, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-dmz-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group_rule", + "name": "sgr-to-0-0-0-0--0-egress-icmp-prod-datasaker-io", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 8, + "id": "sgrule-3186842610", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "icmp", + "security_group_id": "sg-03edeb142eac081be", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 8, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "aws_security_group.sg-prod-datasaker", + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-024f0deda82039fa4", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2a", + "availability_zone_id": "apne2-az1", + "cidr_block": "172.24.8.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-024f0deda82039fa4", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-a-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-a-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-050d942fa1c46540a", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2b", + "availability_zone_id": "apne2-az2", + "cidr_block": "172.24.10.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-050d942fa1c46540a", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-b-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-b-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-0946eb806af7377be", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2c", + "availability_zone_id": "apne2-az3", + "cidr_block": "172.24.12.0/23", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0946eb806af7377be", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-c-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-c-datasaker", + "SubnetType": "Private", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-a", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-00c363356f133411d", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2a", + "availability_zone_id": "apne2-az1", + "cidr_block": "172.24.0.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-00c363356f133411d", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-a.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-a.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-b", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-07aa5e879a262014d", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2b", + "availability_zone_id": "apne2-az2", + "cidr_block": "172.24.1.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-07aa5e879a262014d", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-b.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-b.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_subnet", + "name": "sbn-prod-dmz-c", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:subnet/subnet-0073a61bc56a68a3e", + "assign_ipv6_address_on_creation": false, + "availability_zone": "ap-northeast-2c", + "availability_zone_id": "apne2-az3", + "cidr_block": "172.24.2.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_resource_name_dns_a_record_on_launch": true, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0073a61bc56a68a3e", + "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": "508259851457", + "private_dns_hostname_type_on_launch": "resource-name", + "tags": { + "Name": "sbn-prod-dmz-c.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "tags_all": { + "Name": "sbn-prod-dmz-c.datasaker", + "SubnetType": "Utility", + "kubernetes.io/cluster/datasaker": "owned", + "kubernetes.io/cluster/prod.datasaker.io": "shared", + "kubernetes.io/role/internal-nlb": "1", + "kubernetes.io/role/nlb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc", + "name": "vpc-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:vpc/vpc-00ba2b0e9ad59f0ed", + "assign_generated_ipv6_cidr_block": true, + "cidr_block": "172.24.0.0/19", + "default_network_acl_id": "acl-0b4d4293c9fb72a58", + "default_route_table_id": "rtb-02f8760816091f578", + "default_security_group_id": "sg-06f6bc2ffe76b3d1c", + "dhcp_options_id": "dopt-04c63f3dae603e7b3", + "enable_classiclink": false, + "enable_classiclink_dns_support": false, + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-00ba2b0e9ad59f0ed", + "instance_tenancy": "default", + "ipv4_ipam_pool_id": null, + "ipv4_netmask_length": null, + "ipv6_association_id": "vpc-cidr-assoc-0a6a0a2c121fa5682", + "ipv6_cidr_block": "2406:da12:65:ca00::/56", + "ipv6_cidr_block_network_border_group": "ap-northeast-2", + "ipv6_ipam_pool_id": "", + "ipv6_netmask_length": 0, + "main_route_table_id": "rtb-02f8760816091f578", + "owner_id": "508259851457", + "tags": { + "Name": "vpc-prod-datasaker" + }, + "tags_all": { + "Name": "vpc-prod-datasaker" + } + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc_dhcp_options", + "name": "vpc-dhcp-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-northeast-2:508259851457:dhcp-options/dopt-04c63f3dae603e7b3", + "domain_name": "ap-northeast-2.compute.internal", + "domain_name_servers": [ + "AmazonProvidedDNS" + ], + "id": "dopt-04c63f3dae603e7b3", + "netbios_name_servers": [], + "netbios_node_type": "", + "ntp_servers": [], + "owner_id": "508259851457", + "tags": { + "Name": "vpc-dhcp-prod-datasaker" + }, + "tags_all": { + "Name": "vpc-dhcp-prod-datasaker" + } + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_vpc_dhcp_options_association", + "name": "vpc-dhcp-asso-prod-datasaker", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dhcp_options_id": "dopt-04c63f3dae603e7b3", + "id": "dopt-04c63f3dae603e7b3-vpc-00ba2b0e9ad59f0ed", + "vpc_id": "vpc-00ba2b0e9ad59f0ed" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_vpc.vpc-prod-datasaker", + "aws_vpc_dhcp_options.vpc-dhcp-prod-datasaker" + ] + } + ] + } + ], + "check_results": [] +} diff --git a/terraform/tf-prod-cloud-20221102/vpc.tf b/terraform/tf-prod-cloud-20221102/vpc.tf new file mode 100644 index 0000000..acc9460 --- /dev/null +++ b/terraform/tf-prod-cloud-20221102/vpc.tf @@ -0,0 +1,55 @@ +terraform { + required_version = ">= 0.15.0" + required_providers { + aws = { + "configuration_aliases" = [aws.files] + "source" = "hashicorp/aws" + "version" = ">= 4.0.0" + } + } +} + +provider "aws" { + alias = "files" + region = "ap-northeast-2" +} + +output "vpc_prod_datasaker_id" { + value = aws_vpc.vpc-prod-datasaker.id +} + +output "vpc_prod_datasaker_cidr_block" { + value = aws_vpc.vpc-prod-datasaker.cidr_block +} + + + +resource "aws_vpc" "vpc-prod-datasaker" { + assign_generated_ipv6_cidr_block = true + cidr_block = "172.24.0.0/19" + enable_dns_hostnames = true + enable_dns_support = true + tags = { + "Name" = "vpc-prod-datasaker" + } +} + +resource "aws_vpc_dhcp_options" "vpc-dhcp-prod-datasaker" { + domain_name = "ap-northeast-2.compute.internal" + domain_name_servers = ["AmazonProvidedDNS"] + tags = { + "Name" = "vpc-dhcp-prod-datasaker" + } +} + +resource "aws_vpc_dhcp_options_association" "vpc-dhcp-asso-prod-datasaker" { + dhcp_options_id = aws_vpc_dhcp_options.vpc-dhcp-prod-datasaker.id + vpc_id = aws_vpc.vpc-prod-datasaker.id +} + +resource "aws_internet_gateway" "igw-prod-datasaker" { + tags = { + "Name" = "igw-prod-datasaker" + } + vpc_id = aws_vpc.vpc-prod-datasaker.id +}