Skip to content

Commit

Permalink
Udate Security Group
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh committed Jan 8, 2022
1 parent eaebce3 commit afe9b77
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
28 changes: 14 additions & 14 deletions docs/migration-0.45.x+.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
```
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
}

Expand Down

0 comments on commit afe9b77

Please sign in to comment.