Skip to content

Auto-generated

This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.

Inspector

Enables Amazon Inspector for this account and region and installs the vulnerability-management suppression rules VM-01 to VM-05 (IS-86). The rules are the one place the criteria are encoded; the half-page standard in docs-internal describes them and this module implements them, so every region and environment reads the same.

When ECR scanning is enabled the module also owns the registry scanning configuration: enhanced scanning with continuous rescans on every repository, which is what Inspector switches the registry to anyway.

Filter names and descriptions are the ones created by hand in the prod console on 2026-09-18 and are kept verbatim so imports plan clean and the console matches the written standard.

Requirements

Name Version
terraform >= 1.6.0
aws ~> 6.0

Providers

Name Version
aws 6.66.0

Modules

No modules.

Resources

Name Type
aws_ecr_registry_scanning_configuration.this resource
aws_inspector2_enabler.this resource
aws_inspector2_filter.vm01_image_not_deployed resource
aws_inspector2_filter.vm02_no_vendor_fix resource
aws_inspector2_filter.vm03_below_threshold resource
aws_inspector2_filter.vm04_untriaged resource
aws_inspector2_filter.vm05_medium_no_exploit resource
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
base_tags Base tags to apply to all resources map(string) {} no
resource_types Inspector scan types to enable: any of EC2, ECR, LAMBDA, LAMBDA_CODE, CODE_REPOSITORY set(string) n/a yes
vm01_excluded_repositories ECR repositories carved out of VM-01 because their images are multi-arch indexes and Inspector's in-use count reads 0 while they run. Empty to apply VM-01 to every repository. list(string) [] no

Outputs

Name Description
enabler_id ID of the Inspector enabler (account IDs and resource types)
filter_arns ARNs of the VM-01..VM-05 suppression filters keyed by rule