load-balancing-alb
Application Load Balancer that routes traffic to your applications.
Access log retention
The load-balancing-alb-data stack, which this template installs, deletes ALB access logs after 90 days. Upgrading
to this version deletes the existing logs that are older than 90 days. To keep logs longer, set the override in the
data stack before you apply. The
load-balancing-alb-data readme shows how.
Variables
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
Name |
Load balancer name, used to name the ALB and related resources. | string |
main |
no |
Internal |
Make the ALB internal, so it is only reachable from inside the VPC. If false, the ALB is internet-facing. | bool |
true |
no |
Dns |
DNS and TLS for the ALB. Enable points <Environment>.oslo.systems (created by the dns template) at the ALB. EnableHttps serves HTTPS on that domain and redirects all HTTP requests to HTTPS; when disabled, the ALB serves plain HTTP instead. EnableIPv6 makes the ALB reachable over IPv6. |
map |
{"Enable": true, "EnableHttps": true, "EnableIPv6": false} |
no |
load-balancing-alb-data
This template also installs the load-balancing-alb-data template into its own stack directory, next to this one.
S3 bucket for the access logs of the load-balancing-alb template. That template installs it.
Access log retention (load-balancing-alb-data)
ALB access logs are deleted from the logs bucket after 90 days, the same as the CloudWatch log groups on the golden
path. To keep them longer or shorter, set access_logs_retention_in_days in config_override.tf:
Warning
Upgrading from a version without this rule deletes the logs that are already older than 90 days. S3 removes them
on its next lifecycle run after you apply. To keep them, set access_logs_retention_in_days before you apply.
The Terraform plan shows only an in-place change to the lifecycle rule of the bucket, with nothing destroyed or replaced. Read the plan before you merge the upgrade, and do not let it automerge.
When logs are forwarded to Datadog (AutoForwardLogs), Datadog keeps a copy for 15 days in dev and 30 days in
prod, and its log archive in S3 keeps one for a year.
Variables (load-balancing-alb-data)
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
AutoForwardLogs |
Automatically forward any CloudWatch log groups or S3 logs created by this template to Datadog if the current account is integrated with Datadog (via the datadog-common template). |
map |
{"Enable": true} |
no |
S3EnforceSecureTransport |
Require HTTPS for all requests to S3 buckets created by this template. | bool |
true |
no |