# 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.
Fleet Terraform Module Example
This code provides some example usage of the Fleet Terraform module, including how some addons can be used to extend functionality. Prior to applying, edit the locals in main.tf to match the settings you want for your Fleet instance including:
- domain name
- route53 zone name (may match the domain name)
- license key (if premium)
- any extra settings to be passed to Fleet via ENV var.
To deploy:
terraform apply
If using a new route53 zone:
- From the output, obtain the NS records created for the zone and add them to the parent DNS zone
Requirements
| Name | Version |
|---|---|
| aws | 6.11.0 |
Providers
| Name | Version |
|---|---|
| aws | 6.11.0 |
| random | 3.7.2 |
| tls | n/a |
Modules
| Name | Source | Version |
|---|---|---|
| acm | terraform-aws-modules/acm/aws | 4.3.1 |
| fleet | github.com/fleetdm/fleet-terraform?depth=1&ref=tf-mod-root-v1.18.1 | n/a |
| mdm | github.com/fleetdm/fleet-terraform/addons/mdm?depth=1&ref=tf-mod-addon-mdm-v2.0.0 | n/a |
| migrations | github.com/fleetdm/fleet-terraform/addons/migrations?depth=1&ref=tf-mod-addon-migrations-v2.1.0 | n/a |
Resources
| Name | Type |
|---|---|
| aws_route53_record.main | resource |
| aws_route53_zone.main | resource |
| aws_secretsmanager_secret_version.scep | resource |
| random_password.challenge | resource |
| tls_private_key.scep_key | resource |
| tls_self_signed_cert.scep_cert | resource |
Inputs
No inputs.
Outputs
| Name | Description |
|---|---|
| route53_name_servers | Ensure that these records are added to the parent DNS zone Delete this output if you switched the route53 zone above to a data source. |