- Adds support for `CAPACITY_MAX="${MAX_CAPACITY}"`, if scaling up.
`CAPACITY_MAX = 0`, if scaling down.
- Adds support for `--max-capacity` in the `${ADJUST_AUTOSCALING}` logic
# Main terraform
- Modified iam `resource "aws_iam_role_policy_attachment" "extras"` from
`for_each` to `count`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Modified iam `resource "aws_iam_role_policy_attachment"
"execution_extras"`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Added support for internal load balancers to be provisioned.
- Added support for toggling deletion protection on and off on the load
balancer resource.
# Example Module
- Updated example module with changes alb changes.
# Module: Cloudfront Software Installers
- Added a count & tertiary to cloudfront software installer kms key
policy, as it's fed in as an input. In cases where the key had not yet
been created, apply would fail.
- Modified `variable "s3_kms_key_id"` to allow default value `null`
# Module: Logging Destination Firehose
- Added prefix variable to support use-cases where multiple environments
are deployed in the same account
# Module: Osquery Perf
- Added dependency on
`data.aws_secretsmanager_secret_version.enroll_secret` to fix race
condition.
- Added variable to drive custom mail from configuration
- Added resource for MX record to a specific route 53 zone, if custom
mail value from is enabled
- Add SPF record to local.spf_records list, if custom mail value from is
enabled. Current spf resource takes care of
- Creating the record if the value is present
- Destroying the record if the value is not present (when disabled or
variable is not set)
- Added `filter {}` to resource `aws_s3_bucket_lifecycle_configuration`
block(s)
- Added `filter = []` to `module.s3_bucket_for_logs in
addons/logging-alb/main.tf`
- Added `filter = []` to `module.athena-s3-bucket in
addons/logging-alb/main.tf`
---
Addresses the following warnings.
```
No attribute specified when one (and only one) of [rule[0].filter,rule[0].prefix] is required
```
---
```
╷
│ Warning: Invalid Attribute Combination
│
│ with module.logging_alb.module.athena-s3-bucket[0].aws_s3_bucket_lifecycle_configuration.this[0],
│ on .terraform/modules/logging_alb.athena-s3-bucket/main.tf line 219, in resource "aws_s3_bucket_lifecycle_configuration" "this":
│ 219: resource "aws_s3_bucket_lifecycle_configuration" "this" {
│
│ 2 attributes specified when one (and only one) of [rule[0].expiration[0].date,rule[0].expiration[0].days,rule[0].expiration[0].expired_object_delete_marker] is required
```
- Bumping saml-auth-proxy docker image from
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
to
`1.16.1@sha256:5be44e1f1232279774be48f6719a6a3ca0b0510bb2459ee6cf9c5015da1ab60c`
bumping from
`1.12.0@sha256:ddff17caa00c1aad64d6c7b2e1d5eb93d97321c34d8ad12a25cfd8ce203db723`->
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
This PR updates the cron monitoring Lambda code so that if a job runs
multiple times during the monitoring window (typically 1 hour) and
reports errors during several of those runs, the monitor rolls the
errors up into one report. This will cut down on the number of messages
sent via SNS (and reported in Slack).
Example output:
```
Message: Fleet cron 'usage_statistics' (last updated 2025-03-24 17:42:05 +0000 UTC) raised errors in 4 of the previous 14 runs; the most recent is:
["4d33d9dd"]
```
(the `["4d33d9dd"]` is a random value added to a cron_stats row for
testing purposes)