-
Notifications
You must be signed in to change notification settings - Fork 551
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
r/aws_secret_backend - add support for username_template
#1292
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @DrFaust92! Looking great just a few comments
func testAccAWSSecretBackendConfig_userTemplate(path, accessKey, secretKey, templ string) string { | ||
return fmt.Sprintf(` | ||
resource "vault_aws_secret_backend" "test" { | ||
path = %[1]q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have these as %s
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? in going by golang features. https://zetcode.com/golang/string-format/. using %s is a bit verbose IMO. ill change it if you still want me to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to move this along.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I also meant since we aren't reusing any of the indexed values and %[1]s
is only used in one spot, we can probably just set them all to be %s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Community Note
Closes #1180
Release note for CHANGELOG:
Output from acceptance testing: