Skip to content

Commit 8904eb6

Browse files
anegringianlucaborello
authored andcommitted
printing ec2 instance id (gianlucaborello#23)
1 parent a4237b7 commit 8904eb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws-ssh-config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ def main():
158158
hostid = args.prefix + instance_id
159159
hostid = hostid.replace(' ', '_') # get rid of spaces
160160

161+
if instance.id:
162+
print '# id: ' + instance.id
161163
print 'Host ' + hostid
162164
print ' HostName ' + ip_addr
163165

0 commit comments

Comments
 (0)