feat: add AWS PRM user-agent attribution for partner revenue tracking#23138
Merged
Conversation
eb0e73c to
50b5588
Compare
50b5588 to
c14074e
Compare
Contributor
|
After testing this thoroughly I can confirm that anything provisioned from coder with this Env being injected will add the vendor tag to the user agent every time. |
matifali
approved these changes
Apr 6, 2026
Member
There was a problem hiding this comment.
LGTM. Lets get a review from @greg-the-coder too.
Do we have any validation for this? Can we check this in some AWS partner portal?
Contributor
I have validated this through AWS CloudTrail and it gets appended to all AWS requests from our provisioner properly. We are following up with AWS to check it from their end, but that is the only thing we are waiting on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets
AWS_SDK_UA_APP_IDin the Terraform provisioner environment so that all AWS API calls made during workspace builds include Coder's AWS Partner Revenue Measurement (PRM) attribution in the user-agent header.This enables AWS to attribute resource usage driven by Coder back to us as an AWS partner across all deployments.
How it works
provisionEnv()now unconditionally setsAWS_SDK_UA_APP_ID=APN_1.1/pc_cdfmjwn8i6u8l9fwz8h82e4w3$in the environment passed toterraform planandterraform applyAWS_SDK_UA_APP_IDin their environment (e.g. viacoder.env), we don't override itNotes
-ldflags -Xat build time) to keep it out of the public repo, though it is technically a public identifier.aws-apn-idtags for cost allocation are a separate effort that requires template changes.References