Files
fleet-terraform/addons/external-vuln-scans/README.md
T
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

4.1 KiB

External Vulnerability Scans addon

This addon creates an additional ECS service that only runs a single task, responsible for vuln processing. It receives no web traffic. We utilize current instance checks to make this happen. The advantages of this mechanism:

  1. dedicating processing power to vuln processing 2. ensures task responsible for vuln processing isn't also trying to serve web traffic
  2. caching of vulnerability artifacts/dependencies

Usage is simplified by using the output from the fleet byo-ecs module (../terraform/byo-vpc/byo-db/byo-ecs/README.md)

Requirements

No requirements.

Providers

Name Version
aws 5.11.0

Modules

No modules.

Resources

Name Type
aws_ecs_service.fleet resource
aws_ecs_task_definition.vuln-processing resource
aws_region.current data source

Inputs

Name Description Type Default Required
awslogs_config n/a
object({
group = string
region = string
prefix = string
})
n/a yes
customer_prefix n/a string "fleet" no
ecs_cluster The ecs cluster module that is created by the byo-db module any n/a yes
execution_iam_role_arn The ARN of the fleet execution role, this is necessary to pass role from ecs events any n/a yes
fleet_config The root Fleet config object any n/a yes
fleet_s3_software_installers_config use the output of the byo-vpc module with the same name map(string) n/a yes
fleet_server_private_key_secret_arn The ARN of the secret that stores the Fleet private key string n/a yes
security_groups n/a list(string) n/a yes
subnets n/a list(string) n/a yes
task_role_arn The ARN of the fleet task role, this is necessary to pass role from ecs events any n/a yes
vuln_processing_cpu The amount of CPU to dedicate to the vuln processing command number 1024 no
vuln_processing_memory The amount of memory to dedicate to the vuln processing command number 4096 no
vuln_processing_task_cpu The amount of CPU to dedicate to the vuln processing task including sidecars number 1024 no
vuln_processing_task_memory The amount of memory to dedicate to the vuln processing task including sidecars number 4096 no

Outputs

Name Description
extra_environment_variables n/a
vuln_service_arn n/a