{ "version": 4, "terraform_version": "1.3.7", "serial": 104, "lineage": "e0d414eb-906c-60be-de6d-96009052882f", "outputs": { "eks-bast-ip": { "value": "54.95.19.38", "type": "string" } }, "resources": [ { "mode": "data", "type": "aws_ami", "name": "ubuntu", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "architecture": "x86_64", "arn": "arn:aws:ec2:ap-northeast-1::image/ami-0778fde4cd5a48d8d", "block_device_mappings": [ { "device_name": "/dev/sda1", "ebs": { "delete_on_termination": "true", "encrypted": "false", "iops": "0", "snapshot_id": "snap-0741d099f4894a808", "throughput": "0", "volume_size": "8", "volume_type": "gp2" }, "no_device": "", "virtual_name": "" }, { "device_name": "/dev/sdb", "ebs": {}, "no_device": "", "virtual_name": "ephemeral0" }, { "device_name": "/dev/sdc", "ebs": {}, "no_device": "", "virtual_name": "ephemeral1" } ], "boot_mode": "", "creation_date": "2023-02-16T02:48:34.000Z", "deprecation_time": "2025-02-16T02:48:33.000Z", "description": "Canonical, Ubuntu, 22.04 LTS, amd64 jammy image build on 2023-02-16", "ena_support": true, "executable_users": null, "filter": [ { "name": "name", "values": [ "ubuntu/images/hvm-ssd/ubuntu-*-amd64-server-*" ] }, { "name": "virtualization-type", "values": [ "hvm" ] } ], "hypervisor": "xen", "id": "ami-0778fde4cd5a48d8d", "image_id": "ami-0778fde4cd5a48d8d", "image_location": "amazon/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230216", "image_owner_alias": "amazon", "image_type": "machine", "imds_support": "", "include_deprecated": false, "kernel_id": "", "most_recent": true, "name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230216", "name_regex": null, "owner_id": "099720109477", "owners": [ "099720109477" ], "platform": "", "platform_details": "Linux/UNIX", "product_codes": [], "public": true, "ramdisk_id": "", "root_device_name": "/dev/sda1", "root_device_type": "ebs", "root_snapshot_id": "snap-0741d099f4894a808", "sriov_net_support": "simple", "state": "available", "state_reason": { "code": "UNSET", "message": "UNSET" }, "tags": {}, "timeouts": null, "tpm_support": "", "usage_operation": "RunInstances", "virtualization_type": "hvm" }, "sensitive_attributes": [] } ] }, { "mode": "data", "type": "aws_caller_identity", "name": "this", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "account_id": "040216112220", "arn": "arn:aws:iam::040216112220:user/ken2026", "id": "040216112220", "user_id": "AIDAQSXIRFROOXYISSIEQ" }, "sensitive_attributes": [] } ] }, { "mode": "data", "type": "aws_ssm_parameter", "name": "eks_ami_release_version", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:ssm:ap-northeast-1::parameter/aws/service/eks/optimized-ami/1.24/amazon-linux-2/recommended/release_version", "id": "/aws/service/eks/optimized-ami/1.24/amazon-linux-2/recommended/release_version", "name": "/aws/service/eks/optimized-ami/1.24/amazon-linux-2/recommended/release_version", "type": "String", "value": "1.24.10-20230211", "version": 7, "with_decryption": true }, "sensitive_attributes": [] } ] }, { "mode": "data", "type": "terraform_remote_state", "name": "vpc", "provider": "provider[\"terraform.io/builtin/terraform\"]", "instances": [ { "schema_version": 0, "attributes": { "backend": "local", "config": { "value": { "path": "../network/terraform.tfstate" }, "type": [ "object", { "path": "string" } ] }, "defaults": null, "outputs": { "value": { "private-subnet-ids": [ "subnet-0a9f75c427054ca39", "subnet-03837a4f086fe607a" ], "public-subnet-ids": [ "subnet-0836e26b02828e6b7", "subnet-0269d50d924f5c3ad" ], "vpc-cidr": "192.168.123.0/24", "vpc-cidr6": "2406:da14:ece:ed00::/56", "vpc-id": "vpc-051d8405604cd730d" }, "type": [ "object", { "private-subnet-ids": [ "tuple", [ "string", "string" ] ], "public-subnet-ids": [ "tuple", [ "string", "string" ] ], "vpc-cidr": "string", "vpc-cidr6": "string", "vpc-id": "string" } ] }, "workspace": null }, "sensitive_attributes": [] } ] }, { "mode": "managed", "type": "aws_eks_addon", "name": "eks-addons", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "index_key": "aws-ebs-csi-driver", "schema_version": 0, "attributes": { "addon_name": "aws-ebs-csi-driver", "addon_version": "v1.15.0-eksbuild.1", "arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/aws-ebs-csi-driver/8ec33013-8fa2-683d-a6dc-723ecf03a0ea", "cluster_name": "lab-apne1-xpk-iac-cluster01", "configuration_values": "", "created_at": "2023-02-17T16:13:42Z", "id": "lab-apne1-xpk-iac-cluster01:aws-ebs-csi-driver", "modified_at": "2023-02-17T16:14:24Z", "preserve": null, "resolve_conflicts": null, "service_account_role_arn": "", "tags": {}, "tags_all": {}, "timeouts": null }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_role.eks-cluster-role", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] }, { "index_key": "coredns", "schema_version": 0, "attributes": { "addon_name": "coredns", "addon_version": "v1.9.3-eksbuild.2", "arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/coredns/0ac33013-8fa8-3dca-2003-9ee481458e17", "cluster_name": "lab-apne1-xpk-iac-cluster01", "configuration_values": "", "created_at": "2023-02-17T16:13:42Z", "id": "lab-apne1-xpk-iac-cluster01:coredns", "modified_at": "2023-02-17T16:13:49Z", "preserve": null, "resolve_conflicts": null, "service_account_role_arn": "", "tags": {}, "tags_all": {}, "timeouts": null }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_role.eks-cluster-role", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] }, { "index_key": "kube-proxy", "schema_version": 0, "attributes": { "addon_name": "kube-proxy", "addon_version": "v1.24.9-eksbuild.2", "arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/kube-proxy/04c33011-16bd-8013-825c-3471eb291808", "cluster_name": "lab-apne1-xpk-iac-cluster01", "configuration_values": "", "created_at": "2023-02-17T16:08:18Z", "id": "lab-apne1-xpk-iac-cluster01:kube-proxy", "modified_at": "2023-02-17T16:10:50Z", "preserve": null, "resolve_conflicts": null, "service_account_role_arn": "", "tags": {}, "tags_all": {}, "timeouts": null }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_role.eks-cluster-role", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] }, { "index_key": "vpc-cni", "schema_version": 0, "attributes": { "addon_name": "vpc-cni", "addon_version": "v1.12.2-eksbuild.1", "arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/vpc-cni/5cc33014-2733-d850-c1ed-df64b9621810", "cluster_name": "lab-apne1-xpk-iac-cluster01", "configuration_values": "", "created_at": "2023-02-17T16:15:00Z", "id": "lab-apne1-xpk-iac-cluster01:vpc-cni", "modified_at": "2023-02-17T16:15:32Z", "preserve": null, "resolve_conflicts": null, "service_account_role_arn": "", "tags": null, "tags_all": {}, "timeouts": null }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_role.eks-cluster-role", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] } ] }, { "mode": "managed", "type": "aws_eks_cluster", "name": "eks-cluster", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:eks:ap-northeast-1:040216112220:cluster/lab-apne1-xpk-iac-cluster01", "certificate_authority": [ { "data": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvakNDQWVhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJek1ESXhOekUyTURJek1sb1hEVE16TURJeE5ERTJNREl6TWxvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTEU3CnhpSWFDdXV4WlVLUUVCVTNGM1I1azlncVNKY1RrMlFmVlUxTDlZM1R4bUNaOWF1eVE2VWxRT2pneTRYVFFob0gKWVp2dFpZdVE1bnhmN2VmRHRyaDRQeSsxZlVqSlNxVnFlbjZEbXJQL0JSTUd4ZEt5VnZZejFHVG9LdlN1UHUvNwpGeHNKVCtsNGJvYWljcm11MVlRTThGeUlEQjZaWkc3czAyMjVOeGhXZGRUdWlTTXVTTHg2SXdFYXMyaERrbDFlCnV4anQ2U3pydTU3dWhnWlZYZlZuRkZ1OXRKTHNVM01LSE1iT3lyNUVFNTBZZGdBdTZjOWpmeHBNVzdXc0VCL3MKSnkwa1M1RzhCcnR0Y0JDOWxkZ2FyTCtvSUF6MWpZNGVGMnZQcTkwclpreHJ4MWFORDU3WnVwRkt0ei9MMFErUQp1TlpHWkZZb2xVM1pWQ041Y1prQ0F3RUFBYU5aTUZjd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0hRWURWUjBPQkJZRUZLektkeEk1bTRIUmxKRzRuZmVEUlovU0xEaGNNQlVHQTFVZEVRUU8KTUF5Q0NtdDFZbVZ5Ym1WMFpYTXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBSWExdFdqckVkcm5QMVc0cisyMQp5cWdwQVJuZ1lGTmdWb25VelZydWdHd1h4YldteUVaTm85NG9HR0pmbC8vUDN1VmlXOUNFU2U1cHZiK3dwbzVtCk9EK1o0emU1dWZKQzFDb0NhU0F3T0hJcXBDODI2SDdqVzZ0Nkx0S0dJcEtHU0tJWE9BVGJ6T09uRUpmK0JlZTYKcGw2WkVyVXNFTkpwZmlNR3dJcWgvemZyRU9EckpjOUo5UGt0amFzV0xaMjBnM3FRSFNqVTdmK3FOdjRvM1RXMwovMTFaWUI2eE12S0hkLy81ZHA3dDRlYi83WnU5SWZjTFpVWmtQam9lZlhsWmNyVHBrdWhOcjZpdFE3R1RKZ3lzCnlaTElGelJCZ245b0NRVTJVVDFUN2JHOXlPWVNlazJoaW5BMGpDTVMrTExrOEpNOFVpUlpwNU9XSGZick5rMmMKY0FrPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==" } ], "cluster_id": null, "created_at": "2023-02-17 15:56:41.857 +0000 UTC", "enabled_cluster_log_types": [ "api", "audit" ], "encryption_config": [], "endpoint": "https://475E2975E4648AD77DD4E849BD95E5B2.yl4.ap-northeast-1.eks.amazonaws.com", "id": "lab-apne1-xpk-iac-cluster01", "identity": [ { "oidc": [ { "issuer": "https://oidc.eks.ap-northeast-1.amazonaws.com/id/475E2975E4648AD77DD4E849BD95E5B2" } ] } ], "kubernetes_network_config": [ { "ip_family": "ipv6", "service_ipv4_cidr": "", "service_ipv6_cidr": "fd14:a154:0597::/108" } ], "name": "lab-apne1-xpk-iac-cluster01", "outpost_config": [], "platform_version": "eks.4", "role_arn": "arn:aws:iam::040216112220:role/lab-apne1-xpk-iac-cluster-role", "status": "ACTIVE", "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "timeouts": null, "version": "1.24", "vpc_config": [ { "cluster_security_group_id": "sg-06d1c1aa26b1ecb36", "endpoint_private_access": true, "endpoint_public_access": false, "public_access_cidrs": [], "security_group_ids": [], "subnet_ids": [ "subnet-03837a4f086fe607a", "subnet-0a9f75c427054ca39" ], "vpc_id": "vpc-051d8405604cd730d" } ] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfX0=", "dependencies": [ "aws_iam_role.eks-cluster-role", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] } ] }, { "mode": "managed", "type": "aws_eks_node_group", "name": "eks-nodegroup", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "ami_type": "AL2_x86_64", "arn": "arn:aws:eks:ap-northeast-1:040216112220:nodegroup/lab-apne1-xpk-iac-cluster01/lab-apne1-xpk-iac-eks-ng20230217160818250600000006/86c33011-175b-a971-ef8e-b3473185ec85", "capacity_type": "ON_DEMAND", "cluster_name": "lab-apne1-xpk-iac-cluster01", "disk_size": 20, "force_update_version": null, "id": "lab-apne1-xpk-iac-cluster01:lab-apne1-xpk-iac-eks-ng20230217160818250600000006", "instance_types": [ "t3.large" ], "labels": {}, "launch_template": [], "node_group_name": "lab-apne1-xpk-iac-eks-ng20230217160818250600000006", "node_group_name_prefix": "lab-apne1-xpk-iac-eks-ng", "node_role_arn": "arn:aws:iam::040216112220:role/lab-apne1-xpk-iac-nodegroup-role", "release_version": "1.24.10-20230211", "remote_access": [ { "ec2_ssh_key": "lab-apne1-xpk-iac-eks-node-sshkey", "source_security_group_ids": [ "sg-0133aa07a88ba44e6" ] } ], "resources": [ { "autoscaling_groups": [ { "name": "eks-lab-apne1-xpk-iac-eks-ng20230217160818250600000006-86c33011-175b-a971-ef8e-b3473185ec85" } ], "remote_access_security_group_id": "sg-0730ca6a4f7afce14" } ], "scaling_config": [ { "desired_size": 1, "max_size": 2, "min_size": 1 } ], "status": "ACTIVE", "subnet_ids": [ "subnet-03837a4f086fe607a", "subnet-0a9f75c427054ca39" ], "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "taint": [], "timeouts": null, "update_config": [ { "max_unavailable": 1, "max_unavailable_percentage": 0 } ], "version": "1.24" }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozNjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_role.eks-cluster-role", "aws_iam_role.eks-nodegroup-role", "aws_key_pair.eks-node-sshkey", "aws_security_group.eks-node-sg", "data.aws_caller_identity.this", "data.aws_ssm_parameter.eks_ami_release_version", "data.terraform_remote_state.vpc" ] } ] }, { "mode": "managed", "type": "aws_iam_instance_profile", "name": "eks-bast-iam-profile", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:iam::040216112220:instance-profile/eksBastIamProfile", "create_date": "2023-02-17T15:56:40Z", "id": "eksBastIamProfile", "name": "eksBastIamProfile", "name_prefix": null, "path": "/", "role": "lab-apne1-xpk-iac-bast-role", "tags": {}, "tags_all": {}, "unique_id": "AIPAQSXIRFROCNYS4TDKZ" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "aws_iam_role.eks-bast-role", "data.aws_caller_identity.this" ] } ] }, { "mode": "managed", "type": "aws_iam_role", "name": "eks-bast-role", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:iam::040216112220:role/lab-apne1-xpk-iac-bast-role", "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", "create_date": "2023-02-17T15:56:38Z", "description": "", "force_detach_policies": false, "id": "lab-apne1-xpk-iac-bast-role", "inline_policy": [ { "name": "eks-bast-policy", "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"eks:*\",\"ecr:*\"],\"Effect\":\"Allow\",\"Resource\":\"*\"}]}" } ], "managed_policy_arns": [ "arn:aws:iam::aws:policy/ReadOnlyAccess" ], "max_session_duration": 3600, "name": "lab-apne1-xpk-iac-bast-role", "name_prefix": "", "path": "/", "permissions_boundary": null, "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "unique_id": "AROAQSXIRFROKCCCEKJHZ" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "data.aws_caller_identity.this" ] } ] }, { "mode": "managed", "type": "aws_iam_role", "name": "eks-cluster-role", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:iam::040216112220:role/lab-apne1-xpk-iac-cluster-role", "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"eks.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", "create_date": "2023-02-17T15:56:38Z", "description": "", "force_detach_policies": false, "id": "lab-apne1-xpk-iac-cluster-role", "inline_policy": [], "managed_policy_arns": [ "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController" ], "max_session_duration": 3600, "name": "lab-apne1-xpk-iac-cluster-role", "name_prefix": "", "path": "/", "permissions_boundary": null, "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "unique_id": "AROAQSXIRFROG72GSP5PP" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "data.aws_caller_identity.this" ] } ] }, { "mode": "managed", "type": "aws_iam_role", "name": "eks-nodegroup-role", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:iam::040216112220:role/lab-apne1-xpk-iac-nodegroup-role", "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", "create_date": "2023-02-17T15:56:38Z", "description": "", "force_detach_policies": false, "id": "lab-apne1-xpk-iac-nodegroup-role", "inline_policy": [ { "name": "AlbIngressAccess", "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"elasticloadbalancing:*\"],\"Effect\":\"Allow\",\"Resource\":\"*\"}]}" }, { "name": "IP6CniAccess", "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"ec2:AssignIpv6Addresses\",\"ec2:DescribeInstances\",\"ec2:DescribeTags\",\"ec2:DescribeNetworkInterfaces\",\"ec2:DescribeInstanceTypes\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":[\"ec2:CreateTags\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ec2:*:*:network-interface/*\"]}]}" } ], "managed_policy_arns": [ "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", "arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy" ], "max_session_duration": 3600, "name": "lab-apne1-xpk-iac-nodegroup-role", "name_prefix": "", "path": "/", "permissions_boundary": null, "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "unique_id": "AROAQSXIRFRODKJMCAJDS" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "data.aws_caller_identity.this" ] } ] }, { "mode": "managed", "type": "aws_instance", "name": "eks-bast", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "ami": "ami-0778fde4cd5a48d8d", "arn": "arn:aws:ec2:ap-northeast-1:040216112220:instance/i-04e1eaa61f3426100", "associate_public_ip_address": true, "availability_zone": "ap-northeast-1a", "capacity_reservation_specification": [ { "capacity_reservation_preference": "open", "capacity_reservation_target": [] } ], "cpu_core_count": 1, "cpu_threads_per_core": 2, "credit_specification": [ { "cpu_credits": "unlimited" } ], "disable_api_stop": false, "disable_api_termination": false, "ebs_block_device": [], "ebs_optimized": true, "enclave_options": [ { "enabled": false } ], "ephemeral_block_device": [], "get_password_data": false, "hibernation": false, "host_id": "", "host_resource_group_arn": null, "iam_instance_profile": "eksBastIamProfile", "id": "i-04e1eaa61f3426100", "instance_initiated_shutdown_behavior": "stop", "instance_state": "running", "instance_type": "t3.micro", "ipv6_address_count": 1, "ipv6_addresses": [ "2406:da14:ece:ed02:fdaa:ae3a:1da9:da57" ], "key_name": "lab-apne1-xpk-iac-eks-node-sshkey", "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": 0, "primary_network_interface_id": "eni-07665a545e5796445", "private_dns": "ip-192-168-123-187.ap-northeast-1.compute.internal", "private_dns_name_options": [ { "enable_resource_name_dns_a_record": false, "enable_resource_name_dns_aaaa_record": false, "hostname_type": "ip-name" } ], "private_ip": "192.168.123.187", "public_dns": "ec2-54-95-19-38.ap-northeast-1.compute.amazonaws.com", "public_ip": "54.95.19.38", "root_block_device": [ { "delete_on_termination": true, "device_name": "/dev/sda1", "encrypted": false, "iops": 3000, "kms_key_id": "", "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "throughput": 125, "volume_id": "vol-06827b2ef485e2fc2", "volume_size": 8, "volume_type": "gp3" } ], "secondary_private_ips": [], "security_groups": [], "source_dest_check": true, "subnet_id": "subnet-0836e26b02828e6b7", "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Name": "lab-apne1-xpk-iac-eks-bast", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Name": "lab-apne1-xpk-iac-eks-bast", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tenancy": "default", "timeouts": null, "user_data": "3165d47d1d63f7610a4e1107f2d1cf8aff854f78", "user_data_base64": null, "user_data_replace_on_change": false, "volume_tags": null, "vpc_security_group_ids": [ "sg-06d1c1aa26b1ecb36", "sg-0b2b250f4303111e3" ] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "dependencies": [ "aws_eks_cluster.eks-cluster", "aws_iam_instance_profile.eks-bast-iam-profile", "aws_iam_role.eks-bast-role", "aws_iam_role.eks-cluster-role", "aws_key_pair.eks-node-sshkey", "aws_security_group.eks-bast-sg", "data.aws_ami.ubuntu", "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] } ] }, { "mode": "managed", "type": "aws_key_pair", "name": "eks-node-sshkey", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "arn": "arn:aws:ec2:ap-northeast-1:040216112220:key-pair/lab-apne1-xpk-iac-eks-node-sshkey", "fingerprint": "TVzf3htvZnxMd+PpGafCtDQf8Fse5IHgH3Z6mY23CLg=", "id": "lab-apne1-xpk-iac-eks-node-sshkey", "key_name": "lab-apne1-xpk-iac-eks-node-sshkey", "key_name_prefix": "", "key_pair_id": "key-007639e96f5927e8d", "key_type": "ed25519", "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINCcQafdzARq/6kwpdi8/cqMNikH4+j/ClyuZBmeHfXC kn@ism.zoo.lo", "tags": {}, "tags_all": {} }, "sensitive_attributes": [], "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" } ] }, { "mode": "managed", "type": "aws_security_group", "name": "eks-bast-sg", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "arn": "arn:aws:ec2:ap-northeast-1:040216112220:security-group/sg-0b2b250f4303111e3", "description": "Allow ssh to EKS bast", "egress": [ { "cidr_blocks": [ "0.0.0.0/0" ], "description": "", "from_port": 0, "ipv6_cidr_blocks": [], "prefix_list_ids": [], "protocol": "-1", "security_groups": [], "self": false, "to_port": 0 } ], "id": "sg-0b2b250f4303111e3", "ingress": [ { "cidr_blocks": [ "223.18.148.85/32" ], "description": "SSH from VPC", "from_port": 22, "ipv6_cidr_blocks": [], "prefix_list_ids": [], "protocol": "tcp", "security_groups": [], "self": false, "to_port": 22 } ], "name": "lab-apne1-xpk-iac-eks-bast-sg", "name_prefix": "", "owner_id": "040216112220", "revoke_rules_on_delete": false, "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "timeouts": null, "vpc_id": "vpc-051d8405604cd730d" }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", "dependencies": [ "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] } ] }, { "mode": "managed", "type": "aws_security_group", "name": "eks-node-sg", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "arn": "arn:aws:ec2:ap-northeast-1:040216112220:security-group/sg-0133aa07a88ba44e6", "description": "Allow ssh to EKS nodes", "egress": [ { "cidr_blocks": [ "0.0.0.0/0" ], "description": "", "from_port": 0, "ipv6_cidr_blocks": [], "prefix_list_ids": [], "protocol": "-1", "security_groups": [], "self": false, "to_port": 0 } ], "id": "sg-0133aa07a88ba44e6", "ingress": [ { "cidr_blocks": [ "192.168.123.0/24" ], "description": "SSH from VPC", "from_port": 22, "ipv6_cidr_blocks": [], "prefix_list_ids": [], "protocol": "tcp", "security_groups": [], "self": false, "to_port": 22 } ], "name": "lab-apne1-xpk-iac-eks-node-sg", "name_prefix": "", "owner_id": "040216112220", "revoke_rules_on_delete": false, "tags": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "tags_all": { "Application": "eks", "BuildDate": "20230217", "CreatedBy": "arn:aws:iam::040216112220:user/ken2026", "Environment": "lab", "Project": "iac", "ServiceProvider": "None", "TerraformDir": "eks-lab-ip6/eks", "TerraformMode": "managed" }, "timeouts": null, "vpc_id": "vpc-051d8405604cd730d" }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", "dependencies": [ "data.aws_caller_identity.this", "data.terraform_remote_state.vpc" ] } ] } ], "check_results": null }