Commit Graph
69 Commits
Author SHA1 Message Date
Jorge Falcon 7b381e0bbb Enforce DENY non-HTTPS requests to s3 buckets (#250)
- Enforces access over HTTPS to all Fleet-terraform created buckets.
- Fixes vpc-flow-logs log retention; now allows configuring the
retention in days.
2026-06-08 18:37:48 -04:00
Jorge Falcon a276eb6a98 Updating Fleet terraform examples (#249) 2026-06-05 15:02:17 -04:00
Jorge Falcon b6bf32755b Support for managing default ACLs (#248) 2026-06-05 14:37:13 -04:00
Jorge Falcon 10aebc2b8a Example and README updates (#224)
Example Updates:
- `../example/main.tf`

README Updates:
- `byo-cloudwatch-log-sharing/target-account-firehose/.header.md`
- `byo-cloudwatch-log-sharing/target-account-firehose/README.md`
- `byo-file-carving/target-account/README.md`
- `byo-firehose-logging-destination/target-account/README.md`
- `logging-destination-datadog/.header.md`
- `logging-destination-datadog/README.md`
- `logging-destination-firehose/README.md`
- `logging-destination-snowflake/.header.md`
- `logging-destination-snowflake/README.md`
- `logging-destination-splunk/.header.md`
- `logging-destination-splunk/README.md`
- `okta-conditional-access/.header.md`
- `okta-conditional-access/README.md`
- `osquery-carve/README.md`
- `../byo-vpc/example/README.md`
- `../byo-vpc/example/main.tf`
- `../example/README.md`
2026-05-05 13:01:21 -04:00
Jorge Falcon 1aabfc3316 Fix resource iam_role_name length limitations in logging-alb module (#221)
- 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`
2026-04-10 09:46:55 -04:00
Jorge Falcon 1deabca4c6 logging-destination-firehose bucket configurations (#213)
- Sets `blocked_encryption_types = ["NONE"]` in
logging-destination-firehose buckets
2026-04-08 16:43:06 -04:00
Jorge Falcon bdc3e4e49c logging-destination-datadog bucket configurations (#214)
- Sets `blocked_encryption_types = ["NONE"]` in
logging-destination-datadog buckets
2026-04-08 16:42:05 -04:00
Jorge Falcon fc2e2c5aa6 logging-destination-splunk bucket configurations (#215)
- Sets `blocked_encryption_types = ["NONE"]` in
logging-destination-splunk buckets
2026-04-08 16:41:54 -04:00
Jorge Falcon 27b7e17b61 logging-destination-snowflake bucket configurations (#216)
- Sets `blocked_encryption_types = ["NONE"]` in
logging-destination-snowflake buckets
2026-04-08 16:41:44 -04:00
Jorge Falcon 86c82786f2 okta-conditional-access bucket configurations (#217)
- Sets `blocked_encryption_types = ["NONE"]` in okta-conditional-access
buckets
2026-04-08 16:41:34 -04:00
Jorge Falcon 86bf5d2ebc byo-file-carving bucket configurations (#218)
- Sets `blocked_encryption_types = ["NONE"]` in byo-file-carving buckets
2026-04-08 16:41:24 -04:00
Jorge Falcon 27df76ee9c byo-firehose-logging-destination bucket configurations (#219)
- Sets `blocked_encryption_types = ["NONE"]` in
byo-firehose-logging-destination buckets
2026-04-08 16:41:13 -04:00
Jorge Falcon 86574cd680 byo-cloudwatch-log-sharing bucket configurations (#220)
- Sets `blocked_encryption_types = ["NONE"]` in
byo-cloudwatch-log-sharing buckets
2026-04-08 16:40:59 -04:00
Jorge Falcon 628a757c8e byo-ecs bucket configuration (#208)
- Sets `blocked_encryption_types = ["NONE"]` in byo-ecs, for
software_installers bucket.
2026-04-08 01:14:25 -04:00
Jorge Falcon 6cbdaaa31c logging-alb bucket configurations (#209)
- Sets `blocked_encryption_types = ["NONE"]` in logging-alb buckets
2026-04-08 01:14:07 -04:00
Jorge Falcon 608057d41d osquery-carve bucket configurations (#211)
- Sets `blocked_encryption_types = ["NONE"]` in osquery-carve buckets
2026-04-08 01:13:53 -04:00
Jorge Falcon 89595f5095 Updates to cloudfront readme for optional:key_group_id and optional:public_key_id (#190)
* Add in-line notes to README for `key_group_id` and `public_key_id`
usage.
2026-03-10 09:09:28 -04:00
Jorge Falcon 4ce91146b4 Fix FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PUBLIC_KEY_ID value and use regional s3 bucket endpoint (#189)
- 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.
2026-03-09 17:15:08 -04:00
Jorge Falcon 2877050841 Module: Monitoring - readme updates (#183) 2026-02-24 10:19:04 -05:00
Jorge Falcon e7a026671d Add TLSConfig support to monitoring module (#182)
- Allows MySQL TLS Config to be set to connect to MySQL over TLS.
Default: `true`
2026-02-23 15:00:44 -05:00
Jorge Falcon af6c5d95de AWS Terraform Example Updates (#175)
Example updates to reference updated modules
- tf-mod-root-v1.20.1
- tf-mod-byo-vpc-v1.22.1
2026-02-10 09:43:50 -05:00
Jorge Falcon f38317b307 Set default alb.enable_edition_protection to disabled (#173)
- Update `alb.enable_deletion_protection` to `false` in:
  - `byo-vpc/byo-db/variables.tf`
  - `byo-vpc/variables.tf`
  - `variables.tf`
2026-02-05 13:30:45 -05:00
Jorge Falcon d9c86aec2a Update k8s documentation and example for 4.79.0 (#167) 2026-01-16 17:06:31 -05:00
Jorge Falcon 3d0e51177e Bump image_tag for k8s terraform to 4.79.0 (#166) 2026-01-16 15:39:27 -05:00
Jorge Falcon f4aa0416ac Update example in addons/monitoring/README.md (#153)
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`
2025-12-16 11:37:27 -05:00
Jorge Falcon 132e9b91d4 Example and logging-destination README updates (#148) 2025-12-03 16:22:38 -05:00
Jorge Falcon 671326e61d Add S3 bucket outputs for logging destination addons (#146)
addons/logging-destination-datadog
- Adds `output.fleet_s3_datadog_failure_config`

addons/logging-destination-firehose
- Adds `output.fleet_s3_firehose_osquery_results_config`
- Adds `output.fleet_s3_firehose_osquery_status_config`
- Adds `output.fleet_s3_firehose_audit_config`

addons/logging-destination-snowflake
- Adds `output.fleet_s3_snowflake_failure_config`
2025-12-03 15:33:31 -05:00
Jorge Falcon b63348a0c7 Update addon/cloudfront-software-installers/README.md (#145) 2025-12-01 19:52:15 -05:00
Jorge Falcon 836a1c7b6a Support for using an existing cloudfront key group with a new distribution (#144)
- 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
2025-12-01 19:29:34 -05:00
Jorge Falcon 8765c8c1e0 Fixes migration script issue with max_capacity value getting set to 1 when scaling up (#135)
- Fixes how MAX_CAPACITY is being used to avoid value getting set to 1,
leading to failure scaling up.
2025-11-10 20:22:05 -05:00
Jorge Falcon cb44f6fd83 Module logging-alb regex update (#134)
- Updates regex in the logging-alb module
2025-11-10 08:31:20 -05:00
Jorge Falcon 7113a2a427 SES Module README updates (#130) 2025-10-31 16:39:44 -04:00
Jorge Falcon a1778b2e3a Updates SES module to support toggling policy creation on and off (#129)
- Addded variable `create_iam_policy` to drive policy creation. Defaults
to `true`
2025-10-31 16:08:41 -04:00
Jorge Falcon 7f6dd3dd38 Terraform example update - tf-mod-addons-migrations-v2.2.0 (#126) 2025-10-27 15:53:49 -04:00
Jorge Falcon c248d36a33 Updating monitoring module version in monitoring README.md (#127) 2025-10-27 11:17:29 -04:00
Jorge Falcon fc25a6954a Add --max-capacity support to migrate.sh (#117)
- 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
2025-10-24 12:47:04 -04:00
Jorge Falcon 3a48d9a93f Bumping tf k8s example source module reference to 1.2.0 (#125)
- `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
2025-10-22 16:27:09 -04:00
Jorge Falcon 569b155b6e Terraform updates for Fleet k8s deployment (#123)
* Adds region support for `carving` bucket configuration
* Adds support for `software installers` bucket configuration
2025-10-22 16:05:31 -04:00
Jorge Falcon 53d2a07140 Cron ignore list to monitoring module (#122)
- Updates monitoring module to use aws sdk v2
- Adds support for suppressing cron monitoring alerts
2025-10-20 13:41:39 -04:00
Jorge Falcon 8e81115f9b alb http listener rules processing fix (#115)
- Added changes to handle additional conditions `host_headers`,
`path_patterns`, `http_request_methods`, `source_ips`, `http_headers`,
and `query_strings`
2025-10-02 21:52:38 -04:00
Jorge Falcon 411fc58f1d Correcting example/main.tf to fix issues with terraform apply extra_secrets (#116)
* Updated README.md
* Fixed incorrect function on`example/main.tfL107` - `concat()` ->
`merge()`
2025-10-01 22:17:07 -04:00
Jorge Falcon 4346baaea6 Removed unused data block for redis subnets in byo-vpc (#109)
- Removed unused data block in byo-vpc
- Updated fleet-terraform example
2025-09-24 19:34:07 -04:00
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
Jorge Falcon 3ee9106631 Force destroy support for firehose log destination (#104)
- Added `force_destroy = true` to firehose log destination s3 buckets
2025-09-04 18:46:35 -04:00
Jorge Falcon a4647fb2d4 Duplicate filter {}'s removal on firehose logging destination (#100)
- Removing duplicate `filter {}` from
`addons/logging-destination-firehose/main.tf`
2025-08-29 17:21:42 -04:00
Jorge Falcon d4b1804783 Fix regex pattern causing logs to not display (#97)
- Fixed issue where status code `505` logs were not displaying in Athena
2025-08-26 12:36:56 -04:00
Jorge Falcon e9f841e1b2 Updating saml-auth-proxy image to 1.17.3 (#90)
- Updating variables.tf `saml_auth_proxy_image = 1.16.1` ->
`saml_auth_proxy_image = 1.17.3`
2025-08-20 11:14:06 -04: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
Jorge Falcon 0166b67f74 Add custom domain support to SES module (#86)
- 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)
2025-08-07 17:13:18 -04: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
Jorge Falcon c6a59df7f4 Engine version from 8.0.mysql_aurora.3.07.1 -> 8.0.mysql_aurora.3.08.2 (#80)
- 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`
2025-07-28 16:16:05 -04:00
Jorge Falcon 588cea011c Incrementing k8s/example/main.tf module reference to 1.1.3 (#66) 2025-07-01 10:14:08 -04:00
Jorge Falcon d4293ab7d0 Fixing issue with k8s database_read_replica failing on tfvalidate (#65)
- Added optional to nested tls object in `database_read_replica`
variable
2025-07-01 10:01:45 -04:00
Jorge Falcon 33ebcf7abc Updating saml-auth-proxy image to 1.16.1 (#61)
- Bumping saml-auth-proxy docker image from
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
to
`1.16.1@sha256:5be44e1f1232279774be48f6719a6a3ca0b0510bb2459ee6cf9c5015da1ab60c`
2025-06-27 09:01:36 -04:00
Jorge Falcon 8befe6f9f5 Go update to 1.24.4 (#62)
- Incrementing go version in monitoring module from 1.24.2 -> 1.24.4
2025-06-26 17:35:05 -04:00
Jorge Falcon 33ca8596ee Fleet k8s Terraform updates (#58)
- 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.
2025-06-18 15:42:57 -04:00
Jorge Falcon 3b09101be9 Bumping up the default version of the saml_auth_proxy_image (#54)
bumping from
`1.12.0@sha256:ddff17caa00c1aad64d6c7b2e1d5eb93d97321c34d8ad12a25cfd8ce203db723`->
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
2025-06-06 16:40:36 -04:00
Jorge Falcon 2b8b75199a Terraform k8s deployments - Handle runAsUser/runAsGroup/run_as_non_root when not defined for (#53)
Handling use-case where kubernetes platform is openshift and
runAsUser/runAsGroup is not defined by a user; Openshift automatically
assigns runAsUser/runAsGroup.
2025-05-30 10:05:42 -04: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
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
Jorge Falcon 97bf28adde Updating go versions to 1.24.2 (#45) 2025-05-20 10:11:57 -04:00
Jorge Falcon 034d06520b Terraform k8s example updates (#43) 2025-05-15 17:48:59 -04:00
Jorge Falcon 1299f441de Monitoring addon - broken links and documentation updates (#42)
- Updated broken links
- Updated formatting of some wording
- Added note around modifying example for use with `module.fleet` vs
`module.main`
2025-05-15 11:43:04 -04:00
Jorge Falcon 43ed50864d Fleet k8s deployment support with Terraform (#40)
- Converted current [helm
charts](https://github.com/fleetdm/fleet/tree/main/charts/fleet) to
Terraform
- Generated deployment example
- Generated documentation in README for example deployment
2025-05-09 11:28:56 -04: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
Jorge Falcon f23200d567 Update tfvalidate.yml (#25) 2025-04-07 09:31:00 -05:00
Jorge Falcon ad6a0814c2 tfvalidate logic fixes (#23)
Fixing tfvalidate logic to only run
- on pull_request or push and
- only run against directories that git diff detects changes against
2025-04-04 15:12:15 -05:00