granted icon indicating copy to clipboard operation
granted copied to clipboard

bump awsconfigfile

Open mikesarver opened this issue 9 months ago • 2 comments

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

mikesarver avatar May 01 '24 13:05 mikesarver

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`  

ibottamike avatar May 01 '24 13:05 ibottamike

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

mikesarver avatar May 01 '24 14:05 mikesarver

Thanks @mikesarver!

chrnorm avatar May 03 '24 12:05 chrnorm