Skip to content

Instantly share code, notes, and snippets.

View Ostico's full-sized avatar

Domenico Lupinetti Ostico

View GitHub Profile
@swithrow
swithrow / instance-name-tag.sh
Last active August 18, 2023 15:16
EC2 Instance Name Tag in the bash prompt.
#!/bin/bash
#
# copy this into /etc/profile.d/instance-name-tag.sh
#
# you will need:
# - curl, jq, and aws cli installed
# - an IAM role that gives the EC2 instance access to describe tags
#