-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Context tags for subnets and routetables #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brad-haynes this is good stuff -- Thanks for adding it. One request, but otherwise we'll get this merged.
private.tf
Outdated
@@ -18,7 +18,7 @@ resource "aws_subnet" "private" { | |||
cidr_block = cidrsubnet(var.cidr_block, ceil(log(var.max_subnets, 2)), count.index) | |||
map_public_ip_on_launch = var.map_public_ip_on_launch_enabled | |||
|
|||
tags = merge({ | |||
tags = merge(module.private_label.tags, { | |||
"Name" = "${module.private_label.id}${module.this.delimiter}${element(var.subnet_names, count.index)}" | |||
"Stage" = module.private_label.stage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the Stage + Namespace entries from the override map? They're unnecessary now that we're using the top level tags as the base map. Please remove them from all of the instances that you've updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually just doing that.
This Pull Request has been updated, so we're dismissing all reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff @brad-haynes
/test all |
@brad-haynes Thanks for the contribution! Released as https://github.com/cloudposse/terraform-aws-named-subnets/releases/tag/0.12.0 |
Thanks, @Gowiem! |
what
why
references