Skip to content

Commit

Permalink
update label
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Nov 11, 2021
1 parent 8413aac commit 24f4a32
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion modules/worker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,28 @@ module "labels" {
label_order = var.label_order
}

module "labels_sg" {
source = "clouddrove/labels/aws"
version = "0.15.0"

name = var.name
repository = var.repository
environment = var.environment
managedby = var.managedby
delimiter = var.delimiter
attributes = compact(concat(var.attributes, ["workers"]))
label_order = var.label_order
}


#Module : SECURITY GROUP
#Description : Provides a security group resource.
resource "aws_security_group" "default" {
count = var.enabled && var.use_existing_security_group == false ? 1 : 0
name = module.labels.id
description = "Security Group for EKS worker nodes"
vpc_id = var.vpc_id
tags = module.labels.tags
tags = module.labels_sg.tags
}

#Module : SECURITY GROUP RULE EGRESS
Expand Down

0 comments on commit 24f4a32

Please sign in to comment.