terraform.aws-baseline-infra/examples/eks-lab/eks/terraform.tfstate.backup

1102 lines
41 KiB
JSON

{
"version": 4,
"terraform_version": "1.3.7",
"serial": 95,
"lineage": "61b12344-3edc-e800-e200-edd57322a557",
"outputs": {
"eks-bast-ip": {
"value": "52.199.225.16",
"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-0c37bcb8f45f4a246",
"subnet-0f01efa6180f48b9d"
],
"public-subnet-ids": [
"subnet-0c3d3dfe9e4d353d1",
"subnet-0226abaec8618c719"
],
"vpc-cidr": "192.168.123.0/24",
"vpc-id": "vpc-0ea2750f798358708"
},
"type": [
"object",
{
"private-subnet-ids": [
"tuple",
[
"string",
"string"
]
],
"public-subnet-ids": [
"tuple",
[
"string",
"string"
]
],
"vpc-cidr": "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/04c32ec3-c9be-2cdb-52c8-b9efb3b747fa",
"cluster_name": "lab-apne1-xpk-iac-cluster01",
"configuration_values": "",
"created_at": "2023-02-17T04:00:12Z",
"id": "lab-apne1-xpk-iac-cluster01:aws-ebs-csi-driver",
"modified_at": "2023-02-17T04:00:12Z",
"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.8.7-eksbuild.3",
"arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/coredns/72c32ec3-0abc-b44c-788c-c22f306a6923",
"cluster_name": "lab-apne1-xpk-iac-cluster01",
"configuration_values": "",
"created_at": "2023-02-17T03:58:34Z",
"id": "lab-apne1-xpk-iac-cluster01:coredns",
"modified_at": "2023-02-17T03:58:34Z",
"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.7-eksbuild.2",
"arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/kube-proxy/a8c32eab-1b69-816c-48bf-f065216d543f",
"cluster_name": "lab-apne1-xpk-iac-cluster01",
"configuration_values": "",
"created_at": "2023-02-17T03:06:17Z",
"id": "lab-apne1-xpk-iac-cluster01:kube-proxy",
"modified_at": "2023-02-17T03:24:08Z",
"preserve": null,
"resolve_conflicts": null,
"service_account_role_arn": "",
"tags": {
"Application": "eks",
"BuildDate": "20230217",
"CreatedBy": "arn:aws:iam::040216112220:user/ken2026",
"Environment": "lab",
"Project": "iac",
"ServiceProvider": "None",
"TerraformDir": "eks-lab/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/eks",
"TerraformMode": "managed"
},
"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.11.4-eksbuild.1",
"arn": "arn:aws:eks:ap-northeast-1:040216112220:addon/lab-apne1-xpk-iac-cluster01/vpc-cni/3ac32eab-1b6e-3d3f-7481-402306eaaf26",
"cluster_name": "lab-apne1-xpk-iac-cluster01",
"configuration_values": "",
"created_at": "2023-02-17T03:06:17Z",
"id": "lab-apne1-xpk-iac-cluster01:vpc-cni",
"modified_at": "2023-02-17T03:24:30Z",
"preserve": null,
"resolve_conflicts": null,
"service_account_role_arn": "",
"tags": {
"Application": "eks",
"BuildDate": "20230217",
"CreatedBy": "arn:aws:iam::040216112220:user/ken2026",
"Environment": "lab",
"Project": "iac",
"ServiceProvider": "None",
"TerraformDir": "eks-lab/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/eks",
"TerraformMode": "managed"
},
"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": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvakNDQWVhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJek1ESXhOekF6TURFME5sb1hEVE16TURJeE5EQXpNREUwTmxvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTXJOCmxBWU02VjFxc090N1R1bVkvZ3l4bTZIL3hwSGxyeUlLRzVYa1ppQmJxWTRjcTJYeVFjd1M0bkpldW4wY2FQU0cKTFhJeEpNUGZId1h0TkxSRmRCdExiOFM5NHVWSzBhZEE0dkxVRXYzdmNOcUV5REN5Uno2SDd6N0xiZGdCbC82MQprQnpRZndNT3drL2lOdzE5S1A0OGluaStjOVVEY3J0Mm5yTVpqdUVUay8ybVNWTGNnUzFreEtmOFkwVmphUkpkCnpYYlVNazRvMkZia0x3UU5Dd0JYWG56VGZhakZHUXdRME45aVllZmxIaVZrUE84cmlWbW9ETm9KRzRaQVI0VVcKejNTVlhGbXB4dEcwbDN6QTdTZjdNQmx5M0w2dVNPbkc2M3VrQ2xQYUZ0VTF6ZUhreFZHM05wZko4NjQzUkJJRwovaDJHUXRiMUdVSFhzRFJFN0w4Q0F3RUFBYU5aTUZjd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0hRWURWUjBPQkJZRUZQYUI3aklubk05Y0paUERtK214cUE4NEVHMTlNQlVHQTFVZEVRUU8KTUF5Q0NtdDFZbVZ5Ym1WMFpYTXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBSVJadjZhSGtQeS9mS21KaEx2RApxRWdEaEVJL2ZyaEc2U0lnY1FmVG1SN3U5bDRMOXJVTEg1RW9yMFFOcThKN3NMMFhwR3NZemk5MDUwY2RUS01PClBMMkZzYkZqODh6MFdnZEY1aTQzQlJTZk8wZ010b3d3Nm12YWc0S3JnUmZNT1VqNjNQNDFpMklzTFBBMjFPQWsKL3UrU1Y4bWFsWTAvUWkyTGhlbC9qSDdjeEN5Qmt3RGowY3Ivblk0ODZ6WUVMQ3J3bjBlYkNxemUrTTE3VG1FZwpjMTZhT1k0c0RpL3Y3eUMvZjlmSFN5SzVSMGpyUmlOcXYzc3FVdzlFOVZjNWFrNDErdU5ZWjREZGxLNWdhQTQwClR5M24wYlY3L0FlaHdrUHQySlVKWXRqUk1HY2xnS0JQd2h6bkV4djVUOFRDSXZVYVpBdkFqa0FERlZtSXU3dlUKb2pzPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
}
],
"cluster_id": null,
"created_at": "2023-02-17 02:55:41.081 +0000 UTC",
"enabled_cluster_log_types": [
"api",
"audit"
],
"encryption_config": [],
"endpoint": "https://1D439ECEEAD47B87B0B5FC392DC80939.gr7.ap-northeast-1.eks.amazonaws.com",
"id": "lab-apne1-xpk-iac-cluster01",
"identity": [
{
"oidc": [
{
"issuer": "https://oidc.eks.ap-northeast-1.amazonaws.com/id/1D439ECEEAD47B87B0B5FC392DC80939"
}
]
}
],
"kubernetes_network_config": [
{
"ip_family": "ipv4",
"service_ipv4_cidr": "172.16.0.0/16",
"service_ipv6_cidr": ""
}
],
"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/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/eks",
"TerraformMode": "managed"
},
"timeouts": null,
"version": "1.24",
"vpc_config": [
{
"cluster_security_group_id": "sg-05e8bccfddf776e0a",
"endpoint_private_access": true,
"endpoint_public_access": false,
"public_access_cidrs": [],
"security_group_ids": [],
"subnet_ids": [
"subnet-0c37bcb8f45f4a246",
"subnet-0f01efa6180f48b9d"
],
"vpc_id": "vpc-0ea2750f798358708"
}
]
},
"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-ng20230217040714054300000001/eac32ec7-02e4-8f00-3efd-c887b5afc59e",
"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-ng20230217040714054300000001",
"instance_types": [
"t3.small"
],
"labels": null,
"launch_template": [],
"node_group_name": "lab-apne1-xpk-iac-eks-ng20230217040714054300000001",
"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-06a8c5e3172a511db"
]
}
],
"resources": [
{
"autoscaling_groups": [
{
"name": "eks-lab-apne1-xpk-iac-eks-ng20230217040714054300000001-eac32ec7-02e4-8f00-3efd-c887b5afc59e"
}
],
"remote_access_security_group_id": "sg-038dedcbc92537147"
}
],
"scaling_config": [
{
"desired_size": 1,
"max_size": 2,
"min_size": 1
}
],
"status": "ACTIVE",
"subnet_ids": [
"subnet-0c37bcb8f45f4a246",
"subnet-0f01efa6180f48b9d"
],
"tags": {
"Application": "eks",
"BuildDate": "20230217",
"CreatedBy": "arn:aws:iam::040216112220:user/ken2026",
"Environment": "lab",
"Project": "iac",
"ServiceProvider": "None",
"TerraformDir": "eks-lab/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/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-17T02:55:39Z",
"id": "eksBastIamProfile",
"name": "eksBastIamProfile",
"name_prefix": null,
"path": "/",
"role": "lab-apne1-xpk-iac-bast-role",
"tags": {},
"tags_all": {},
"unique_id": "AIPAQSXIRFROFORU4B5MF"
},
"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-17T02:55:37Z",
"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/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/eks",
"TerraformMode": "managed"
},
"unique_id": "AROAQSXIRFROCI4Y2PX2F"
},
"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-17T02:55:37Z",
"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/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/eks",
"TerraformMode": "managed"
},
"unique_id": "AROAQSXIRFROC4XGDRJVK"
},
"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-17T02:55:37Z",
"description": "",
"force_detach_policies": false,
"id": "lab-apne1-xpk-iac-nodegroup-role",
"inline_policy": [],
"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/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/eks",
"TerraformMode": "managed"
},
"unique_id": "AROAQSXIRFROK5J4CVB5B"
},
"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-0d4e4a016ecec1dbd",
"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-0d4e4a016ecec1dbd",
"instance_initiated_shutdown_behavior": "stop",
"instance_state": "running",
"instance_type": "t3.micro",
"ipv6_address_count": 0,
"ipv6_addresses": [],
"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-065996af75245c7b9",
"private_dns": "ip-192-168-123-40.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.40",
"public_dns": "ec2-52-199-225-16.ap-northeast-1.compute.amazonaws.com",
"public_ip": "52.199.225.16",
"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/eks",
"TerraformMode": "managed"
},
"throughput": 125,
"volume_id": "vol-06fc873304339e899",
"volume_size": 8,
"volume_type": "gp3"
}
],
"secondary_private_ips": [],
"security_groups": [],
"source_dest_check": true,
"subnet_id": "subnet-0c3d3dfe9e4d353d1",
"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/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/eks",
"TerraformMode": "managed"
},
"tenancy": "default",
"timeouts": null,
"user_data": "4a6d9befb39781498f40f4b04e833f7a1cccbbbf",
"user_data_base64": null,
"user_data_replace_on_change": false,
"volume_tags": null,
"vpc_security_group_ids": [
"sg-05e8bccfddf776e0a",
"sg-0d7880b7edd663ebf"
]
},
"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-0a807f697a1a0c8a9",
"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-0d7880b7edd663ebf",
"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-0d7880b7edd663ebf",
"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/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/eks",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_id": "vpc-0ea2750f798358708"
},
"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-06a8c5e3172a511db",
"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-06a8c5e3172a511db",
"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/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/eks",
"TerraformMode": "managed"
},
"timeouts": null,
"vpc_id": "vpc-0ea2750f798358708"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
"dependencies": [
"data.aws_caller_identity.this",
"data.terraform_remote_state.vpc"
]
}
]
}
],
"check_results": null
}