개발관련/AWS
AWS에서 사용하고 있는 IP CIDR 확인하는 법
bsc0227
2020. 7. 15. 15:16
반응형
json 파일로 확인 :
linux shell에서 명령어로 확인 :
$ curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="ap-northeast-2") | select(.service=="AMAZON") | .ip_prefix'
json 파싱을 위해서 jq 라이브러리가 필요함.
→ jq 라이브러리가 없다면 아래 명령어로 설치
$ sudo yum install jq
혹은
$ sudo apt-get install jq
참고
[1] AWS IP address ranges notifications -
https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html#subscribe-notifications
[2]AWS Tools for PowerShell -
https://aws.amazon.com/powershell/
[3] Querying the Public IP Address Ranges for AWS -
https://aws.amazon.com/blogs/developer/querying-the-public-ip-address-ranges-for-aws/
반응형