RaJiska / terraform-aws-fck-nat

Terraform module for fck-nat
https://registry.terraform.io/modules/RaJiska/fck-nat/aws/latest
MIT License
74 stars 39 forks source link

Exclude name from passed tags for asg or check that it's not provided #18

Closed vsamofal closed 5 months ago

vsamofal commented 7 months ago
  tag {
    key                 = "Name"
    value               = var.name
    propagate_at_launch = true
  }

  dynamic "tag" {
    for_each = var.tags

    content {
      key                 = tag.key
      value               = tag.value
      propagate_at_launch = false
    }

It will be good to check here that Name tag is not in the provided map and apply it only if it's not there

RaJiska commented 5 months ago

Made tags.Name take precedence over var.name