Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: send Terraform version in User-Agent #5621

Merged
merged 1 commit into from
Mar 14, 2016

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Mar 14, 2016

No description provided.

@radeksimko
Copy link
Member

Closes #5020

Do you think it would make sense to make this optionally/partially modifiable via ENV variable, so that other tools using Terraform, like Atlas can also add their version there or you think it's not worth it or there isn't much value in knowing what Atlas version was used per request?

@phinze
Copy link
Contributor Author

phinze commented Mar 14, 2016

Do you think it would make sense to make this optionally/partially modifiable via ENV variable

Sure, wouldn't hurt!

@radeksimko
Copy link
Member

Also as this is now overriding the original value (AWS Go SDK version), do you think there is value in putting it back into the full string?

So that the full User-Agent string would contain:

  1. (optional) Atlas/3rd party tool version that is using Terraform
  2. Terraform version
  3. AWS Go SDK version

I'm not sure if the version is nicely exposed from the SDK though...

@phinze
Copy link
Contributor Author

phinze commented Mar 14, 2016

@radeksimko it's not overriding, current user agent string looks like:

User-Agent: aws-sdk-go/1.1.2 (go1.6; darwin; amd64) terraform/0.6.13 (dev)

@radeksimko
Copy link
Member

it's not overriding

right, because of PushBackNamed... that's good then, so the optional part can be handled the same way I assume?

@jen20
Copy link
Contributor

jen20 commented Mar 14, 2016

Potential bikeshedding, do we want to put terraform/version before aws-sdk-go/version? Otherwise LGTM!

@phinze phinze force-pushed the phinze/aws-user-agent branch 2 times, most recently from f86617e to fff441b Compare March 14, 2016 17:16
@phinze
Copy link
Contributor Author

phinze commented Mar 14, 2016

Ok:

  • Moved to PushFront so TF version shows up before aws-sdk-go version
  • Going to hold off on external customizability since it's slightly trickier than a one-liner and I'd like to land this now.

phinze added a commit that referenced this pull request Mar 14, 2016
provider/aws: send Terraform version in User-Agent
@phinze phinze merged commit d5f82ab into master Mar 14, 2016
@phinze phinze deleted the phinze/aws-user-agent branch March 14, 2016 17:24
@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants