Skip to content

Commit 4eaf3cd

Browse files
authored
region and profile were not passed to get the status (#20)
1 parent 5b14e78 commit 4eaf3cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

aws-connect

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Wrapper around AWS session manager for instance access and SSH tunnels
44

55
programname=$0
6-
version=1.0.21
6+
version=1.0.22
77

88
# Defaults
99
action=ssh
@@ -319,6 +319,8 @@ elif [ "${action}" == "document" ]; then
319319
--command-id "${sh_command_id}" \
320320
--details \
321321
--output text \
322+
--region "${aws_region}" \
323+
--profile "${aws_profile}" \
322324
--no-paginate \
323325
--query "CommandInvocations[0].Status")
324326

@@ -345,6 +347,8 @@ elif [ "${action}" == "document" ]; then
345347
--command-id "${sh_command_id}" \
346348
--details \
347349
--output text \
350+
--region "${aws_region}" \
351+
--profile "${aws_profile}" \
348352
--no-paginate \
349353
--query "CommandInvocations[0].Status")
350354

0 commit comments

Comments
 (0)