Skip to content

feat: Migrate to a standard name for adding extra tags#186

Merged
mitch-hamm merged 1 commit intomasterfrom
mh/add-additional_tags
Apr 29, 2026
Merged

feat: Migrate to a standard name for adding extra tags#186
mitch-hamm merged 1 commit intomasterfrom
mh/add-additional_tags

Conversation

@mitch-hamm
Copy link
Copy Markdown
Contributor

@mitch-hamm mitch-hamm commented Apr 27, 2026

Motivation

The existing extra_aws_tags variable in modules/dns-bucket and extra_aws_tags/tags variables in modules/vpc are inconsistently named across our Terraform module suite. This PR standardizes on additional_tags as the canonical variable name for passing extra resource tags, matching the convention already used in the root module (main.tf, variables.tf).

This change supports an ongoing migration where callers can transition from extra_aws_tags/tags to additional_tags without a breaking change.

Modifications

  • modules/dns-bucket/variables.tf: Added additional_tags variable. Deprecated extra_aws_tags. Updated local.tags to merge both (extra_aws_tags then additional_tags, so additional_tags takes precedence during transition).
  • modules/vpc/variables.tf: Added additional_tags variable. Deprecated tags. Added local.tags that merges both.
  • modules/vpc/main.tf: Updated all resource tag expressions to use local.tags instead of var.tags directly.

Backward compatible — existing callers passing extra_aws_tags or tags continue to work unchanged.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

  • Make sure that the change passes the CI checks.

Documentation

  • no-need-doc

    No user-facing behavior changes — variable additions with backward-compatible defaults.

@mitch-hamm mitch-hamm requested a review from a team as a code owner April 27, 2026 23:47
@mitch-hamm mitch-hamm self-assigned this Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@mitch-hamm:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions Bot added doc-info-missing This pr needs to mark a document option in description and removed doc-info-missing This pr needs to mark a document option in description labels Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@mitch-hamm:Thanks for providing doc info!

@github-actions github-actions Bot added the no-need-doc This pr does not need any document label Apr 27, 2026
@mitch-hamm mitch-hamm merged commit 1c0c27d into master Apr 29, 2026
8 checks passed
@mitch-hamm mitch-hamm deleted the mh/add-additional_tags branch April 29, 2026 17:10
mitch-hamm pushed a commit that referenced this pull request Apr 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[4.8.0](v4.7.0...v4.8.0)
(2026-04-29)


### Features

* Migrate to a standard name for adding extra tags
([#186](#186))
([1c0c27d](1c0c27d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-need-doc This pr does not need any document

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants