我在EC2 Security Gruops上进行了以下设置:
SecurityGroup1 with Inbound IP 1.1.1.1/32
SecurityGroup2 with Inbound SecurityGroup1
SecurityGroup2 with Inbound IP 2.2.2.2/32
SecurityGroup3 with Inbound SecurityGroup1
SecurityGroup3 with Inbound SecurityGroup2
SecurityGroup3 with Inbound IP 3.3.3.3/32
....
是否有一个API可以获取安全组ID并通过所有嵌套的安全组(n级)并将入站IP地址与嵌套组的IP地址一起带回来?
例如:如果我通过SecurityGroup3,它将带来
3.3.3.3/32,
2.2.2.2/32,
1.1.1.1/32
我的环境是Python(boto3)