Skip to content
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

Merged
merged 2 commits into from
Feb 25, 2022

Conversation

brad-haynes
Copy link
Contributor

what

  • Context tags added to private and public subnets
  • Context tags added to private and public route tables

why

  • Tags were not being passed from context to the subnets and route tables

references

  • No supporting issues/documentation

@brad-haynes brad-haynes requested review from a team as code owners February 25, 2022 17:13
@brad-haynes brad-haynes requested review from r351574nc3 and Benbentwo and removed request for a team February 25, 2022 17:13
Gowiem
Gowiem previously requested changes Feb 25, 2022
Copy link
Member

@Gowiem Gowiem left a 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
Copy link
Member

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.

Copy link
Contributor Author

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.

@mergify mergify bot dismissed Gowiem’s stale review February 25, 2022 17:36

This Pull Request has been updated, so we're dismissing all reviews.

Copy link
Member

@Gowiem Gowiem left a 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

@Gowiem
Copy link
Member

Gowiem commented Feb 25, 2022

/test all

@Gowiem Gowiem merged commit cdf9ab5 into cloudposse:master Feb 25, 2022
@Gowiem
Copy link
Member

Gowiem commented Feb 25, 2022

@brad-haynes
Copy link
Contributor Author

Thanks, @Gowiem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants