Added CLI flags to ClearCommand to be able to clear specific profile credential cache directly without any prompt.
Why?
We're working in an AWS environment where we are limited to an 1 hour maximum session duration. Without clearing the credential cache, we're not able to renew the session as the cached credentials are always used. We have defined certain Terminal aliases to quickly switch between different AWS profiles, therefore it would be really helpful, to be able to clear the credential cache within our aliases 🙂
How did you test it?
granted cache clear without any CLI flags defaults to ask the user for the storage and profile, no changes here.
granted cache clear --storage session-credentials --profile [profile_name] skips the prompts and clears the cache entry immediately.
Potential risks
None.
Is patch release candidate?
It does not fix any bug, but it is no breaking change.
What changed?
Added CLI flags to
ClearCommand
to be able to clear specific profile credential cache directly without any prompt.Why?
We're working in an AWS environment where we are limited to an 1 hour maximum session duration. Without clearing the credential cache, we're not able to renew the session as the cached credentials are always used. We have defined certain Terminal aliases to quickly switch between different AWS profiles, therefore it would be really helpful, to be able to clear the credential cache within our aliases 🙂
How did you test it?
granted cache clear
without any CLI flags defaults to ask the user for the storage and profile, no changes here.granted cache clear --storage session-credentials --profile [profile_name]
skips the prompts and clears the cache entry immediately.Potential risks
None.
Is patch release candidate?
It does not fix any bug, but it is no breaking change.