This template use HTTP APIs which may not be available in your Region.
Download aws-ipranges-api.yaml file and login to AWS CloudFormation console. Choose Create Stack, Upload a template file, Choose File, select aws-ipranges-api.yaml and choose Next.
Specify a Stack name and adjust parameters values as desired. Parameters options include
HTTP API
awsServices: Names of AWS service to return by root URL separated by commas. Default isCLOUDFRONT_ORIGIN_FACINGallowNetworks: Source IPv4 prefixes that are authorized to use API separated by commas. Default is0.0.0.0/0allowIPv6Networks: Source IPv6 prefixes that are authorized to use API separated by commas. Default is::/0ipAddressType: IP address type, eitherIPv4orIPv4-and-IPv6. Default isIPv4
Lambda
pythonRuntime: Python runtime version. Default ispython3.14cpuArchitecture: instruction set architecture, eitherx86_64orarm64. Default isarm64
Custom domain name (optional)
This section is optional
customDomainName: custom domain namecertificateArn: ARN of ACM certificatedisableDefaultEndPoint: option to disable default endpoint. This ensures that clients can only access API by using specifiedcustomDomainName
Continue Next with Configure stack options, Review settings, and click Create Stack to launch your stack.
After stack has been successfully created, its status changes to CREATE_COMPLETE.
The following are available in Outputs section
-
apiGatewayInvokeURL(ifdisableDefaultEndPointisNo): URL of formathttps://<api-id>.execute-api.<region>.amazonaws.com -
apiFQDN(ifcustomDomainNameis specified): Create a DNS CNAME or Route 53 alias record of yourcustomDomainNameto this value -
apiGatewayLog: CloudWatch log URL for API Gateway -
lambdaFunctionLog: CLoudWatch log URL for Lambda function -
lambdaAuthorizerFunctionLog: CloudWatch log URL for Lambda authorizer function
Refer to Amazon API Gateway documentation for HTTP API customisation options. Some examples include
- Routing traffic to an Amazon API Gateway API by using your domain name
- Configuring mutual TLS authentication
- Throttling requests to your HTTP API
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.