Skip to content

Commit

Permalink
fix(): fix regression when using -t or -n (tags, Name tag) when conne…
Browse files Browse the repository at this point in the history
…cting to instances (#27)

* fix(): fix regression when using -t or -n (tags, Name tag) when connecting to instances

* update changelog
  • Loading branch information
mkhinda29 authored Nov 22, 2024
1 parent 2857567 commit bf965d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# CHANGELOG

## [1.0.24]
## [1.1.1]

- @qedgardo ssh: filter instances by PingStatus to ensure only get online instances #26
- @mkhinda29 Fix regression when using -t (tags) or -n (Name tag)

## [1.1.0]

- @andreclaro add AWS System Manager support to connect to non-EC2 instances using their Name tag (use of `-m` flag)

Expand Down
6 changes: 3 additions & 3 deletions aws-connect
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Wrapper around AWS session manager for instance access and SSH tunnels

programname=$0
version=1.1.0
version=1.1.1

# Defaults
action=ssh
Expand Down Expand Up @@ -215,8 +215,8 @@ if [ -n "${instance_id}" ] && [ -n "${ssm_name}" ]; then
exit 1
fi

if [ -n "${instance_id}" ]; then
echo "Instance ID: ${instance_id}"
if [ -n "${tag_value}" ]; then
echo "Instance Name Tag: ${tag_value}"
instance_ids=$(get_instances_by_tag "${tag_value}" "${aws_region}" "${aws_profile}")
fi

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-connect",
"version": "1.0.24",
"version": "1.1.1",
"description": "Wrapper script around AWS session manager to establish remote shell connections or SSH tunnels",
"scripts": ["aws-connect"],
"global": "true",
Expand Down

0 comments on commit bf965d7

Please sign in to comment.