{"version":"1.0","type":"rich","title":"Gist df3a4c8340b0fc248e44e04b3a194f60","description":"This script automates the renewal of temporary AWS credentials required when MFA is enabled for AWS CLI authentication. It shows the process of exchanging a one-time MFA token for session credentials by calling the AWS STS `get-session-token` API via the `aws` command-line tool. The code uses Python’s `subprocess.run`, `json.loads`, and `configparser` to parse the command output and update the specified `~/.aws/credentials` file with new access key, secret key, and session token. It takes five command-line arguments—start profile, MFA profile, credentials filename, MFA device ARN, and token—and writes the refreshed credentials to the designated profile section.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-df3a4c8340b0fc248e44e04b3a194f60?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}