Skip to content

Commit c7e46b7

Browse files
committed
Add support for adding IAM policies to worker nodes
1 parent 1c37aaf commit c7e46b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: main.tf

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ variable "region" {}
33
variable "instance_type" {
44
default = "m5.large"
55
}
6+
variable "workers_additional_policies" {
7+
default = []
8+
}
69

710
data "aws_availability_zones" "available" {}
811

@@ -41,6 +44,8 @@ module "eks" {
4144
subnets = module.vpc.private_subnets
4245
vpc_id = module.vpc.vpc_id
4346

47+
workers_additional_policies = var.workers_additional_policies
48+
4449
worker_groups = [
4550
{
4651
name = "worker-group-1"

0 commit comments

Comments
 (0)