Replace static access keys on laptops with SSO backed CLI sessions that expire. AWS IAM Identity Center profiles, gcloud user credentials with impersonation, and tools like aws-vault keep the refresh step interactive. An agent can then use cloud access only while a human session is live.
Read in this order
- OfficialAWS CLI: Configuring IAM Identity Center authenticationStart here: set up expiring SSO sessions in place of static access keys.
- OfficialGoogle Cloud: How Application Default Credentials worksHow Google tools find credentials, so you know what an agent inherits.
- Open source99designs/aws-vaultA tool that keeps AWS keys out of plaintext and issues short sessions.