Instance launch failed. Adding EFS security group to mount targets failed. The maximum number of security groups per interface has been reached.

0

I'm trying to launch a new ec2 instance that automatically mounts an existing EFS file system. I'm using the following settings:

Amazon Linux 2 Kernel 5.10 AMI 2.0.20220719.0 x86_64 HVM gp2
64-bit (x86) ami-0c956e207f9d113d5
c5a.16xlarge
VPC (default)
Subnet: The subnet of the default VPC in eu-central-1a zone.
Create security group
File systems:
EFS
An existing file system in eu-central-1a zone

I have done the same operation before, but now i get an error.

Instance launch failed
The maximum number of security groups per interface has been reached.

Launch log
Initializing requests Succeeded
Creating security groups Succeeded
Creating security group rules Succeeded
Creating EFS security groups Succeeded
Adding ingress rules to EFS security groups Succeeded
Adding egress rules to EFS security groups Succeeded
Adding EFS security group to mount targets Failed

What should I do to fix this?

已提問 2 年前檢視次數 1308 次
2 個答案
0

If you look at Security Groups section in this page - https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html you will see that the maximum security groups per network interface by default is 5. This is however a soft limit and you can apply for it to be increased, as mentioned here - https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html

profile pictureAWS
專家
已回答 2 年前
0

You can check the event for the API call "ModifyMountTargetSecurityGroups" in your AWS CLoudTrail event history and that will tell you the reason for failure.

https://docs.aws.amazon.com/efs/latest/ug/API_ModifyMountTargetSecurityGroups.html

AWS
RRP_AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南