AWS Automation: Assign name tags to Network Interface

Before reading:

Tech stack


Ec2 instance dashboard with instances Name Tag as ‘eni_blog_n’
ENI dashboard with no names
ENI dashboard after running function
EC2 dashboard showing the Instance for which the ENI is associated with

Why is this important?


4 steps to assign Tags to the ENI

Step 1: Initial setup

Step 2: Pull the EC2 Name Tags from Instances

Step 3: Get NIC from EC2 instances

Step 4: Assign EC2 name tag to NIC