granted
granted copied to clipboard
bump awsconfigfile
What changed?
Bump awsconfigfile dependency
Why?
Add Sprig Template functions for SectionNameTemplate to allow consistent profile names. (lower case and delimiter instead of spaces)
How did you test it?
Go test
Potential risks
Is patch release candidate?
Link to relevant docs PRs
I'm debugging issue when testing locally
./bin/dgranted sso generate --sso-region us-east-1 --profile-template "{{ replace ` ` `-` .AccountName }}/{{ .RoleName }}" https://yourid.awsapps.com/start
[✘] template: :1: unexpected "~" in operand`
I'm debugging issue when testing locally
./bin/dgranted sso generate --sso-region us-east-1 --profile-template "{{ replace ` ` `-` .AccountName }}/{{ .RoleName }}" https://yourid.awsapps.com/start [✘] template: :1: unexpected "~" in operand`
I see the default behavior is to replace space with -
, so that is not required (and not a sprig function).
The following command works.
./bin/dgranted sso generate --sso-region us-east-1 --profile-template "{{ .AccountName | lower }}/{{ .RoleName }}" https://yourid.awsapps.com/start
Thanks @mikesarver!