From 5bedea67f195da28ac5878be8860f597561267ba Mon Sep 17 00:00:00 2001 From: Michal Gulczynski Date: Mon, 16 Dec 2024 00:52:19 +0100 Subject: [PATCH] script fix --- scipt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipt.sh b/scipt.sh index 401cf24..e4597ca 100644 --- a/scipt.sh +++ b/scipt.sh @@ -3,7 +3,7 @@ echo "Pobieranie danych AWS CLI..." AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id) AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key) -AWS_SESSION_TOKEN=$(aws sts get-session-token --duration-seconds 3600 --query 'Credentials.SessionToken' --output text) +AWS_SESSION_TOKEN=$(aws configure get aws_session_token) DEFAULT_VPC=$(aws ec2 describe-vpcs --filters "Name=isDefault,Values=true" --query 'Vpcs[0].VpcId' --output text) if [[ -z "$AWS_ACCESS_KEY_ID" || -z "$AWS_SECRET_ACCESS_KEY" || -z "$AWS_SESSION_TOKEN" || -z "$DEFAULT_VPC" ]]; then