AWS Codeartifact auth token expires after 12hrs, we need to create new token again.
But how can we automate this authentication token update instead of running the command again manually?
I've tried setting the command in ~/.bashrc
, but this is running everytime the terminal is opened, need to reduce this command executions.
According to this, the maximum is 43200 seconds (12h). Your question says that you already know how to re-new the token, so no advice needed on this.
You could:
I personal like the second method the best.