Minimum IAM permissions required to attach SG to EC2 Instance?

84 Views Asked by At

When attempting to attach a security group to one of my ec2 instances, I am experiencing a permission-related error:

ERROR - Failed to attach security group to EC2 instance due to the error
software.amazon.awssdk.services.ec2.model.Ec2Exception: You are not authorized to perform this operation. (Service: Ec2, Status Code: 403)

I want to maintain the principle of least privilege in my environment, but I cannot find any documentation from AWS around what the minimum permissions required for attaching SGs to EC2s.

Does anyone have any resources surrounding this matter or perhaps know the answer?

0

There are 0 best solutions below