aws-export-credentials
aws-export-credentials copied to clipboard
Forcing update
Any way to force an update after creds are already exported to the cred files?
I have creds with expiration time and needs to be refreshed but the tool doesn't seem to do that if cred files are already present. There is a --refresh option but i think that may be for something else.
If you're using --credentials-file-profile, there's no involvement of expiration, the credentials are always written. --refresh is for the --cache-file option, which is a separate file, not the ~/.aws/credentials.
Are you sure that the file isn't being updated? Or perhaps are the credentials being updated, but the expiration field being left alone? The code only writes the expiration field if it knows the expiration, so if it doesn't have an expiration and it's writing to a section that does, that field wouldn't get updated.
Closing this as I didn't get a response