aws-export-credentials icon indicating copy to clipboard operation
aws-export-credentials copied to clipboard

Forcing update

Open fittyCent opened this issue 3 years ago • 2 comments

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.

fittyCent avatar May 05 '22 19:05 fittyCent

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.

benkehoe avatar May 19 '22 23:05 benkehoe

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.

benkehoe avatar May 19 '22 23:05 benkehoe

Closing this as I didn't get a response

benkehoe avatar Apr 27 '23 22:04 benkehoe