This release adds support for using Sprig template functions in granted sso populate
and granted sso generate
. Here's an example:
granted sso populate --sso-region us-east-1 --prune --prefix gen_ --profile-template '{{ .RoleName | strings.ToLower }}-{{ .AccountName | strings.ToLower }}' https://<snip>.awsapps.com/start
Additionally, this release allows granted sso generate
/granted sso populate
configuration to be persisted in the Granted config file (~/.granted/config
by default). You can now add the following section to your config file:
[SSO.default]
StartURL = "https://d-976708da7d.awsapps.com/start"
SSORegion = "ap-southeast-2"
and then run the following command to generate a ~/.aws/profile
file, without needing to provide additional arguments:
granted sso generate
A huge thankyou to @mikesarver for contributing both of these new improvements.
Additionally, this release fixes some release pipeline issues which caused keychain errors in v0.24 for Intel MacOS (#647). If you're experiencing issues on v0.24 please update to this release.
What's Changed
- bump awsconfigfile by @mikesarver in #648
- for granted sso command, add storing parameters in input config #650 by @mikesarver in #651
New Contributors
- @mikesarver made their first contribution in #648
Full Changelog: v0.24.0...v0.25.0