crossplane-contrib / provider-jet-aws

AWS Provider for Crossplane that is built with Terrajet.
https://crossplane.io
Apache License 2.0
37 stars 30 forks source link

Append the Crossplane provider name to the Terraform user agent #180

Closed clareliguori closed 2 years ago

clareliguori commented 2 years ago

Signed-off-by: Clare Liguori liguori@amazon.com

Description of your changes

Related to https://github.com/crossplane/provider-aws/issues/1241, this updates the user agent that Terraform uses for AWS requests, so they can be disambiguated in CloudTrail from other Terraform requests that may use the same credentials/role.

I have:

How has this code been tested

Created an ECR repo using the provider and got the following user agent in CloudTrail:

"userAgent": "APN/1.0 HashiCorp/1.0 Terraform/1.0.5 (+https://www.terraform.io) terraform-provider-aws/3.56.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.40.29 (go1.16; linux; amd64) crossplane-provider-jet-aws/v0.4.0-30.g2f6b907c.dirty"
negz commented 2 years ago

Thanks @clareliguori! Glad this was more straightforward than I had feared. 😄