aws login
Also written: aws logout
A CLI command that reuses your console sign-in to give the terminal short-lived credentials. They refresh every 15 minutes for up to 12 hours, after which you log in again. It's a safer alternative to long-lived access keys.