Commit Graph
44 Commits
Author SHA1 Message Date
Jorge Falcon ae8863ce64 Support for internal load balancer and deletion protection, iam policy attachment processing, osquery perf fix, and cloudfront software installers (#105)
# 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.
2025-09-19 16:16:22 -04:00
George Karr 1d8bd3007d Bumping version for 4.73.1 (#107) 2025-09-12 15:22:16 -05:00
Luke Heath ef8dc55e7c Prepare Fleet v4.73.0 (#106) 2025-09-08 19:57:54 -05:00
Robert Fairburn ca6428a6c2 Update readmes for new alb module (#102) 2025-09-02 11:02:13 -05:00
Robert Fairburn 762f716442 Update to alb module 9.17.0 (#98) 2025-09-02 05:27:22 -05:00
George Karr 1dc00c3d54 Bumping version for patch release (#99) 2025-08-29 02:33:10 -05:00
Robert Fairburn 193f6495da Fix athena table creation when s3 prefix doesn't match bucket prefix (#95) 2025-08-22 08:22:37 -05:00
Luke Heath 1e0de9e7ea Version bump for Fleet v4.72.0 (#88) 2025-08-13 19:02:27 -05:00
Jorge Falcon def4b33206 AWS Region Terraform deprecation fixes (#87)
- aws_region Terraform attribute `name` has been deprecated in favor of
`region`, introduced in v6 of the hashicorp/aws provider.
- Updated
  - `addons/byo-firehose-logging-destination/target-account/firehose.tf`
  - `addons/external-vuln-scans/main.tf`
  - `addons/logging-alb/main.tf`
  - `addons/logging-destination-datadog/outputs.tf`
  - `addons/mdmproxy/main.tf`
  - `addons/migrations/main.tf`
  - `addons/saml-auth-proxy/main.tf`
  - `addons/xrays-sidecar/outputs.tf`
  - `byo-vpc/byo-db/byo-ecs/main.tf`
  - `byo-vpc/byo-db/byo-ecs/outputs.tf`
2025-08-11 11:49:01 -04:00
George Karr e90c1faf03 update to 4.71.1 (#84) 2025-08-04 15:51:33 -05:00
Robert Fairburn 22ce3187c3 Update TLS version used in load balancers (#78)
Updated per
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/describe-ssl-policies.html
2025-07-30 14:37:06 -05:00
Jorge Falcon c0d008bbf4 s3 lifecycle updates (#75)
- 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
```
2025-07-29 17:19:19 -04:00
Jorge Falcon 7d8311c83c Fixing default value for var.serverlessv2_scaling_configuration (#82)
* 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`
2025-07-29 15:40:14 -04:00
Robert Fairburn 043ad1aa5b Root module serverless v2 (#77) 2025-07-28 12:05:30 -05:00
Madison G 0702c772cf add serverless db capabilities (#76)
Currently, the byo-vpc module doesn't provide a way to use serverless
options from the rds module. This adds 3 new variables for the rds
options, to make serverless installations possible for rds.
2025-07-28 11:57:17 -05:00
Luke Heath a10377986f Update Fleet version to 4.71.0 (#73) 2025-07-23 16:05:06 -06:00
George Karr ba0007c841 Updating version (#70) 2025-07-09 17:00:05 -05:00
George Karr 6fdce2f1c8 Updating default versions (#64) 2025-06-30 16:29:29 -05:00
Luke Heath 365b051365 Bump Fleet version to v4.69.0 (#56) 2025-06-14 14:55:11 -05:00
Jorge Falcon 770afe9cd3 Adding force destroy = true to software installers bucket resource block (#52)
Adding `force_destroy = true` to allow for the removal of software
installers bucket when terraform attempts to destroy the s3 bucket.
2025-05-27 15:06:55 -04:00
Luke Heath a73a4f5553 Prepare Fleet v4.68.0 (#50) 2025-05-22 12:54:15 -05:00
Jorge Falcon b2d3dcd074 Updating terraform module versions in examples (#49)
Updating terraform module versions in example/main.tf and byo-vpc/exa…
2025-05-22 10:53:35 -04:00
Jorge Falcon 884fc82bd7 Software installers S3 AWS Backup support (#48)
- Adding support for adding tags to `software-installers` bucket
2025-05-22 09:53:27 -04:00
Robert Fairburn 62d232b330 Update examples to use latest module versions (#41) 2025-05-12 10:36:46 -05:00
Robert Fairburn ade69383aa Enable versioning for the software-installers bucket (#39) 2025-05-08 09:23:20 -05:00
Luke Heath 4bf3151146 Prepare Fleet v4.67.3 (#38) 2025-05-06 15:29:24 -05:00
Luke Heath dc10db7770 Bump Fleet to v4.67.2 (#35) 2025-04-28 13:24:00 -05:00
Luke Heath 53df880d0a Bump Fleet to 4.67.1 (#34) 2025-04-26 10:24:57 -05:00
Luke Heath 4b95c466db Update to Fleet v4.67.0 (#33) 2025-04-24 16:11:13 -05:00
Robert Fairburn f3d1a07df3 Update terraform example mdm to match current documentation (#27) 2025-04-10 12:44:08 -05:00
Jorge Falcon effca06ef3 Modifying byo-vpc to allow dynamic read replica count as a variable (#26)
- Added support for dynamic input of RDS replicas
2025-04-10 12:32:56 -05:00
Luke Heath 43ab1d4f43 Bump Fleet version to v4.66.0 (#22) 2025-04-04 16:19:24 -05:00
Robert Fairburn 01271e17c6 Fix tfvalidate and validation errors (#20)
This also removes the broken vuln scans module that never behaved as
expected.
2025-03-27 11:38:26 -05:00
Luke Heath 4d7be48ecf Increment Fleet version to 4.65.0 (#17) 2025-03-14 15:42:36 -05:00
ben 76e55e6a51 Upgrade to latest fleet:v4.64.2 (#16)
Upgrade to latest `fleet:v4.64.2` which fixes `CVE-2025-27509`

cf.
https://github.com/fleetdm/fleet/security/advisories/GHSA-52jx-g6m5-h735
2025-03-14 13:11:43 -05:00
ben 1532cb5e55 Added Shallow cloning (#12)
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!
2025-03-11 02:53:22 -05:00
Robert Fairburn e8154d7bde Cloudfront installers (#13) 2025-03-04 18:09:33 -06:00
Robert Fairburn d2ba0fec3f Fix Examples (#11) 2025-02-20 18:20:55 -06:00
George Karr 6ff853ed7b Bumping latest version to 4.64.1 (#9) 2025-02-20 18:19:44 -06:00
Robert Fairburn be409b73c7 Update terraform docs for changed modules (#7) 2025-02-19 10:19:38 -06:00
Robert Fairburn 758b2a0049 Allow for final snapshot in terraform module (#5) 2025-02-10 19:09:32 -06:00
Robert Fairburn b0dcd44b2d Allow backup retention period to be configured in rds (#6) 2025-02-10 18:45:16 -06:00
Robert Fairburn e6fadb737a Update versions to be latest and work with this repo (#3) 2025-02-09 21:23:16 -06:00
Robert Fairburn f378f62db2 Initial migration (#1)
This will be needed to make the initial tags. Once merged to main, I
will tag with the same module revisions as what exists in the Fleet
repo. We can then test the example module using the new settings.

Once validated, we'll then update the main fleet repo to redirect here
for /terraform and remove everything there. Anything referring to old
tags will still work in-place. Additionally any website references will
be updated as well to reflect these changes.
2025-02-04 10:07:51 -06:00