# aws


05/08/2022, 12:47 PM
Hey, I have created an EC2 Service under ECS and I want my EC2 instance (that runs multiple containers) to have an Elastic IP assigned to it. From what I've read and tried there is no way to retrieve the EC2 instance id under the service/taskDefintion. Is there any way to achieve this without using tags and searching for the same tags? (If this is not possible for any other AWS related reasons I'd also like to know) Thanks