- Adds `var.enable_reencrypt_sweep` to control when lambda functions and
permission resources should be created.
- Adds `var.iam_role_name_prefix` to allow overriding the prefix used
for iam_role naming, when `var.enable_reencrypt_sweep = true`
- Fixes
`FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PUBLIC_KEY_ID`
where the value is currently set to `var.key_group_id` instead of the
required `public_key_id`.
- Updates the cloudfront s3 origin to use the the regional s3 bucket
endpoint over the legacy global s3 bucket endpoint.
- Added variable validations to detect when `key_group_id` is added
without `public_key_id`, vice versa.
Closes: https://github.com/fleetdm/fleet-terraform/issues/149
- Updates `mysql_password_secret_name` for documented monitoring example
in `addons/monitoring/.header.md` & `addons/monitoring/README.md` to
address `inconsistent final plan`
- Pins nested module, `module.cloudfront_software_installers`, to
`5.2.0`
- Adds support for `var.key_group_id` to use an existing Cloudfront Key
Group
- 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
- `k8s/example/main.tf` source update from `tf-mod-k8s-v1.1.3` ->
`tf-mod-k8s-v1.2.0`
- Adds new configurations for `carving` and `softwareinstallers`
configuration sections
# 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
```
* Default value when `var.serverlessv2_scaling_configuration` is not
defined modified from `null` -> `{}`
* Example updated to use git tag:`tf-mod-root-v1.16.2`
- MySQL engine_version bumped from `8.0.mysql_aurora.3.07.1` ->
`8.0.mysql_aurora.3.08.2` in `example/main.tf`
- MySQL engine_version bumped from `8.0.mysql_aurora.3.07.1` ->
`8.0.mysql_aurora.3.08.2` in `variables.tf`
- Root module version in `example/main.tf` bumped to
`tf-mod-root-v1.16.1`
- Bumping saml-auth-proxy docker image from
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
to
`1.16.1@sha256:5be44e1f1232279774be48f6719a6a3ca0b0510bb2459ee6cf9c5015da1ab60c`
- Incrementing version of k8s module to 1.1.2
- Adding `component` label for Fleet deployment
- Adding `component` label selector for Fleet service
- Adding support for `MYSQL_READ_REPLICA` environment variables.
- Can now be configured via `database_read_replica` variable in
`example/main.tf`
- Updating default REDIS URL for example purposes, used in deployment
guide, to fix a REDIS READONLY error.
bumping from
`1.12.0@sha256:ddff17caa00c1aad64d6c7b2e1d5eb93d97321c34d8ad12a25cfd8ce203db723`->
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
Handling use-case where kubernetes platform is openshift and
runAsUser/runAsGroup is not defined by a user; Openshift automatically
assigns runAsUser/runAsGroup.