From 4eaf3cdb7f9038dd36dad830816db1e9e565593a Mon Sep 17 00:00:00 2001 From: "Dave \"The Doctor\" North" Date: Fri, 13 May 2022 09:52:01 -0400 Subject: [PATCH] region and profile were not passed to get the status (#20) --- aws-connect | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aws-connect b/aws-connect index 7d0d14a..66f46c1 100755 --- a/aws-connect +++ b/aws-connect @@ -3,7 +3,7 @@ # Wrapper around AWS session manager for instance access and SSH tunnels programname=$0 -version=1.0.21 +version=1.0.22 # Defaults action=ssh @@ -319,6 +319,8 @@ elif [ "${action}" == "document" ]; then --command-id "${sh_command_id}" \ --details \ --output text \ + --region "${aws_region}" \ + --profile "${aws_profile}" \ --no-paginate \ --query "CommandInvocations[0].Status") @@ -345,6 +347,8 @@ elif [ "${action}" == "document" ]; then --command-id "${sh_command_id}" \ --details \ --output text \ + --region "${aws_region}" \ + --profile "${aws_profile}" \ --no-paginate \ --query "CommandInvocations[0].Status")