# 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.
As a novice in terraform I hit a couple of snags trying to run Fleet OSS
in AWS. Want to make it easier for other novices who might want to
deploy Fleet quickly for testing
- 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`
Hi @rfairburn
FWIW: proposing to add shallow clone 😃
Sidequestion: on our side we use Clouflare vs. Route53. Would you be
interested in adding that as documented option in the example/ ? If so,
I could make a PR with that.
Thanks!