diff --git a/modules/bastion/README.md b/modules/bastion/README.md index 2f02aa4..587a914 100644 --- a/modules/bastion/README.md +++ b/modules/bastion/README.md @@ -171,10 +171,10 @@ aws ssm terminate-session --session-id Here's a complete example script to retrieve the Bastion instance ID, push the SSH public key, and start a Session Manager session: ```bash -# Asume el rol IAM necesario +# Asume an IAM Role assume_role_output=$(aws sts assume-role --role-arn arn:aws:iam:::role/ --role-session-name AWSCLI-Session) -# Exporta las credenciales temporales del rol asumido +# Export credentials export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' <<< "$assume_role_output") export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' <<< "$assume_role_output") export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' <<< "$assume_role_output")