You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we can provide a custom name for each credential profile, the options for applying a general pattern to them are limited to "role" or "acc-role". It would be nice to have a more general formatting method. For our particular use case, we're looking for backward compatibility with our previous SAML key generation tool, which used the pattern "acc:role" with a colon instead of the hyphen.
Expected Behavior
Should be able to tell gimme-aws-creds to generate AWS credential profiles named "account-name:role-name".
Current Behavior
Unless I specify each profile name individually, "account-name:role-name" is not an option.
Possible Solution
As a quick fix for our use case, accepting 'acc:role' as a near-synonym for 'acc-role' but using the alternate delimiter would be useful. Perhaps it could be generalized to accept anything matching the regex 'acc(.)role' and use the supplied delimiter, but an even more general solution would be to accept some sort of template string, perhaps printf-style with %a for the account and %r for the role.
Context
We have users with dozens to hundreds of roles each, using Terraform code that was written to use hard-coded AWS profile names. Not having to provide a custom name for each profile when assuming it would be very helpful.
Your Environment
App Version used: 2.3.4 with version .1 of the WarnerMedia-local changes
Operating System and version: MacOS Mojave 10.4.6
The text was updated successfully, but these errors were encountered:
While we can provide a custom name for each credential profile, the options for applying a general pattern to them are limited to "role" or "acc-role". It would be nice to have a more general formatting method. For our particular use case, we're looking for backward compatibility with our previous SAML key generation tool, which used the pattern "acc:role" with a colon instead of the hyphen.
Expected Behavior
Should be able to tell gimme-aws-creds to generate AWS credential profiles named "account-name:role-name".
Current Behavior
Unless I specify each profile name individually, "account-name:role-name" is not an option.
Possible Solution
As a quick fix for our use case, accepting 'acc:role' as a near-synonym for 'acc-role' but using the alternate delimiter would be useful. Perhaps it could be generalized to accept anything matching the regex 'acc(.)role' and use the supplied delimiter, but an even more general solution would be to accept some sort of template string, perhaps printf-style with %a for the account and %r for the role.
Context
We have users with dozens to hundreds of roles each, using Terraform code that was written to use hard-coded AWS profile names. Not having to provide a custom name for each profile when assuming it would be very helpful.
Your Environment
The text was updated successfully, but these errors were encountered: