Skip to content

feat: Add provider meta user-agent, replacing static tag#148

Merged
bryantbiggs merged 2 commits intoterraform-aws-modules:masterfrom
bryantbiggs:feat/user-agent
Jan 8, 2026
Merged

feat: Add provider meta user-agent, replacing static tag#148
bryantbiggs merged 2 commits intoterraform-aws-modules:masterfrom
bryantbiggs:feat/user-agent

Conversation

@bryantbiggs
Copy link
Copy Markdown
Member

Description

  • Add provider meta user-agent, replacing static tag

Motivation and Context

Breaking Changes

  • No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Comment thread versions.tf
Comment thread wrappers/versions.tf
Comment thread versions.tf Outdated

provider_meta "aws" {
user_agent = [
"github.com/terraform-aws-modules"
Copy link
Copy Markdown

@jar-b jar-b Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm realizing now our user-agent string parsing made some bad assumptions about the format of the "product name" section - namely that forward slashes wouldn't be used.

I've got a fix up for this in hashicorp/aws-sdk-go-base#1401, which I'm planning to get into the next set of provider releases (v6.28.0 for the standard provider, slated for January 7, 2026). This should allow using the fully qualified repository name and version here.

github.com/terraform-aws-modules/terraform-aws-apigateway-v2/vX.Y.Z

Hopefully this enables a more granular view of usage by module in place of the generic organization name across all modules, if desired.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @jar-b - I was rather confused as to why some inputs worked and others didn't 😅

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v6.28.0 of the AWS provider has been released with this fix included.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @jar-b !

@bryantbiggs bryantbiggs merged commit b5c0ee1 into terraform-aws-modules:master Jan 8, 2026
8 checks passed
@bryantbiggs bryantbiggs deleted the feat/user-agent branch January 8, 2026 16:54
antonbabenko pushed a commit that referenced this pull request Jan 8, 2026
## [6.1.0](v6.0.0...v6.1.0) (2026-01-08)

### Features

* Add provider meta user-agent, replacing static tag ([#148](#148)) ([b5c0ee1](b5c0ee1))
@antonbabenko
Copy link
Copy Markdown
Member

This PR is included in version 6.1.0 🎉

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 8, 2026

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop enforcing tag terraform-aws-modules = "apigateway-v2"

3 participants