跳转至

ip-range

blog

  • How to Automatically Update Your Security Groups for Amazon CloudFront and AWS WAF by Using AWS Lambda

download

wget https://ip-ranges.amazonaws.com/ip-ranges.json

CLI

  • s3

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="cn-northwest-1") | select(.service=="S3")'
    

  • dynamodb

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="cn-northwest-1") | select(.service=="DYNAMODB")'
    

  • lambda

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="cn-northwest-1") | select(.service=="LAMBDA")'
    

  • ec2

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="cn-northwest-1") | select(.service=="EC2")'
    

  • eks

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="cn-northwest-1") | select(.service=="EKS")'
    

  • route 53

    cat ip-ranges.json |jq -r '.prefixes[]  | select(.service=="ROUTE53")'
    
    cat ip-ranges.json |jq -r '.prefixes[]  | select(.region=="us-east-2") | select(.service=="ROUTE53_RESOLVER")'
    

  • api gateway

    cat ip-ranges.json |jq -r '.prefixes[] | select(.region=="us-east-2") | select(.service=="API_GATEWAY")'