From afe9b77dfeaf79dabda77773af166fb6b2477dd9 Mon Sep 17 00:00:00 2001 From: aknysh Date: Sat, 8 Jan 2022 00:40:06 -0500 Subject: [PATCH] Udate Security Group --- docs/migration-0.45.x+.md | 28 ++++++++++++++-------------- main.tf | 3 ++- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/migration-0.45.x+.md b/docs/migration-0.45.x+.md index 00808e32..4976eeb7 100644 --- a/docs/migration-0.45.x+.md +++ b/docs/migration-0.45.x+.md @@ -31,17 +31,17 @@ Some variables have been deprecated (see `variables-deprecated.tf`), don't use t - When using unmanaged worker nodes (e.g. https://github.com/cloudposse/terraform-aws-eks-workers module), provide the worker nodes Security Groups to the cluster using the `allowed_security_group_ids` variable, for example: -```hcl - module "eks_workers" { - source = "cloudposse/eks-workers/aws" - } - - module "eks_workers_2" { - source = "cloudposse/eks-workers/aws" - } - - module "eks_cluster" { - source = "cloudposse/eks-cluster/aws" - allowed_security_group_ids = [module.eks_workers.security_group_id, module.eks_workers_2.security_group_id] - } -``` + ```hcl + module "eks_workers" { + source = "cloudposse/eks-workers/aws" + } + + module "eks_workers_2" { + source = "cloudposse/eks-workers/aws" + } + + module "eks_cluster" { + source = "cloudposse/eks-cluster/aws" + allowed_security_group_ids = [module.eks_workers.security_group_id, module.eks_workers_2.security_group_id] + } + ``` diff --git a/main.tf b/main.tf index 8e3bc782..48ca7bb1 100644 --- a/main.tf +++ b/main.tf @@ -85,7 +85,8 @@ resource "aws_eks_cluster" "default" { aws_security_group_rule.egress, aws_security_group_rule.ingress_cidr_blocks, aws_security_group_rule.ingress_security_groups, - aws_security_group_rule.ingress_workers, aws_cloudwatch_log_group.default + aws_security_group_rule.ingress_workers, + aws_cloudwatch_log_group.default ] }