From 7d85b999fac99a96cfeeaa1db8b69f5e3e2d10d6 Mon Sep 17 00:00:00 2001 From: Ulises Jeremias Date: Thu, 24 Oct 2024 04:07:34 -0300 Subject: [PATCH] Update README.md --- modules/bastion/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")