diff --git a/kubernetes/.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.18.1/darwin_amd64/terraform-provider-kubernetes_v2.18.1_x5 b/kubernetes/.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.18.1/darwin_amd64/terraform-provider-kubernetes_v2.18.1_x5 new file mode 100755 index 000000000..94f7f6a4d Binary files /dev/null and b/kubernetes/.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.18.1/darwin_amd64/terraform-provider-kubernetes_v2.18.1_x5 differ diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml new file mode 100644 index 000000000..fac3aa97a --- /dev/null +++ b/kubernetes/deployment.yaml @@ -0,0 +1,66 @@ + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: plane-sandbox + namespace: plane-sandbox + labels: + app: plane-sandbox +spec: + replicas: 1 + selector: + matchLabels: + app: plane-sandbox + template: + metadata: + labels: + app: plane-sandbox + spec: + containers: + - name: planefrontend + image: makeplane/plane-frontend:0.2.1 + imagePullPolicy: IfNotPresent + env: + - name: NEXT_PUBLIC_API_BASE_URL + value: "http://planebackend:8000" + resources: + limits: + memory: 512Mi + cpu: "1" + requests: + memory: 256Mi + cpu: "0.2" + command: ["/bin/sh","-c"] + args: ["node apps/app/server.js"] + ports: + - containerPort: 3000 + - name: planebackend + image: makeplane/plane-backend:0.2.1 + imagePullPolicy: IfNotPresent + env: + - name: WEB_URL + value: planebackend:8000 + - name: DISABLE_COLLECTSTATIC + value: "1" + - name: DOCKERIZED + value: "1" + - name: SECRET_KEY + value: "praro1^m%c607u4_1z%&_ubf@rm(u-t@asnqkykecz6l^dxlzf" + - name: DATABASE_URL + value: postgres://plane:plane@plane.cdivnhdawh0f.ap-south-1.rds.amazonaws.com:5432/plane + - name: REDIS_URL + value: "redis://redis:6379/" + - name: DJANGO_SETTINGS_MODULE + value: plane.settings.production + command: ["/bin/sh","-c"] + args: ["./bin/takeoff"] + resources: + limits: + memory: 1Gi + cpu: "1" + requests: + memory: 1Gi + cpu: "0.2" + ports: + - containerPort: 8000 + diff --git a/kubernetes/ingress.yaml b/kubernetes/ingress.yaml new file mode 100644 index 000000000..cec5e7a4c --- /dev/null +++ b/kubernetes/ingress.yaml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: plane-ingress + namespace: plane-sandbox + annotations: + kubernetes.io/ingress.class: alb + alb.ingress.kubernetes.io/scheme: internet-facing + alb.ingress.kubernetes.io/tags: Environment=sandbox,Team=plane** +spec: + rules: + - host: "*.example.com" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: plane-sandbox-service + port: + number: 3000 diff --git a/kubernetes/main.tf b/kubernetes/main.tf new file mode 100644 index 000000000..72b42d6e5 --- /dev/null +++ b/kubernetes/main.tf @@ -0,0 +1,109 @@ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "19.5.1" + + cluster_name = "sandbox" + cluster_version = "1.25" + + cluster_addons = { + coredns = { + preserve = true + most_recent = true + + timeouts = { + create = "25m" + delete = "10m" + } + } + kube-proxy = { + most_recent = true + } + vpc-cni = { + most_recent = true + } + } + iam_role_additional_policies = { + additional = "arn:aws:iam::aws:policy/AmazonEC2FullAccess" + } + vpc_id = "vpc-0e355d290b274b86f" + subnet_ids = ["subnet-050c9e36bda3e6b62","subnet-0bd81c09f00d0607a","subnet-03396584886320a18"] + cluster_endpoint_public_access = true + + eks_managed_node_group_defaults = { + ami_type = "AL2_x86_64" + + } + + eks_managed_node_groups = { + one = { + name = "node-group-1" + + instance_types = ["t3.large"] + + min_size = 1 + max_size = 2 + desired_size = 1 + } + + two = { + name = "node-group-2" + + instance_types = ["t3.large"] + + min_size = 1 + max_size = 2 + desired_size = 1 + } + } +} +######################################## +terraform { +required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 4.47.0" + } + + random = { + source = "hashicorp/random" + version = "~> 3.4.3" + } + + tls = { + source = "hashicorp/tls" + version = "~> 4.0.4" + } + + cloudinit = { + source = "hashicorp/cloudinit" + version = "~> 2.2.0" + } + } + + required_version = "~> 1.3" +} + +######################################### + +output "cluster_endpoint" { + description = "Endpoint for EKS control plane" + value = module.eks.cluster_endpoint +} + +output "cluster_security_group_id" { + description = "Security group ids attached to the cluster control plane" + value = module.eks.cluster_security_group_id +} + + +output "cluster_name" { + description = "Kubernetes Cluster Name" + value = module.eks.cluster_name +} + +######################################### + +provider "aws" { + region = "ap-south-1" +} diff --git a/kubernetes/secret.yaml b/kubernetes/secret.yaml new file mode 100644 index 000000000..92b5fc712 --- /dev/null +++ b/kubernetes/secret.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Secret +metadata: + namespace: plane-sandbox + name: plane-secret +type: kubernetes.io/tls +data: + tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMakNDQWhZQ0NRREFPRjl0THNhWFdqQU5CZ2txaGtpRzl3MEJBUXNGQURCYU1Rc3dDUVlEVlFRR0V3SlYKVXpFTE1Ba0dBMVVFQ0F3Q1EwRXhJVEFmQmdOVkJBb01HRWx1ZEdWeWJtVjBJRmRwWkdkcGRITWdVSFI1SUV4MApaREViTUJrR0ExVUVBd3dTWTJGbVpTNWxlR0Z0Y0d4bExtTnZiU0FnTUI0WERURTRNRGt4TWpFMk1UVXpOVm9YCkRUSXpNRGt4TVRFMk1UVXpOVm93V0RFTE1Ba0dBMVVFQmhNQ1ZWTXhDekFKQmdOVkJBZ01Ba05CTVNFd0h3WUQKVlFRS0RCaEpiblJsY201bGRDQlhhV1JuYVhSeklGQjBlU0JNZEdReEdUQVhCZ05WQkFNTUVHTmhabVV1WlhoaApiWEJzWlM1amIyMHdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDcDZLbjdzeTgxCnAwanVKL2N5ayt2Q0FtbHNmanRGTTJtdVpOSzBLdGVjcUcyZmpXUWI1NXhRMVlGQTJYT1N3SEFZdlNkd0kyaloKcnVXOHFYWENMMnJiNENaQ0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jZneGJYQW9HQkFNWk8KMHA2SGJCbWNQMHRqRlhmY0tFNzdJbUxtMHNBRzR1SG9VeDBlUGovMnFyblRuT0JCTkU0TXZnRHVUSnp5K2NhVQprOFJxbWRIQ2JIelRlNmZ6WXEvOWl0OHNaNzdLVk4xcWtiSWN1YytSVHhBOW5OaDFUanNSbmU3NFowajFGQ0xrCmhIY3FIMHJpN1BZU0tIVEU4RnZGQ3haWWRidUI4NENtWmlodnhicFJBb0dBSWJqcWFNWVBUWXVrbENkYTVTNzkKWVNGSjFKelplMUtqYS8vdER3MXpGY2dWQ0thMzFqQXdjaXowZi9sU1JxM0hTMUdHR21lemhQVlRpcUxmZVpxYwpSMGlLYmhnYk9jVlZrSkozSzB5QXlLd1BUdW14S0haNnpJbVpTMGMwYW0rUlk5WUdxNVQ3WXJ6cHpjZnZwaU9VCmZmZTNSeUZUN2NmQ21mb09oREN0enVrQ2dZQjMwb0xDMVJMRk9ycW40M3ZDUzUxemM1em9ZNDR1QnpzcHd3WU4KVHd2UC9FeFdNZjNWSnJEakJDSCtULzZzeXNlUGJKRUltbHpNK0l3eXRGcEFOZmlJWEV0LzQ4WGY2ME54OGdXTQp1SHl4Wlp4L05LdER3MFY4dlgxUE9ucTJBNWVpS2ErOGpSQVJZS0pMWU5kZkR1d29seHZHNmJaaGtQaS80RXRUCjNZMThzUUtCZ0h0S2JrKzdsTkpWZXN3WEU1Y1VHNkVEVXNEZS8yVWE3ZlhwN0ZjanFCRW9hcDFMU3crNlRYcDAKWmdybUtFOEFSek00NytFSkhVdmlpcS9udXBFMTVnMGtKVzNzeWhwVTl6WkxPN2x0QjBLSWtPOVpSY21Vam84UQpjcExsSE1BcWJMSjhXWUdKQ2toaVd4eWFsNmhZVHlXWTRjVmtDMHh0VGwvaFVFOUllTktvCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== \ No newline at end of file diff --git a/kubernetes/service.yaml b/kubernetes/service.yaml new file mode 100644 index 000000000..f354cbebd --- /dev/null +++ b/kubernetes/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: plane-sandbox-service + namespace: plane-sandbox + labels: + app: plane-sandbox +spec: + selector: + app: plane-sandbox + ports: + - protocol: TCP + port: 3000 + targetPort: 3000 diff --git a/kubernetes/terraform.tfstate b/kubernetes/terraform.tfstate new file mode 100644 index 000000000..8bc82bc01 --- /dev/null +++ b/kubernetes/terraform.tfstate @@ -0,0 +1,2339 @@ +{ + "version": 4, + "terraform_version": "1.3.7", + "serial": 52, + "lineage": "c07b700c-e0f1-768a-8aab-840bf497616f", + "outputs": { + "cluster_endpoint": { + "value": "https://F734004459F79E3AB29825DE725F905B.gr7.ap-south-1.eks.amazonaws.com", + "type": "string" + }, + "cluster_name": { + "value": "sandbox", + "type": "string" + }, + "cluster_security_group_id": { + "value": "sg-09f235754a6644b70", + "type": "string" + } + }, + "resources": [ + { + "module": "module.eks", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_eks_addon_version", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "coredns", + "schema_version": 0, + "attributes": { + "addon_name": "coredns", + "id": "coredns", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.9.3-eksbuild.2" + }, + "sensitive_attributes": [] + }, + { + "index_key": "kube-proxy", + "schema_version": 0, + "attributes": { + "addon_name": "kube-proxy", + "id": "kube-proxy", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.25.6-eksbuild.1" + }, + "sensitive_attributes": [] + }, + { + "index_key": "vpc-cni", + "schema_version": 0, + "attributes": { + "addon_name": "vpc-cni", + "id": "vpc-cni", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.12.5-eksbuild.1" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2764486067", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSClusterAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"eks.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "eks.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSClusterAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_iam_session_context", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "arn:aws:iam::270841321238:user/narayana", + "issuer_arn": "arn:aws:iam::270841321238:user/narayana", + "issuer_id": "", + "issuer_name": "", + "session_name": "" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "tls_certificate", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/tls\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "certificates": [ + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIEdTCCA12gAwIBAgIJAKcOSkw0grd/MA0GCSqGSIb3DQEBCwUAMGgxCzAJBgNV\nBAYTAlVTMSUwIwYDVQQKExxTdGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTIw\nMAYDVQQLEylTdGFyZmllbGQgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0\neTAeFw0wOTA5MDIwMDAwMDBaFw0zNDA2MjgxNzM5MTZaMIGYMQswCQYDVQQGEwJV\nUzEQMA4GA1UECBMHQXJpem9uYTETMBEGA1UEBxMKU2NvdHRzZGFsZTElMCMGA1UE\nChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjE7MDkGA1UEAxMyU3RhcmZp\nZWxkIFNlcnZpY2VzIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IC0gRzIwggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVDDrEKvlO4vW+GZdfjohTsR8/\ny8+fIBNtKTrID30892t2OGPZNmCom15cAICyL1l/9of5JUOG52kbUpqQ4XHj2C0N\nTm/2yEnZtvMaVq4rtnQU68/7JuMauh2WLmo7WJSJR1b/JaCTcFOD2oR0FMNnngRo\nOt+OQFodSk7PQ5E751bWAHDLUu57fa4657wx+UX2wmDPE1kCK4DMNEffud6QZW0C\nzyyRpqbn3oUYSXxmTqM6bam17jQuug0DuDPfR+uxa40l2ZvOgdFFRjKWcIfeAg5J\nQ4W2bHO7ZOphQazJ1FTfhy/HIrImzJ9ZVGif/L4qL8RVHHVAYBeFAlU5i38FAgMB\nAAGjgfAwge0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0O\nBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMB8GA1UdIwQYMBaAFL9ft9HO3R+G9FtV\nrNzXEMIOqYjnME8GCCsGAQUFBwEBBEMwQTAcBggrBgEFBQcwAYYQaHR0cDovL28u\nc3MyLnVzLzAhBggrBgEFBQcwAoYVaHR0cDovL3guc3MyLnVzL3guY2VyMCYGA1Ud\nHwQfMB0wG6AZoBeGFWh0dHA6Ly9zLnNzMi51cy9yLmNybDARBgNVHSAECjAIMAYG\nBFUdIAAwDQYJKoZIhvcNAQELBQADggEBACMd44pXyn3pF3lM8R5V/cxTbj5HD9/G\nVfKyBDbtgB9TxF00KGu+x1X8Z+rLP3+QsjPNG1gQggL4+C/1E2DUBc7xgQjB3ad1\nl08YuW3e95ORCLp+QCztweq7dp4zBncdDQh/U90bZKuCJ/Fp1U1ervShw3WnWEQt\n8jxwmKy6abaVd38PMV4s/KCHOkdp8Hlf9BRUpJVeEXgSYCfOn8J3/yNTd126/+pZ\n59vPr5KW7ySaNRB6nJHGDn2Z9j8Z3/VyVOEVqQdZe4O/Ui5GjLIAZHYcSNPYeehu\nVsyuLAOQ1xk4meTKCRlb/weWsKh/NEnfVqn3sF/tM+2MR7cwA130A4w=\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "OU=Starfield Class 2 Certification Authority,O=Starfield Technologies\\, Inc.,C=US", + "not_after": "2034-06-28T17:39:16Z", + "not_before": "2009-09-02T00:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "12037640545166866303", + "sha1_fingerprint": "9e99a48a9960b14926bb7f3b02e22da2b0ab7280", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Starfield Services Root Certificate Authority - G2,O=Starfield Technologies\\, Inc.,L=Scottsdale,ST=Arizona,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgITBn+USionzfP6wq4rAfkI7rnExjANBgkqhkiG9w0BAQsF\nADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0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bnRydXN0\nLmNvbS9yb290ZzIuY3JsMBEGA1UdIAQKMAgwBgYEVR0gADANBgkqhkiG9w0BAQsF\nAAOCAQEAYjdCXLwQtT6LLOkMm2xF4gcAevnFWAu5CIw+7bMlPLVvUOTNNWqnkzSW\nMiGpSESrnO09tKpzbeR/FoCJbM8oAxiDR3mjEH4wW6w7sGDgd9QIpuEdfF7Au/ma\neyKdpwAJfqxGF4PcnCZXmTA5YpaP7dreqsXMGz7KQ2hsVxa81Q4gLv7/wmpdLqBK\nbRRYh5TmOTFffHPLkIhqhBGWJ6bt2YFGpn6jcgAKUj6DiAdjd4lpFw85hdKrCEVN\n0FE6/V1dN2RMfjCyVSRCnTawXZwXgWHxyvkQAiSr6w10kY17RSlQOYiypok1JR4U\nakcjMS9cmvqtmg5iUaQqqcT5NJ0hGA==\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "CN=Starfield Services Root Certificate Authority - G2,O=Starfield Technologies\\, Inc.,L=Scottsdale,ST=Arizona,C=US", + "not_after": "2037-12-31T01:00:00Z", + "not_before": "2015-05-25T12:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "144918191876577076464031512351042010504348870", + "sha1_fingerprint": "06b25927c42a721631c1efd9431e648fa62e1e39", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Amazon Root CA 1,O=Amazon,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIEXjCCA0agAwIBAgITB3MSOAudZoijOx7Zv5zNpo4ODzANBgkqhkiG9w0BAQsF\nADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\nb24gUm9vdCBDQSAxMB4XDTIyMDgyMzIyMjEyOFoXDTMwMDgyMzIyMjEyOFowPDEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEcMBoGA1UEAxMTQW1hem9uIFJT\nQSAyMDQ4IE0wMTCCASIwDQYJKoZIhvcNAQEBBQADggEP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Tad\nhcmeyfhQP7Z+iKHvyoQGi1C0ClymHETx/chhQGDyYSWqB/THwnN15AwLQo0E5V9E\nSJlbe4mBlqeInUsNYugExNf+tOiybcrswBy8OFsd34XOW3rjSUtsuafd9AWySa3h\nxRRrwszrzX/WWGm6wyB+f7C4\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "CN=Amazon Root CA 1,O=Amazon,C=US", + "not_after": "2030-08-23T22:21:28Z", + "not_before": "2022-08-23T22:21:28Z", + "public_key_algorithm": "RSA", + "serial_number": "166129328851546858514271303855646110030630415", + "sha1_fingerprint": "2ad974a775f73cbdbbd8f5ac3a49255fa8fb1f8c", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Amazon RSA 2048 M01,O=Amazon,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIF7zCCBNegAwIBAgIQCGuHimFTm/To8MqptTs+HzANBgkqhkiG9w0BAQsFADA8\nMQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRwwGgYDVQQDExNBbWF6b24g\nUlNBIDIwNDggTTAxMB4XDTIzMDIwNzAwMDAwMFoXDTIzMDYxMzIzNTk1OVowLDEq\nMCgGA1UEAxMhb2lkYy5la3MuYXAtc291dGgtMS5hbWF6b25hd3MuY29tMIIBIjAN\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4DTQz8/uV3y1flZoOp8heO4D/q6J\n4MY3dhEpnwGuXKzR/LzqboNKpYSCIZSSepx4ZA/FiM4sh2CMfzZ1TH26JbHqfOYI\nOZyACwdVzryYfe2hyqfoBqPkf7gJoTA33Hgh3wb/IzLEiKPb66+YUB8UbWAFTuWz\nQctU4lU44tdNMPmRyUjnJvjH8bwprfT9J8djL1WcEjwu0JIeWakxIohmN1cjVlxC\nTatZ2x8/oIGZ0DgGiGC9XyNuZ4CkN1LBdyul11WiwqraK7q5ott7JIOyaXgi1C/I\nlQlBT74V7TJ8sGtKivqqwZrKcCp0gJ7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JCkc9A5iGYxrjIArtQ6C28w\nDQYJKoZIhvcNAQELBQADggEBAKEI27+gieb5Ragu1bKNBSNRsyBfxOGoPAk0KA9O\ngPlpa+W2bcHFzXZX+V+vU7FOPFxb1Olo6RsvtPdrVB+AxFmka0moVecE/SHrV5yR\nqxfJItxy65vZE0NMqISs36sLyjAcy2Z23kAp8Th2Aik6DtvnvMGnP+XMkMvCKa9j\nBUcDP5zJ7G+KTnLjoB/El2NfQBwPlq3gjSVkejeUn3w8OwPmqK4Xq2rHzJoJR2L5\nl07MKw/G43vpuAU8SXVEl5/5OCdSKAFCXuUzfu86AqdAfgv02sGddYEHhSxuueuB\nnMceTyKoF1BaY+JkUqZmYvmSIfPwmfM/CyOD9M1JfsIexpE=\n-----END CERTIFICATE-----\n", + "is_ca": false, + "issuer": "CN=Amazon RSA 2048 M01,O=Amazon,C=US", + "not_after": "2023-06-13T23:59:59Z", + "not_before": "2023-02-07T00:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "11192148819046596763763063686849838623", + "sha1_fingerprint": "78c58d52ff18aa0ddd9e6c5ef5cf86a45c112df8", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=oidc.eks.ap-south-1.amazonaws.com", + "version": 3 + } + ], + "content": null, + "id": "3ffb9411f5656cc8b848fe27d98b0fa438ca925b", + "url": "https://oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "verify_chain": true + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_cloudwatch_log_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:logs:ap-south-1:270841321238:log-group:/aws/eks/sandbox/cluster", + "id": "/aws/eks/sandbox/cluster", + "kms_key_id": "", + "name": "/aws/eks/sandbox/cluster", + "name_prefix": "", + "retention_in_days": 90, + "skip_destroy": false, + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_eks_addon", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "coredns", + "schema_version": 0, + "attributes": { + "addon_name": "coredns", + "addon_version": "v1.9.3-eksbuild.2", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/coredns/a8c35643-03c1-7b35-5dc7-4441a4f6f67b", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:coredns", + "modified_at": "2023-03-04T12:08:37Z", + "preserve": true, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": {}, + "tags_all": {}, + "timeouts": { + "create": "25m", + "delete": "10m", + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxNTAwMDAwMDAwMDAwLCJkZWxldGUiOjYwMDAwMDAwMDAwMCwidXBkYXRlIjoxMjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + }, + { + "index_key": "kube-proxy", + "schema_version": 0, + "attributes": { + "addon_name": "kube-proxy", + "addon_version": "v1.25.6-eksbuild.1", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/kube-proxy/1ec35643-03c3-58a5-5373-eabac14ac968", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:kube-proxy", + "modified_at": "2023-03-04T12:08:31Z", + "preserve": null, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": {}, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + }, + { + "index_key": "vpc-cni", + "schema_version": 0, + "attributes": { + "addon_name": "vpc-cni", + "addon_version": "v1.12.5-eksbuild.1", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/vpc-cni/1cc35643-03c5-681a-454b-3fe351387b91", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:vpc-cni", + "modified_at": "2023-03-04T12:09:02Z", + "preserve": null, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": {}, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_eks_cluster", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:eks:ap-south-1:270841321238:cluster/sandbox", + "certificate_authority": [ + { + "data": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvakNDQWVhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJek1ETXdOREV5TURJd09Gb1hEVE16TURNd01URXlNREl3T0Zvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTkdWCnpMYVBoRnd4ZTg2ZTRRVnB6RVMvK0ZlWWJ1NkNDaFdmWmhyUUd5MjJFR3JmVUxtVzYrd0ZzM015cTRjWjYyRkkKUUVZTWJQRGFKV01saDVzZUZOVTM1V21pZ1RxK2hOMlV5R3pOZDcrSzA3QTJTbStOMGhCL2E1M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 +0000 UTC", + "enabled_cluster_log_types": [ + "api", + "audit", + "authenticator" + ], + "encryption_config": [ + { + "provider": [ + { + "key_arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542" + } + ], + "resources": [ + "secrets" + ] + } + ], + "endpoint": "https://F734004459F79E3AB29825DE725F905B.gr7.ap-south-1.eks.amazonaws.com", + "id": "sandbox", + "identity": [ + { + "oidc": [ + { + "issuer": "https://oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B" + } + ] + } + ], + "kubernetes_network_config": [ + { + "ip_family": "ipv4", + "service_ipv4_cidr": "10.100.0.0/16", + "service_ipv6_cidr": "" + } + ], + "name": "sandbox", + "outpost_config": [], + "platform_version": "eks.1", + "role_arn": "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003", + "status": "ACTIVE", + "tags": {}, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "version": "1.25", + "vpc_config": [ + { + "cluster_security_group_id": "sg-0fec00278c231e819", + "endpoint_private_access": true, + "endpoint_public_access": true, + "public_access_cidrs": [ + "0.0.0.0/0" + ], + "security_group_ids": [ + "sg-09f235754a6644b70" + ], + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "vpc_id": "vpc-0e355d290b274b86f" + } + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_openid_connect_provider", + "name": "oidc_provider", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:oidc-provider/oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "client_id_list": [ + "sts.amazonaws.com" + ], + "id": "arn:aws:iam::270841321238:oidc-provider/oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "tags": { + "Name": "sandbox-eks-irsa" + }, + "tags_all": { + "Name": "sandbox-eks-irsa" + }, + "thumbprint_list": [ + "9e99a48a9960b14926bb7f3b02e22da2b0ab7280", + "06b25927c42a721631c1efd9431e648fa62e1e39", + "2ad974a775f73cbdbbd8f5ac3a49255fa8fb1f8c", + "78c58d52ff18aa0ddd9e6c5ef5cf86a45c112df8" + ], + "url": "oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.data.tls_certificate.this", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_policy", + "name": "cluster_encryption", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "description": "Cluster encryption policy to allow cluster role to utilize CMK provided", + "id": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "name": "sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "name_prefix": "sandbox-cluster-ClusterEncryption", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"kms:Encrypt\",\"kms:Decrypt\",\"kms:ListGrants\",\"kms:DescribeKey\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542\"}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAT6D3GS4LG766HRCPG", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"eks.amazonaws.com\"},\"Sid\":\"EKSClusterAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "", + "force_detach_policies": true, + "id": "sandbox-cluster-20230304114952165500000003", + "inline_policy": [ + { + "name": "sandbox-cluster", + "policy": "{\"Statement\":[{\"Action\":[\"logs:CreateLogGroup\"],\"Effect\":\"Deny\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}" + } + ], + "managed_policy_arns": [ + "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "arn:aws:iam::aws:policy/AmazonEC2FullAccess", + "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", + "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController" + ], + "max_session_duration": 3600, + "name": "sandbox-cluster-20230304114952165500000003", + "name_prefix": "sandbox-cluster-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LK7O4I5FNF" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "additional", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "additional", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-20230304115606740600000001", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2FullAccess", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "cluster_encryption", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411501449700000000f", + "policy_arn": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_policy.cluster_encryption", + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "AmazonEKSClusterPolicy", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411495630710000000d", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "AmazonEKSVPCResourceController", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411495602080000000c", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group", + "name": "cluster", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:security-group/sg-09f235754a6644b70", + "description": "EKS cluster security group", + "egress": [], + "id": "sg-09f235754a6644b70", + "ingress": [ + { + "cidr_blocks": [], + "description": "Node groups to cluster API", + "from_port": 443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-090f9234d1797de74" + ], + "self": false, + "to_port": 443 + } + ], + "name": "sandbox-cluster-20230304114952165900000004", + "name_prefix": "sandbox-cluster-", + "owner_id": "270841321238", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sandbox-cluster" + }, + "tags_all": { + "Name": "sandbox-cluster" + }, + "timeouts": null, + "vpc_id": "vpc-0e355d290b274b86f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group", + "name": "node", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:security-group/sg-090f9234d1797de74", + "description": "EKS node shared security group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow all egress", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-090f9234d1797de74", + "ingress": [ + { + "cidr_blocks": [], + "description": "Cluster API to node 4443/tcp webhook", + "from_port": 4443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 4443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node 8443/tcp webhook", + "from_port": 8443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 8443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node 9443/tcp webhook", + "from_port": 9443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 9443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node groups", + "from_port": 443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node kubelets", + "from_port": 10250, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 10250 + }, + { + "cidr_blocks": [], + "description": "Node to node CoreDNS UDP", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": true, + "to_port": 53 + }, + { + "cidr_blocks": [], + "description": "Node to node CoreDNS", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 53 + }, + { + "cidr_blocks": [], + "description": "Node to node ingress on ephemeral ports", + "from_port": 1025, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 65535 + } + ], + "name": "sandbox-node-20230304114952166500000005", + "name_prefix": "sandbox-node-", + "owner_id": "270841321238", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sandbox-node", + "kubernetes.io/cluster/sandbox": "owned" + }, + "tags_all": { + "Name": "sandbox-node", + "kubernetes.io/cluster/sandbox": "owned" + }, + "timeouts": null, + "vpc_id": "vpc-0e355d290b274b86f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group_rule", + "name": "cluster", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "ingress_nodes_443", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node groups to cluster API", + "from_port": 443, + "id": "sgrule-300810050", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-09f235754a6644b70", + "security_group_rule_id": "sgr-07c3bc53df49bf778", + "self": false, + "source_security_group_id": "sg-090f9234d1797de74", + "timeouts": null, + "to_port": 443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group_rule", + "name": "node", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "egress_all", + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow all egress", + "from_port": 0, + "id": "sgrule-448137771", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "-1", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-05be03167d26e0a1d", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 0, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_443", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node groups", + "from_port": 443, + "id": "sgrule-3576484818", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-095619804ef0e0471", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_4443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 4443/tcp webhook", + "from_port": 4443, + "id": "sgrule-579202635", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0c8a23d8931254f6c", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 4443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_8443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 8443/tcp webhook", + "from_port": 8443, + "id": "sgrule-4170954236", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-063681a64469c3c6f", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 8443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_9443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 9443/tcp webhook", + "from_port": 9443, + "id": "sgrule-2621081143", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-059116a67453a52bf", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 9443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_kubelet", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node kubelets", + "from_port": 10250, + "id": "sgrule-1627960110", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0102c5e9a46aacbad", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 10250, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_nodes_ephemeral", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node ingress on ephemeral ports", + "from_port": 1025, + "id": "sgrule-255916160", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0e5a33446d40fc929", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_self_coredns_tcp", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node CoreDNS", + "from_port": 53, + "id": "sgrule-1747931329", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0b402badd9b2e42a5", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 53, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_self_coredns_udp", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node CoreDNS UDP", + "from_port": 53, + "id": "sgrule-3429954350", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "udp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-009f36d73d7d6b639", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 53, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2560088296", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSNodeAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "ec2.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSNodeAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_eks_node_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "ami_type": "AL2_x86_64", + "arn": "arn:aws:eks:ap-south-1:270841321238:nodegroup/sandbox/node-group-1-20230304145822007900000001/44c35690-c7e0-f41c-cea6-2a3487643bfd", + "capacity_type": "ON_DEMAND", + "cluster_name": "sandbox", + "disk_size": 0, + "force_update_version": null, + "id": "sandbox:node-group-1-20230304145822007900000001", + "instance_types": [ + "t3.large" + ], + "labels": null, + "launch_template": [ + { + "id": "lt-011bb42c0a2a25c62", + "name": "one-20230304120619791100000004", + "version": "1" + } + ], + "node_group_name": "node-group-1-20230304145822007900000001", + "node_group_name_prefix": "node-group-1-", + "node_role_arn": "arn:aws:iam::270841321238:role/node-group-1-eks-node-group-20230304114952164800000001", + "release_version": "1.25.6-20230217", + "remote_access": [], + "resources": [ + { + "autoscaling_groups": [ + { + "name": "eks-node-group-1-20230304145822007900000001-44c35690-c7e0-f41c-cea6-2a3487643bfd" + } + ], + "remote_access_security_group_id": "" + } + ], + "scaling_config": [ + { + "desired_size": 1, + "max_size": 2, + "min_size": 1 + } + ], + "status": "ACTIVE", + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "tags": { + "Name": "node-group-1" + }, + "tags_all": { + "Name": "node-group-1" + }, + "taint": [], + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "update_config": [ + { + "max_unavailable": 0, + "max_unavailable_percentage": 33 + } + ], + "version": "1.25" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozNjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_eks_cluster.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/node-group-1-eks-node-group-20230304114952164800000001", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Sid\":\"EKSNodeAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "EKS managed node group IAM role", + "force_detach_policies": true, + "id": "node-group-1-eks-node-group-20230304114952164800000001", + "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" + ], + "max_session_duration": 3600, + "name": "node-group-1-eks-node-group-20230304114952164800000001", + "name_prefix": "node-group-1-eks-node-group-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LCIHXP5OOR" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-20230304114954831400000006", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-2023030411495527560000000b", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-20230304114954834500000007", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_launch_template", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:launch-template/lt-011bb42c0a2a25c62", + "block_device_mappings": [], + "capacity_reservation_specification": [], + "cpu_options": [], + "credit_specification": [], + "default_version": 1, + "description": "Custom launch template for node-group-1 EKS managed node group", + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_optimized": "", + "elastic_gpu_specifications": [], + "elastic_inference_accelerator": [], + "enclave_options": [], + "hibernation_options": [], + "iam_instance_profile": [], + "id": "lt-011bb42c0a2a25c62", + "image_id": "", + "instance_initiated_shutdown_behavior": "", + "instance_market_options": [], + "instance_requirements": [], + "instance_type": "", + "kernel_id": "", + "key_name": "", + "latest_version": 1, + "license_specification": [], + "maintenance_options": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 2, + "http_tokens": "required", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": [ + { + "enabled": true + } + ], + "name": "one-20230304120619791100000004", + "name_prefix": "one-", + "network_interfaces": [], + "placement": [], + "private_dns_name_options": [], + "ram_disk_id": "", + "security_group_names": [], + "tag_specifications": [ + { + "resource_type": "instance", + "tags": { + "Name": "node-group-1" + } + }, + { + "resource_type": "network-interface", + "tags": { + "Name": "node-group-1" + } + }, + { + "resource_type": "volume", + "tags": { + "Name": "node-group-1" + } + } + ], + "tags": {}, + "tags_all": {}, + "update_default_version": true, + "user_data": "", + "vpc_security_group_ids": [ + "sg-090f9234d1797de74" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2560088296", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSNodeAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "ec2.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSNodeAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_eks_node_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "ami_type": "AL2_x86_64", + "arn": "arn:aws:eks:ap-south-1:270841321238:nodegroup/sandbox/node-group-2-20230304145822007900000003/3ac35690-c7d2-aa21-1f9a-f57875c3e3e5", + "capacity_type": "ON_DEMAND", + "cluster_name": "sandbox", + "disk_size": 0, + "force_update_version": null, + "id": "sandbox:node-group-2-20230304145822007900000003", + "instance_types": [ + "t3.large" + ], + "labels": null, + "launch_template": [ + { + "id": "lt-0f048c1158e570ed4", + "name": "two-20230304120619791000000002", + "version": "1" + } + ], + "node_group_name": "node-group-2-20230304145822007900000003", + "node_group_name_prefix": "node-group-2-", + "node_role_arn": "arn:aws:iam::270841321238:role/node-group-2-eks-node-group-20230304114952165500000002", + "release_version": "1.25.6-20230217", + "remote_access": [], + "resources": [ + { + "autoscaling_groups": [ + { + "name": "eks-node-group-2-20230304145822007900000003-3ac35690-c7d2-aa21-1f9a-f57875c3e3e5" + } + ], + "remote_access_security_group_id": "" + } + ], + "scaling_config": [ + { + "desired_size": 1, + "max_size": 2, + "min_size": 1 + } + ], + "status": "ACTIVE", + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "tags": { + "Name": "node-group-2" + }, + "tags_all": { + "Name": "node-group-2" + }, + "taint": [], + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "update_config": [ + { + "max_unavailable": 0, + "max_unavailable_percentage": 33 + } + ], + "version": "1.25" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozNjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_eks_cluster.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/node-group-2-eks-node-group-20230304114952165500000002", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Sid\":\"EKSNodeAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "EKS managed node group IAM role", + "force_detach_policies": true, + "id": "node-group-2-eks-node-group-20230304114952165500000002", + "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" + ], + "max_session_duration": 3600, + "name": "node-group-2-eks-node-group-20230304114952165500000002", + "name_prefix": "node-group-2-eks-node-group-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LDXQBPWWGR" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-2023030411495510580000000a", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-20230304114955105800000009", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-20230304114955004900000008", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_launch_template", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:launch-template/lt-0f048c1158e570ed4", + "block_device_mappings": [], + "capacity_reservation_specification": [], + "cpu_options": [], + "credit_specification": [], + "default_version": 1, + "description": "Custom launch template for node-group-2 EKS managed node group", + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_optimized": "", + "elastic_gpu_specifications": [], + "elastic_inference_accelerator": [], + "enclave_options": [], + "hibernation_options": [], + "iam_instance_profile": [], + "id": "lt-0f048c1158e570ed4", + "image_id": "", + "instance_initiated_shutdown_behavior": "", + "instance_market_options": [], + "instance_requirements": [], + "instance_type": "", + "kernel_id": "", + "key_name": "", + "latest_version": 1, + "license_specification": [], + "maintenance_options": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 2, + "http_tokens": "required", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": [ + { + "enabled": true + } + ], + "name": "two-20230304120619791000000002", + "name_prefix": "two-", + "network_interfaces": [], + "placement": [], + "private_dns_name_options": [], + "ram_disk_id": "", + "security_group_names": [], + "tag_specifications": [ + { + "resource_type": "instance", + "tags": { + "Name": "node-group-2" + } + }, + { + "resource_type": "network-interface", + "tags": { + "Name": "node-group-2" + } + }, + { + "resource_type": "volume", + "tags": { + "Name": "node-group-2" + } + } + ], + "tags": {}, + "tags_all": {}, + "update_default_version": true, + "user_data": "", + "vpc_security_group_ids": [ + "sg-090f9234d1797de74" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "709841620", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"KeyAdministration\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:Update*\",\n \"kms:UntagResource\",\n \"kms:TagResource\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:Revoke*\",\n \"kms:Put*\",\n \"kms:List*\",\n \"kms:Get*\",\n \"kms:Enable*\",\n \"kms:Disable*\",\n \"kms:Describe*\",\n \"kms:Delete*\",\n \"kms:Create*\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:user/narayana\"\n }\n },\n {\n \"Sid\": \"KeyUsage\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:Encrypt\",\n \"kms:DescribeKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "kms:CancelKeyDeletion", + "kms:Create*", + "kms:Delete*", + "kms:Describe*", + "kms:Disable*", + "kms:Enable*", + "kms:Get*", + "kms:List*", + "kms:Put*", + "kms:Revoke*", + "kms:ScheduleKeyDeletion", + "kms:TagResource", + "kms:UntagResource", + "kms:Update*" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "arn:aws:iam::270841321238:user/narayana" + ], + "type": "AWS" + } + ], + "resources": [ + "*" + ], + "sid": "KeyAdministration" + }, + { + "actions": [ + "kms:Decrypt", + "kms:DescribeKey", + "kms:Encrypt", + "kms:GenerateDataKey*", + "kms:ReEncrypt*" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003" + ], + "type": "AWS" + } + ], + "resources": [ + "*" + ], + "sid": "KeyUsage" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "managed", + "type": "aws_kms_alias", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "cluster", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:kms:ap-south-1:270841321238:alias/eks/sandbox", + "id": "alias/eks/sandbox", + "name": "alias/eks/sandbox", + "name_prefix": "", + "target_key_arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542", + "target_key_id": "590fbffb-59e8-4784-82ed-349dca9ab542" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "managed", + "type": "aws_kms_key", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542", + "bypass_policy_lockout_safety_check": false, + "custom_key_store_id": "", + "customer_master_key_spec": "SYMMETRIC_DEFAULT", + "deletion_window_in_days": null, + "description": "sandbox cluster encryption key", + "enable_key_rotation": true, + "id": "590fbffb-59e8-4784-82ed-349dca9ab542", + "is_enabled": true, + "key_id": "590fbffb-59e8-4784-82ed-349dca9ab542", + "key_usage": "ENCRYPT_DECRYPT", + "multi_region": false, + "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"KeyAdministration\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:Update*\",\n \"kms:UntagResource\",\n \"kms:TagResource\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:Revoke*\",\n \"kms:Put*\",\n \"kms:List*\",\n \"kms:Get*\",\n \"kms:Enable*\",\n \"kms:Disable*\",\n \"kms:Describe*\",\n \"kms:Delete*\",\n \"kms:Create*\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:user/narayana\"\n }\n },\n {\n \"Sid\": \"KeyUsage\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:Encrypt\",\n \"kms:DescribeKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003\"\n }\n }\n ]\n}", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + } + ], + "check_results": null +} diff --git a/kubernetes/terraform.tfstate.backup b/kubernetes/terraform.tfstate.backup new file mode 100644 index 000000000..07acd0ec6 --- /dev/null +++ b/kubernetes/terraform.tfstate.backup @@ -0,0 +1,2316 @@ +{ + "version": 4, + "terraform_version": "1.3.7", + "serial": 47, + "lineage": "c07b700c-e0f1-768a-8aab-840bf497616f", + "outputs": { + "cluster_endpoint": { + "value": "https://F734004459F79E3AB29825DE725F905B.gr7.ap-south-1.eks.amazonaws.com", + "type": "string" + }, + "cluster_name": { + "value": "sandbox", + "type": "string" + }, + "cluster_security_group_id": { + "value": "sg-09f235754a6644b70", + "type": "string" + } + }, + "resources": [ + { + "module": "module.eks", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_eks_addon_version", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "coredns", + "schema_version": 0, + "attributes": { + "addon_name": "coredns", + "id": "coredns", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.9.3-eksbuild.2" + }, + "sensitive_attributes": [] + }, + { + "index_key": "kube-proxy", + "schema_version": 0, + "attributes": { + "addon_name": "kube-proxy", + "id": "kube-proxy", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.25.6-eksbuild.1" + }, + "sensitive_attributes": [] + }, + { + "index_key": "vpc-cni", + "schema_version": 0, + "attributes": { + "addon_name": "vpc-cni", + "id": "vpc-cni", + "kubernetes_version": "1.25", + "most_recent": true, + "version": "v1.12.5-eksbuild.1" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2764486067", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSClusterAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"eks.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "eks.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSClusterAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_iam_session_context", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "arn:aws:iam::270841321238:user/narayana", + "issuer_arn": "arn:aws:iam::270841321238:user/narayana", + "issuer_id": "", + "issuer_name": "", + "session_name": "" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "data", + "type": "tls_certificate", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/tls\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "certificates":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QcwAYYQaHR0cDovL28u\nc3MyLnVzLzAhBggrBgEFBQcwAoYVaHR0cDovL3guc3MyLnVzL3guY2VyMCYGA1Ud\nHwQfMB0wG6AZoBeGFWh0dHA6Ly9zLnNzMi51cy9yLmNybDARBgNVHSAECjAIMAYG\nBFUdIAAwDQYJKoZIhvcNAQELBQADggEBACMd44pXyn3pF3lM8R5V/cxTbj5HD9/G\nVfKyBDbtgB9TxF00KGu+x1X8Z+rLP3+QsjPNG1gQggL4+C/1E2DUBc7xgQjB3ad1\nl08YuW3e95ORCLp+QCztweq7dp4zBncdDQh/U90bZKuCJ/Fp1U1ervShw3WnWEQt\n8jxwmKy6abaVd38PMV4s/KCHOkdp8Hlf9BRUpJVeEXgSYCfOn8J3/yNTd126/+pZ\n59vPr5KW7ySaNRB6nJHGDn2Z9j8Z3/VyVOEVqQdZe4O/Ui5GjLIAZHYcSNPYeehu\nVsyuLAOQ1xk4meTKCRlb/weWsKh/NEnfVqn3sF/tM+2MR7cwA130A4w=\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "OU=Starfield Class 2 Certification Authority,O=Starfield Technologies\\, Inc.,C=US", + "not_after": "2034-06-28T17:39:16Z", + "not_before": "2009-09-02T00:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "12037640545166866303", + "sha1_fingerprint": "9e99a48a9960b14926bb7f3b02e22da2b0ab7280", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Starfield Services Root Certificate Authority - G2,O=Starfield Technologies\\, Inc.,L=Scottsdale,ST=Arizona,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgITBn+USionzfP6wq4rAfkI7rnExjANBgkqhkiG9w0BAQsF\nADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNj\nb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4x\nOzA5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OkMm2xF4gcAevnFWAu5CIw+7bMlPLVvUOTNNWqnkzSW\nMiGpSESrnO09tKpzbeR/FoCJbM8oAxiDR3mjEH4wW6w7sGDgd9QIpuEdfF7Au/ma\neyKdpwAJfqxGF4PcnCZXmTA5YpaP7dreqsXMGz7KQ2hsVxa81Q4gLv7/wmpdLqBK\nbRRYh5TmOTFffHPLkIhqhBGWJ6bt2YFGpn6jcgAKUj6DiAdjd4lpFw85hdKrCEVN\n0FE6/V1dN2RMfjCyVSRCnTawXZwXgWHxyvkQAiSr6w10kY17RSlQOYiypok1JR4U\nakcjMS9cmvqtmg5iUaQqqcT5NJ0hGA==\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "CN=Starfield Services Root Certificate Authority - G2,O=Starfield Technologies\\, Inc.,L=Scottsdale,ST=Arizona,C=US", + "not_after": "2037-12-31T01:00:00Z", + "not_before": "2015-05-25T12:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "144918191876577076464031512351042010504348870", + "sha1_fingerprint": "06b25927c42a721631c1efd9431e648fa62e1e39", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Amazon Root CA 1,O=Amazon,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIEXjCCA0agAwIBAgITB3MSOAudZoijOx7Zv5zNpo4ODzANBgkqhkiG9w0BAQsF\nADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\nb24gUm9vdCBDQSAxMB4XDTIyMDgyMzIyMjEyOFoXDTMwMDgyMzIyMjEyOFowPDEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEcMBoGA1UEAxMTQW1hem9uIFJT\nQSAyMDQ4IE0wMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOtxLKnL\nH4gokjIwr4pXD3i3NyWVVYesZ1yX0yLI2qIUZ2t88Gfa4gMqs1YSXca1R/lnCKeT\nepWSGA+0+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swBy8OFsd34XOW3rjSUtsuafd9AWySa3h\nxRRrwszrzX/WWGm6wyB+f7C4\n-----END CERTIFICATE-----\n", + "is_ca": true, + "issuer": "CN=Amazon Root CA 1,O=Amazon,C=US", + "not_after": "2030-08-23T22:21:28Z", + "not_before": "2022-08-23T22:21:28Z", + "public_key_algorithm": "RSA", + "serial_number": "166129328851546858514271303855646110030630415", + "sha1_fingerprint": "2ad974a775f73cbdbbd8f5ac3a49255fa8fb1f8c", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=Amazon RSA 2048 M01,O=Amazon,C=US", + "version": 3 + }, + { + "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIF7zCCBNegAwIBAgIQCGuHimFTm/To8MqptTs+HzANBgkqhkiG9w0BAQsFADA8\nMQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRwwGgYDVQQDExNBbWF6b24g\nUlNBIDIwNDggTTAxMB4XDTIzMDIwNzAwMDAwMFoXDTIzMDYxMzIzNTk1OVowLDEq\nMCgGA1UEAxMhb2lkYy5la3MuYXAtc291dGgtMS5hbWF6b25hd3MuY29tMIIBIjAN\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4DTQz8/uV3y1flZoOp8heO4D/q6J\n4MY3dhEpnwGuXKzR/LzqboNKpYSCIZSSepx4ZA/FiM4sh2CMfzZ1TH26JbHqfOYI\nOZyACwdVzryYfe2hyqfoBqPkf7gJoTA33Hgh3wb/IzLEiKPb66+YUB8UbWAFTuWz\nQctU4lU44tdNMPmRyUjnJvjH8bwprfT9J8djL1WcEjwu0JIeWakxIohmN1cjVlxC\nTatZ2x8/oIGZ0DgGiGC9XyNuZ4CkN1LBdyul11WiwqraK7q5ott7JIOyaXgi1C/I\nlQlBT74V7TJ8sGtKivqqwZrKcCp0gJ7IVgqRLAnpjEkis+FTsBmOrb78aQIDAQAB\no4IC+zCCAvcwHwYDVR0jBBgwFoAUgbgOY4qJEhjl+js7UJWf5uWQE4UwHQYDVR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bcHFzXZX+V+vU7FOPFxb1Olo6RsvtPdrVB+AxFmka0moVecE/SHrV5yR\nqxfJItxy65vZE0NMqISs36sLyjAcy2Z23kAp8Th2Aik6DtvnvMGnP+XMkMvCKa9j\nBUcDP5zJ7G+KTnLjoB/El2NfQBwPlq3gjSVkejeUn3w8OwPmqK4Xq2rHzJoJR2L5\nl07MKw/G43vpuAU8SXVEl5/5OCdSKAFCXuUzfu86AqdAfgv02sGddYEHhSxuueuB\nnMceTyKoF1BaY+JkUqZmYvmSIfPwmfM/CyOD9M1JfsIexpE=\n-----END CERTIFICATE-----\n", + "is_ca": false, + "issuer": "CN=Amazon RSA 2048 M01,O=Amazon,C=US", + "not_after": "2023-06-13T23:59:59Z", + "not_before": "2023-02-07T00:00:00Z", + "public_key_algorithm": "RSA", + "serial_number": "11192148819046596763763063686849838623", + "sha1_fingerprint": "78c58d52ff18aa0ddd9e6c5ef5cf86a45c112df8", + "signature_algorithm": "SHA256-RSA", + "subject": "CN=oidc.eks.ap-south-1.amazonaws.com", + "version": 3 + } + ], + "content": null, + "id": "3ffb9411f5656cc8b848fe27d98b0fa438ca925b", + "url": "https://oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "verify_chain": true + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_cloudwatch_log_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:logs:ap-south-1:270841321238:log-group:/aws/eks/sandbox/cluster", + "id": "/aws/eks/sandbox/cluster", + "kms_key_id": "", + "name": "/aws/eks/sandbox/cluster", + "name_prefix": "", + "retention_in_days": 90, + "skip_destroy": false, + "tags": null, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_eks_addon", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "coredns", + "schema_version": 0, + "attributes": { + "addon_name": "coredns", + "addon_version": "v1.9.3-eksbuild.2", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/coredns/a8c35643-03c1-7b35-5dc7-4441a4f6f67b", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:coredns", + "modified_at": "2023-03-04T12:08:37Z", + "preserve": true, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": null, + "tags_all": {}, + "timeouts": { + "create": "25m", + "delete": "10m", + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxNTAwMDAwMDAwMDAwLCJkZWxldGUiOjYwMDAwMDAwMDAwMCwidXBkYXRlIjoxMjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + }, + { + "index_key": "kube-proxy", + "schema_version": 0, + "attributes": { + "addon_name": "kube-proxy", + "addon_version": "v1.25.6-eksbuild.1", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/kube-proxy/1ec35643-03c3-58a5-5373-eabac14ac968", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:kube-proxy", + "modified_at": "2023-03-04T12:08:31Z", + "preserve": null, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": null, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + }, + { + "index_key": "vpc-cni", + "schema_version": 0, + "attributes": { + "addon_name": "vpc-cni", + "addon_version": "v1.12.5-eksbuild.1", + "arn": "arn:aws:eks:ap-south-1:270841321238:addon/sandbox/vpc-cni/1cc35643-03c5-681a-454b-3fe351387b91", + "cluster_name": "sandbox", + "configuration_values": "", + "created_at": "2023-03-04T12:08:30Z", + "id": "sandbox:vpc-cni", + "modified_at": "2023-03-04T12:09:02Z", + "preserve": null, + "resolve_conflicts": "OVERWRITE", + "service_account_role_arn": "", + "tags": null, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + } + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjI0MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_eks_addon_version.this", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_eks_node_group.this", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.fargate_profile.aws_eks_fargate_profile.this", + "module.eks.module.fargate_profile.aws_iam_role.this", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.additional", + "module.eks.module.fargate_profile.aws_iam_role_policy_attachment.this", + "module.eks.module.fargate_profile.data.aws_caller_identity.current", + "module.eks.module.fargate_profile.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.fargate_profile.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_group.this", + "module.eks.module.self_managed_node_group.aws_autoscaling_schedule.this", + "module.eks.module.self_managed_node_group.aws_iam_instance_profile.this", + "module.eks.module.self_managed_node_group.aws_iam_role.this", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.additional", + "module.eks.module.self_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.self_managed_node_group.aws_launch_template.this", + "module.eks.module.self_managed_node_group.data.aws_ami.eks_default", + "module.eks.module.self_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.self_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.self_managed_node_group.data.aws_partition.current", + "module.eks.module.self_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_eks_cluster", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { +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QSldPT1JOcllrbmZ6cDVKVEtmNzJUYy9qQmZkVkRDT2svSGxadUduU1ZUbmRIOEV2U0xHN2lpZzhTUGY3c21NCjhMM0czZXpnZzZKeUN0TmdkVWRhdEd2TlhNdlRFcTNuZjNZV3FuMXdQWkh2OWFmMjFMcjQvL0Rrd2xQcTB3enoKSUhtRlExdEpnQ3V5TlZneEZFK1o3MTNGbE83ZHZPYzY3SmIzKzlTb2dJWGtRWWptN2FYUFhRbDBFbVF4WnZ3Tgpra0tTVFZzUEx5MnpGWkEvN0V3SER3VDdqVkJQK0NMZjNLODNBeDM0bXVIb21BUUJGcU1iVTNKbnN3KzlORUhYClVQNDJkR3dJS01GTTBWTjdaUlRodnR1SFhGYjI3Z2NmRXFLbHM3SlArMVVhaVV2Z1JBUi9uUTJWaW55aWt4R1AKaDNjPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==" + } + ], + "cluster_id": null, + "created_at": "2023-03-04 11:56:09.969 +0000 UTC", + "enabled_cluster_log_types": [ + "api", + "audit", + "authenticator" + ], + "encryption_config": [ + { + "provider": [ + { + "key_arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542" + } + ], + "resources": [ + "secrets" + ] + } + ], + "endpoint": "https://F734004459F79E3AB29825DE725F905B.gr7.ap-south-1.eks.amazonaws.com", + "id": "sandbox", + "identity": [ + { + "oidc": [ + { + "issuer": "https://oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B" + } + ] + } + ], + "kubernetes_network_config": [ + { + "ip_family": "ipv4", + "service_ipv4_cidr": "10.100.0.0/16", + "service_ipv6_cidr": "" + } + ], + "name": "sandbox", + "outpost_config": [], + "platform_version": "eks.1", + "role_arn": "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003", + "status": "ACTIVE", + "tags": null, + "tags_all": {}, + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "version": "1.25", + "vpc_config": [ + { + "cluster_security_group_id": "sg-0fec00278c231e819", + "endpoint_private_access": true, + "endpoint_public_access": true, + "public_access_cidrs": [ + "0.0.0.0/0" + ], + "security_group_ids": [ + "sg-09f235754a6644b70" + ], + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "vpc_id": "vpc-0e355d290b274b86f" + } + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozNjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_openid_connect_provider", + "name": "oidc_provider", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:oidc-provider/oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "client_id_list": [ + "sts.amazonaws.com" + ], + "id": "arn:aws:iam::270841321238:oidc-provider/oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B", + "tags": { + "Name": "sandbox-eks-irsa" + }, + "tags_all": { + "Name": "sandbox-eks-irsa" + }, + "thumbprint_list": [ + "9e99a48a9960b14926bb7f3b02e22da2b0ab7280", + "06b25927c42a721631c1efd9431e648fa62e1e39", + "2ad974a775f73cbdbbd8f5ac3a49255fa8fb1f8c", + "78c58d52ff18aa0ddd9e6c5ef5cf86a45c112df8" + ], + "url": "oidc.eks.ap-south-1.amazonaws.com/id/F734004459F79E3AB29825DE725F905B" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.data.tls_certificate.this", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_policy", + "name": "cluster_encryption", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "description": "Cluster encryption policy to allow cluster role to utilize CMK provided", + "id": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "name": "sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "name_prefix": "sandbox-cluster-ClusterEncryption", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"kms:Encrypt\",\"kms:Decrypt\",\"kms:ListGrants\",\"kms:DescribeKey\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542\"}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAT6D3GS4LG766HRCPG", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"eks.amazonaws.com\"},\"Sid\":\"EKSClusterAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "", + "force_detach_policies": true, + "id": "sandbox-cluster-20230304114952165500000003", + "inline_policy": [ + { + "name": "sandbox-cluster", + "policy": "{\"Statement\":[{\"Action\":[\"logs:CreateLogGroup\"],\"Effect\":\"Deny\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}" + } + ], + "managed_policy_arns": [ + "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", + "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController" + ], + "max_session_duration": 3600, + "name": "sandbox-cluster-20230304114952165500000003", + "name_prefix": "sandbox-cluster-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LK7O4I5FNF" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "additional", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "additional", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-20230304115606740600000001", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2FullAccess", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "cluster_encryption", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411501449700000000f", + "policy_arn": "arn:aws:iam::270841321238:policy/sandbox-cluster-ClusterEncryption2023030411501341120000000e", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_policy.cluster_encryption", + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "AmazonEKSClusterPolicy", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411495630710000000d", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "AmazonEKSVPCResourceController", + "schema_version": 0, + "attributes": { + "id": "sandbox-cluster-20230304114952165500000003-2023030411495602080000000c", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController", + "role": "sandbox-cluster-20230304114952165500000003" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group", + "name": "cluster", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:security-group/sg-09f235754a6644b70", + "description": "EKS cluster security group", + "egress": [], + "id": "sg-09f235754a6644b70", + "ingress": [ + { + "cidr_blocks": [], + "description": "Node groups to cluster API", + "from_port": 443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-090f9234d1797de74" + ], + "self": false, + "to_port": 443 + } + ], + "name": "sandbox-cluster-20230304114952165900000004", + "name_prefix": "sandbox-cluster-", + "owner_id": "270841321238", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sandbox-cluster" + }, + "tags_all": { + "Name": "sandbox-cluster" + }, + "timeouts": null, + "vpc_id": "vpc-0e355d290b274b86f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group", + "name": "node", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:security-group/sg-090f9234d1797de74", + "description": "EKS node shared security group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow all egress", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-090f9234d1797de74", + "ingress": [ + { + "cidr_blocks": [], + "description": "Cluster API to node 4443/tcp webhook", + "from_port": 4443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 4443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node 8443/tcp webhook", + "from_port": 8443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 8443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node 9443/tcp webhook", + "from_port": 9443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 9443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node groups", + "from_port": 443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 443 + }, + { + "cidr_blocks": [], + "description": "Cluster API to node kubelets", + "from_port": 10250, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-09f235754a6644b70" + ], + "self": false, + "to_port": 10250 + }, + { + "cidr_blocks": [], + "description": "Node to node CoreDNS UDP", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": true, + "to_port": 53 + }, + { + "cidr_blocks": [], + "description": "Node to node CoreDNS", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 53 + }, + { + "cidr_blocks": [], + "description": "Node to node ingress on ephemeral ports", + "from_port": 1025, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 65535 + } + ], + "name": "sandbox-node-20230304114952166500000005", + "name_prefix": "sandbox-node-", + "owner_id": "270841321238", + "revoke_rules_on_delete": false, + "tags": { + "Name": "sandbox-node", + "kubernetes.io/cluster/sandbox": "owned" + }, + "tags_all": { + "Name": "sandbox-node", + "kubernetes.io/cluster/sandbox": "owned" + }, + "timeouts": null, + "vpc_id": "vpc-0e355d290b274b86f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group_rule", + "name": "cluster", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "ingress_nodes_443", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node groups to cluster API", + "from_port": 443, + "id": "sgrule-300810050", + "ipv6_cidr_blocks": null, + "prefix_list_ids": null, + "protocol": "tcp", + "security_group_id": "sg-09f235754a6644b70", + "security_group_rule_id": "sgr-07c3bc53df49bf778", + "self": false, + "source_security_group_id": "sg-090f9234d1797de74", + "timeouts": null, + "to_port": 443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks", + "mode": "managed", + "type": "aws_security_group_rule", + "name": "node", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "egress_all", + "schema_version": 2, + "attributes": { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow all egress", + "from_port": 0, + "id": "sgrule-448137771", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "-1", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-05be03167d26e0a1d", + "self": false, + "source_security_group_id": null, + "timeouts": null, + "to_port": 0, + "type": "egress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_443", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node groups", + "from_port": 443, + "id": "sgrule-3576484818", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-095619804ef0e0471", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_4443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 4443/tcp webhook", + "from_port": 4443, + "id": "sgrule-579202635", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0c8a23d8931254f6c", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 4443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_8443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 8443/tcp webhook", + "from_port": 8443, + "id": "sgrule-4170954236", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-063681a64469c3c6f", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 8443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_9443_webhook", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node 9443/tcp webhook", + "from_port": 9443, + "id": "sgrule-2621081143", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-059116a67453a52bf", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 9443, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_cluster_kubelet", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Cluster API to node kubelets", + "from_port": 10250, + "id": "sgrule-1627960110", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0102c5e9a46aacbad", + "self": false, + "source_security_group_id": "sg-09f235754a6644b70", + "timeouts": null, + "to_port": 10250, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_nodes_ephemeral", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node ingress on ephemeral ports", + "from_port": 1025, + "id": "sgrule-255916160", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0e5a33446d40fc929", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 65535, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_self_coredns_tcp", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node CoreDNS", + "from_port": 53, + "id": "sgrule-1747931329", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "tcp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-0b402badd9b2e42a5", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 53, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + }, + { + "index_key": "ingress_self_coredns_udp", + "schema_version": 2, + "attributes": { + "cidr_blocks": null, + "description": "Node to node CoreDNS UDP", + "from_port": 53, + "id": "sgrule-3429954350", + "ipv6_cidr_blocks": null, + "prefix_list_ids": [], + "protocol": "udp", + "security_group_id": "sg-090f9234d1797de74", + "security_group_rule_id": "sgr-009f36d73d7d6b639", + "self": true, + "source_security_group_id": null, + "timeouts": null, + "to_port": 53, + "type": "ingress" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2560088296", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSNodeAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "ec2.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSNodeAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_eks_node_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "ami_type": "AL2_x86_64", + "arn": "arn:aws:eks:ap-south-1:270841321238:nodegroup/sandbox/node-group-1-20230304120620310800000008/6ac35642-062d-eb25-9eaf-1fb295512b34", + "capacity_type": "ON_DEMAND", + "cluster_name": "sandbox", + "disk_size": 0, + "force_update_version": null, + "id": "sandbox:node-group-1-20230304120620310800000008", + "instance_types": [ + "t3.small" + ], + "labels": null, + "launch_template": [ + { + "id": "lt-011bb42c0a2a25c62", + "name": "one-20230304120619791100000004", + "version": "1" + } + ], + "node_group_name": "node-group-1-20230304120620310800000008", + "node_group_name_prefix": "node-group-1-", + "node_role_arn": "arn:aws:iam::270841321238:role/node-group-1-eks-node-group-20230304114952164800000001", + "release_version": "1.25.6-20230217", + "remote_access": [], + "resources": [ + { + "autoscaling_groups": [ + { + "name": "eks-node-group-1-20230304120620310800000008-6ac35642-062d-eb25-9eaf-1fb295512b34" + } + ], + "remote_access_security_group_id": "" + } + ], + "scaling_config": [ + { + "desired_size": 1, + "max_size": 2, + "min_size": 1 + } + ], + "status": "ACTIVE", + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "tags": { + "Name": "node-group-1" + }, + "tags_all": { + "Name": "node-group-1" + }, + "taint": [], + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "update_config": [ + { + "max_unavailable": 0, + "max_unavailable_percentage": 33 + } + ], + "version": "1.25" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozNjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/node-group-1-eks-node-group-20230304114952164800000001", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Sid\":\"EKSNodeAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "EKS managed node group IAM role", + "force_detach_policies": true, + "id": "node-group-1-eks-node-group-20230304114952164800000001", + "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" + ], + "max_session_duration": 3600, + "name": "node-group-1-eks-node-group-20230304114952164800000001", + "name_prefix": "node-group-1-eks-node-group-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LCIHXP5OOR" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-20230304114954831400000006", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-2023030411495527560000000b", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "schema_version": 0, + "attributes": { + "id": "node-group-1-eks-node-group-20230304114952164800000001-20230304114954834500000007", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "role": "node-group-1-eks-node-group-20230304114952164800000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"one\"]", + "mode": "managed", + "type": "aws_launch_template", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:launch-template/lt-011bb42c0a2a25c62", + "block_device_mappings": [], + "capacity_reservation_specification": [], + "cpu_options": [], + "credit_specification": [], + "default_version": 1, + "description": "Custom launch template for node-group-1 EKS managed node group", + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_optimized": "", + "elastic_gpu_specifications": [], + "elastic_inference_accelerator": [], + "enclave_options": [], + "hibernation_options": [], + "iam_instance_profile": [], + "id": "lt-011bb42c0a2a25c62", + "image_id": "", + "instance_initiated_shutdown_behavior": "", + "instance_market_options": [], + "instance_requirements": [], + "instance_type": "", + "kernel_id": "", + "key_name": "", + "latest_version": 1, + "license_specification": [], + "maintenance_options": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 2, + "http_tokens": "required", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": [ + { + "enabled": true + } + ], + "name": "one-20230304120619791100000004", + "name_prefix": "one-", + "network_interfaces": [], + "placement": [], + "private_dns_name_options": [], + "ram_disk_id": "", + "security_group_names": null, + "tag_specifications": [ + { + "resource_type": "instance", + "tags": { + "Name": "node-group-1" + } + }, + { + "resource_type": "network-interface", + "tags": { + "Name": "node-group-1" + } + }, + { + "resource_type": "volume", + "tags": { + "Name": "node-group-1" + } + } + ], + "tags": null, + "tags_all": {}, + "update_default_version": true, + "user_data": "", + "vpc_security_group_ids": [ + "sg-090f9234d1797de74" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "2560088296", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"EKSNodeAssumeRole\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "ec2.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "EKSNodeAssumeRole" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_eks_node_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "ami_type": "AL2_x86_64", + "arn": "arn:aws:eks:ap-south-1:270841321238:nodegroup/sandbox/node-group-2-20230304120620310700000006/52c35642-0631-f94a-d448-e633878f9510", + "capacity_type": "ON_DEMAND", + "cluster_name": "sandbox", + "disk_size": 0, + "force_update_version": null, + "id": "sandbox:node-group-2-20230304120620310700000006", + "instance_types": [ + "t3.small" + ], + "labels": null, + "launch_template": [ + { + "id": "lt-0f048c1158e570ed4", + "name": "two-20230304120619791000000002", + "version": "1" + } + ], + "node_group_name": "node-group-2-20230304120620310700000006", + "node_group_name_prefix": "node-group-2-", + "node_role_arn": "arn:aws:iam::270841321238:role/node-group-2-eks-node-group-20230304114952165500000002", + "release_version": "1.25.6-20230217", + "remote_access": [], + "resources": [ + { + "autoscaling_groups": [ + { + "name": "eks-node-group-2-20230304120620310700000006-52c35642-0631-f94a-d448-e633878f9510" + } + ], + "remote_access_security_group_id": "" + } + ], + "scaling_config": [ + { + "desired_size": 1, + "max_size": 2, + "min_size": 1 + } + ], + "status": "ACTIVE", + "subnet_ids": [ + "subnet-03396584886320a18", + "subnet-050c9e36bda3e6b62", + "subnet-0bd81c09f00d0607a" + ], + "tags": { + "Name": "node-group-2" + }, + "tags_all": { + "Name": "node-group-2" + }, + "taint": [], + "timeouts": { + "create": null, + "delete": null, + "update": null + }, + "update_config": [ + { + "max_unavailable": 0, + "max_unavailable_percentage": 33 + } + ], + "version": "1.25" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozNjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.aws_launch_template.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_iam_role", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::270841321238:role/node-group-2-eks-node-group-20230304114952165500000002", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Sid\":\"EKSNodeAssumeRole\"}],\"Version\":\"2012-10-17\"}", + "create_date": "2023-03-04T11:49:53Z", + "description": "EKS managed node group IAM role", + "force_detach_policies": true, + "id": "node-group-2-eks-node-group-20230304114952165500000002", + "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" + ], + "max_session_duration": 3600, + "name": "node-group-2-eks-node-group-20230304114952165500000002", + "name_prefix": "node-group-2-eks-node-group-", + "path": "/", + "permissions_boundary": null, + "tags": {}, + "tags_all": {}, + "unique_id": "AROAT6D3GS4LDXQBPWWGR" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-2023030411495510580000000a", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-20230304114955105800000009", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + }, + { + "index_key": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "schema_version": 0, + "attributes": { + "id": "node-group-2-eks-node-group-20230304114952165500000002-20230304114955004900000008", + "policy_arn": "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy", + "role": "node-group-2-eks-node-group-20230304114952165500000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.module.eks_managed_node_group.aws_iam_role.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_iam_policy_document.assume_role_policy", + "module.eks.module.eks_managed_node_group.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.eks_managed_node_group[\"two\"]", + "mode": "managed", + "type": "aws_launch_template", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:ap-south-1:270841321238:launch-template/lt-0f048c1158e570ed4", + "block_device_mappings": [], + "capacity_reservation_specification": [], + "cpu_options": [], + "credit_specification": [], + "default_version": 1, + "description": "Custom launch template for node-group-2 EKS managed node group", + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_optimized": "", + "elastic_gpu_specifications": [], + "elastic_inference_accelerator": [], + "enclave_options": [], + "hibernation_options": [], + "iam_instance_profile": [], + "id": "lt-0f048c1158e570ed4", + "image_id": "", + "instance_initiated_shutdown_behavior": "", + "instance_market_options": [], + "instance_requirements": [], + "instance_type": "", + "kernel_id": "", + "key_name": "", + "latest_version": 1, + "license_specification": [], + "maintenance_options": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 2, + "http_tokens": "required", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": [ + { + "enabled": true + } + ], + "name": "two-20230304120619791000000002", + "name_prefix": "two-", + "network_interfaces": [], + "placement": [], + "private_dns_name_options": [], + "ram_disk_id": "", + "security_group_names": null, + "tag_specifications": [ + { + "resource_type": "instance", + "tags": { + "Name": "node-group-2" + } + }, + { + "resource_type": "network-interface", + "tags": { + "Name": "node-group-2" + } + }, + { + "resource_type": "volume", + "tags": { + "Name": "node-group-2" + } + } + ], + "tags": null, + "tags_all": {}, + "update_default_version": true, + "user_data": "", + "vpc_security_group_ids": [ + "sg-090f9234d1797de74" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_cloudwatch_log_group.this", + "module.eks.aws_eks_cluster.this", + "module.eks.aws_iam_role.this", + "module.eks.aws_iam_role_policy_attachment.this", + "module.eks.aws_security_group.cluster", + "module.eks.aws_security_group.node", + "module.eks.aws_security_group_rule.cluster", + "module.eks.aws_security_group_rule.node", + "module.eks.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.aws_iam_role_policy_attachment.this", + "module.eks.module.eks_managed_node_group.data.aws_caller_identity.current", + "module.eks.module.eks_managed_node_group.data.aws_partition.current", + "module.eks.module.eks_managed_node_group.module.user_data.data.cloudinit_config.linux_eks_managed_node_group", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "270841321238", + "arn": "arn:aws:iam::270841321238:user/narayana", + "id": "270841321238", + "user_id": "AIDAT6D3GS4LEB7MSOKDY" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_iam_policy_document", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "id": "709841620", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"KeyAdministration\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:Update*\",\n \"kms:UntagResource\",\n \"kms:TagResource\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:Revoke*\",\n \"kms:Put*\",\n \"kms:List*\",\n \"kms:Get*\",\n \"kms:Enable*\",\n \"kms:Disable*\",\n \"kms:Describe*\",\n \"kms:Delete*\",\n \"kms:Create*\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:user/narayana\"\n }\n },\n {\n \"Sid\": \"KeyUsage\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:Encrypt\",\n \"kms:DescribeKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "kms:CancelKeyDeletion", + "kms:Create*", + "kms:Delete*", + "kms:Describe*", + "kms:Disable*", + "kms:Enable*", + "kms:Get*", + "kms:List*", + "kms:Put*", + "kms:Revoke*", + "kms:ScheduleKeyDeletion", + "kms:TagResource", + "kms:UntagResource", + "kms:Update*" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "arn:aws:iam::270841321238:user/narayana" + ], + "type": "AWS" + } + ], + "resources": [ + "*" + ], + "sid": "KeyAdministration" + }, + { + "actions": [ + "kms:Decrypt", + "kms:DescribeKey", + "kms:Encrypt", + "kms:GenerateDataKey*", + "kms:ReEncrypt*" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003" + ], + "type": "AWS" + } + ], + "resources": [ + "*" + ], + "sid": "KeyUsage" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "data", + "type": "aws_partition", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "dns_suffix": "amazonaws.com", + "id": "aws", + "partition": "aws", + "reverse_dns_prefix": "com.amazonaws" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "managed", + "type": "aws_kms_alias", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "cluster", + "schema_version": 0, + "attributes": { + "arn": "arn:aws:kms:ap-south-1:270841321238:alias/eks/sandbox", + "id": "alias/eks/sandbox", + "name": "alias/eks/sandbox", + "name_prefix": "", + "target_key_arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542", + "target_key_id": "590fbffb-59e8-4784-82ed-349dca9ab542" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.aws_kms_external_key.this", + "module.eks.module.kms.aws_kms_key.this", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ] + } + ] + }, + { + "module": "module.eks.module.kms", + "mode": "managed", + "type": "aws_kms_key", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:kms:ap-south-1:270841321238:key/590fbffb-59e8-4784-82ed-349dca9ab542", + "bypass_policy_lockout_safety_check": false, + "custom_key_store_id": "", + "customer_master_key_spec": "SYMMETRIC_DEFAULT", + "deletion_window_in_days": null, + "description": "sandbox cluster encryption key", + "enable_key_rotation": true, + "id": "590fbffb-59e8-4784-82ed-349dca9ab542", + "is_enabled": true, + "key_id": "590fbffb-59e8-4784-82ed-349dca9ab542", + "key_usage": "ENCRYPT_DECRYPT", + "multi_region": false, + "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"KeyAdministration\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:Update*\",\n \"kms:UntagResource\",\n \"kms:TagResource\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:Revoke*\",\n \"kms:Put*\",\n \"kms:List*\",\n \"kms:Get*\",\n \"kms:Enable*\",\n \"kms:Disable*\",\n \"kms:Describe*\",\n \"kms:Delete*\",\n \"kms:Create*\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:user/narayana\"\n }\n },\n {\n \"Sid\": \"KeyUsage\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:Encrypt\",\n \"kms:DescribeKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"*\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::270841321238:role/sandbox-cluster-20230304114952165500000003\"\n }\n }\n ]\n}", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.eks.aws_iam_role.this", + "module.eks.data.aws_caller_identity.current", + "module.eks.data.aws_iam_policy_document.assume_role_policy", + "module.eks.data.aws_iam_session_context.current", + "module.eks.data.aws_partition.current", + "module.eks.module.kms.data.aws_caller_identity.current", + "module.eks.module.kms.data.aws_iam_policy_document.this", + "module.eks.module.kms.data.aws_partition.current" + ], + "create_before_destroy": true + } + ] + } + ], + "check_results": null +} diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 6b00daa8e..0d825b8fc 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -2,7 +2,9 @@ upstream plane { server localhost:80; } -error_log /var/log/nginx/error.log; +error_log /var/log/nginx/error.log; +server_tokens off; +access_log /var/log/nginx/access.log; server { listen 80; @@ -16,7 +18,6 @@ server { location /api/ { proxy_pass http://planebackend:8000/api/; proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; } error_page 500 502 503 504 /50x.html; location = /50x.html {