provider: Add Terraform AWS Provider Version to User-Agent Header #17483
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
provider
Pertains to the provider itself, rather than any interaction with AWS.
Milestone
Community Note
Description
Currently the HTTP
User-Agent
header sent by Terraform AWS Provider requests include the following (plus anything locally added via theTF_APPEND_USER_AGENT
environment variable):It can be very helpful for troubleshooting to also see the Terraform AWS Provider version as well. This should be filled in with the proper version during releases and use a fallback
dev
version for local development. The provider implementation will need to match the current TeamCity release injection pointLD_FLAGS="-s -w -X $PROVIDER_PACKAGE/version.ProviderVersion=$DEPLOYMENT_TARGET_VERSION -X $PROVIDER_PACKAGE/version.ProtocolVersion=$PROTOCOL_VERSION"
(we do not needProtocolVersion
) and will need to be added to thegoreleaser
handling when it eventually supplants TeamCity.The proposed User-Agent product and version is:
Which can be added to
aws/config.go
:The text was updated successfully, but these errors were encountered: