Glue and EC2: Closing network interfaces not in use

130 Views Asked by At

I have a glue job with a connection to get data from SAS. Everytime it runs, it opens a network interface, and when the job got finished, the network interface continues there. It congests my subnet.

How can I delete these networks interfaces after the job got finished? I have no idea how to do that, even when I search on google I find nothing. May you guys help me, please?

1

There are 1 best solutions below

1
Chubbles On

You will need to ensure that you have the correct policies for the IAM role that's assigned to the Glue job. Specifically, the ec2:DeleteNetworkInterface action will need to be added to the permission set. Then, Glue should be able to clean these up after use.