aws

config

1
2
3
4
5
6
7
8
[default]
aws_access_key_id = xxx
aws_secret_access_key = xxx

[mfa]
source_profile = default
role_arn = arn:aws:iam::xxxxx
mfa_serial = arn:aws:iam::xxxx

gen token with timeout

1
aws sts get-session-token --duration-seconds 8888