0

我的 EC2 安全组有以下设置:

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)

4

0 回答 0