【以下的问题经过翻译处理】 一个应用程序需要能够通过区域终端节点(ap-southeast-1)从Amazon S3中上传/下载数据。如果有网络防火墙,则需要允许哪些IP地址?
从AWS服务终端点中,这只是在s3.ap-southeast-1.amazonaws.com上,并且IP地址范围来自https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html?
例如,可以按以下方式下载并过滤IP地址范围:
curl -O https://ip-ranges.amazonaws.com/ip-ranges.json
jq -r '.prefixes[] | select(.region=="ap-southeast-1") | select(.service=="S3") | .ip_prefix' < ip-ranges.json
结果:
18.34.248.0/22
16.12.48.0/21
52.219.32.0/21
18.34.64.0/21
52.219.180.0/22
52.219.40.0/22
52.219.164.0/22
52.219.124.0/22
3.5.146.0/23
52.219.128.0/22
52.219.184.0/21
52.219.132.0/22
3.5.148.0/22
13.213.20.144/28
13.213.20.160/28
仅允许上述IP地址范围是否足够?