Download aws-ipranges-alb.yaml
file and login to AWS CloudFormation console. Choose Create Stack, Upload a template file, Choose File, select aws-ipranges-alb.yaml
and choose Next.
Specify a Stack name and adjust parameters values as desired. Parameters options include
ALB API
awsServices
: Names of AWS service to return by root URL separated by commas. Default isCLOUDFRONT_ORIGIN_FACING
allowIPv4prefix
: Source IPv4 prefix allowed to access ALB. Default is0.0.0.0/0
allowIPv6prefix
: Source IPv6 prefix allowed to access ALB. Default is::/0
Lambda
pythonRuntime
: Python runtime version. Default ispython3.13
cpuArchitecture
: instruction set architecture, eitherx86_64
orarm64
. Default isarm64
Load Balancer
albScheme
: ALB scheme, eitherinternet-facing
orinternal
. An internet-facing load balancer routes requests from clients to targets over the internet. An internal load balancer routes requests to targets using private IP addresses. Default isinternet-facing
Networking
ipAddressType
: IP address type, eitherIPv4
,IPv4-and-IPv6
orIPv6
. Default isIPv4
vpc
: VPC to deploy ALBsubnets
: subnets for ALB. Select at least 2 AZ subnets
HTTPS listener (optional)
certificateArn
: Certificate ARN for HTTPS listener. Leave blank not to create HTTPS listenersecurityPolicy
: Security policy for HTTPS listener. Default isELBSecurityPolicy-TLS13-1-2-2021-06
redirectHTTPtoHTTPS
: option to redirect HTTP requests to HTTPS. Default isNo
sendHSTSheader
: option to send HSTS (HTTP Strict Transport Security) header over HTTPS. Default isYes
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
albDnsName
: ALB domain name. Create a DNS CNAME or Route 53 alias to this value especially if you are using HTTPS listeneralbConsole
: ALB console URLlambdaFunctionLog
: CLoudWatch log URL for Lambda function
Refer to Application Load Balancer documentation for customisation options. Some examples include
- Routing traffic to an ELB load balancer
- Application Load Balancers and AWS WAF
- Mutual authentication with TLS in Application Load Balancer
- Access logs for your Application Load Balancer
- Connection logs for your Application Load Balancer
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.