A basic demonstration of using warm pool and lifecycle events to speed up and streamline the scaling of BIG-IP instances in AWS.
HCL
F5 Warm Pool Demo
A basic demonstration of using warm pool and lifecycle events to speed up and streamline the scaling of BIG-IP instances in AWS. The accompanying DevCentral article for this repository can be found here
Once installed, clone down this repository and provision the infrastructure using Terraform by running the following command in the repository's root directory:
$ terraform apply
The template will use PAYG or AWS pay-as-you-go licensing by default. To use BYOL licensing with BIG-IQ, create a Terraform variables file in the repoitory's root directory called terraform.tfvars and populate the file with the following variables:
license_type = "BYOL"
bigiq_server = "(Your BIG-IQ Instance's hostname or IP)"
bigiq_license_pool_name = "(Name of BIG-IQ license pool being used to license BIG-IP)"
bigiq_username_secret_location = "(Username to authenticate into BIG-IQ and get license)"
bigiq_password_secret_location = "(Password to authenticate into BIG-IQ and get license)"
What gets built?
As part of the Terraform template, here is a high level overview of what is provisioned:
VPC with a private and public subnet.
AWS Managed NAT Gateway
EC2 Auto Scaling Group containing 3x F5 BIG-IP VEs. 1 of 3 BIG-IPs is part of the warm pool and stopped by default.
NLB to load balance across Auto Scaling Group instances.
SNS topic to handle Auto Scaling Group lifecycle hooks.
Lambda function to handle and process lifecycle events sent by SNS.
S3 bucket to store F5 AS3 configurations.
A bunch of IAM policies and roles to provide permissions across the various AWS services utilized.
A couple security group to enable network communicate of AWS services and F5 BIG-IP.