I deployed an ECS Task to a cluster, using the AWS Fargate launch type. It's currently in the RUNNING
state, and everything looks healthy from the CloudWatch Log stream as well.
Now that it's running, I need to add a second security group to the Task, so that a separate ECS Task can access the service that's exposed by the first task.
When I navigate to the first Task's details, I can see a link to an Elastic Network Interface (ENI). When I click on that, it takes me over to the ENI section of the AWS Management Console. When I choose Actions --> Change Security Groups, add a security group, and click the Save button, I get the following error message.
Failed to change security groups for network interface .
You do not have permission to access the specified resource.
Question ❓
Is it possible to modify the associated security groups with an AWS Fargate Task's ENI?