feat: add AWS PRM user-agent attribution for partner revenue tracking#23138
Conversation
eb0e73c to
50b5588
Compare
50b5588 to
c14074e
Compare
|
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. |
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?
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. |
|
For tracking: a manual backport to ESR Related companion #24606 is being backported to all four branches (auto for 2.32/2.33/2.34 via #26468/#26470/#26471, manual for 2.29 via #26474 stacked on #26473). Done by Coder Agents on behalf of @DevelopmentCats per @matifali's Slack request. |
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