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.
5.5 KiB
5.5 KiB
vulnerability processing addon
This addon adds external vulnerability processing to the Fleet deployment.
Be sure to set FLEET_VULNERABILITIES_DISABLE_SCHEDULE = "true" or use this modules' fleet_extra_environment_variables output to configure
your Fleet server deployment.
Below is an example implementation of the module:
module "vulnerability_processing" {
source = "github.com/fleetdm/fleet-terraform//addons/vuln-processing?ref=main"
customer_prefix = "fleet"
ecs_cluster = module.main.byo-vpc.byo-db.byo-ecs.cluster.cluster_arn
vpc_id = module.main.vpc.vpc_id
fleet_config = {
image = "fleetdm/fleet:v4.31.1"
database = {
password_secret_arn = module.main.byo-vpc.secrets.secret_arns["${var.rds_config.name}-database-password"]
user = module.main.byo-vpc.rds.db_instance_username
address = "${module.main.byo-vpc.rds.db_instance_endpoint}:${module.main.byo-vpc.rds.db_instance_port}"
database = module.main.byo-vpc.rds.db_instance_name
}
extra_environment_variables = {
FLEET_LOGGING_DEBUG = "true"
FLEET_LOGGING_JSON = "true"
}
extra_secrets = {
// FLEET_LICENSE_KEY: "secret_manager_license_key_arn" // note needed for some feature of vuln processing
}
networking = {
subnets = module.main.byo-vpc.byo-db.byo-ecs.service.network_configuration[0].subnets
security_groups = module.main.byo-vpc.byo-db.byo-ecs.service.network_configuration[0].security_groups
}
}
}
Requirements
VPC DNS Hostnames must be enabled for proper communication to EFS mounted volumes.
Providers
| Name | Version |
|---|---|
| aws | n/a |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| aws_ecs_task_definition.vuln-data-stream | resource |
| aws_ecs_task_definition.vuln-processing | resource |
| aws_efs_file_system.vuln | resource |
| aws_efs_mount_target.vuln | resource |
| aws_cloudwatch_event_rule.vuln_processing | resource |
| aws_cloudwatch_event_target.vuln_processing | resource |
| aws_security_group.efs_security_group | resource |
| aws_iam_role.main | resource |
| aws_iam_role_policy_attachment.main | resource |
| aws_iam_role.main | resource |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| customer_prefix | customer prefix to use to namespace all resources | string |
"fleet" |
no |
| ecs_cluster | ECS cluster ARN | string |
n/a | yes |
| vpc_id | n/a | string |
n/a | yes |
| fleet_config | The configuration object for Fleet itself. Fields that default to null will have their respective resources created if not specified. | object |
no | yes |
Outputs
No outputs.