Skip to content

Instantly share code, notes, and snippets.

View pete-caylent's full-sized avatar

Pete Bird pete-caylent

View GitHub Profile
@pete-caylent
pete-caylent / get_eni_from_private_dns.sh
Last active March 21, 2023 23:32
Get AWS ENI Info based on private DNS name
aws ec2 describe-network-interfaces \
--filter Name=private-dns-name,Values=ip-10-32-6-29.us-gov-west-1.compute.internal \
--query 'NetworkInterfaces[].[Attachment.InstanceOwnerId, AvailabilityZone, Description, PrivateIpAddress, SubnetId, VpcId]'
## Result (nested output)
# [
# [
# "amazon-elasticsearch",
# "us-gov-west-1a",
# "ES dev",

Keybase proof

I hereby claim:

  • I am pete-caylent on github.
  • I am pete_caylent (https://keybase.io/pete_caylent) on keybase.
  • I have a public key ASAdCkdHUuwcEdM8FB4AFRvWKXypezZYXeH1BXVzPjmQTQo

To claim this, I am signing this object: