Repository scan
forms-terraform
cds-snc/forms-terraform · branch main · scanned 25 Jun 2026 · 607 resources
High 2
High Expensive NAT Gateway
NAT Gateways are expensive managed services. Ensure they are strictly necessary.
How to fix
Consider using VPC Endpoints, NAT Instances for non-critical workloads, or share a single NAT Gateway across multiple subnets.
Where
Medium 186
Medium Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Where
- ../../aws/alarms/lambda.tf:6
- ../../aws/cognito/lambda.tf:5
- ../../aws/cognito/lambda.tf:52
- ../../aws/lambdas/api_end_to_end_test.tf:5
- ../../aws/lambdas/audit_log.tf:6
- ../../aws/lambdas/audit_logs_archiver.tf:1
- ../../aws/lambdas/file_upload_cleanup.tf:5
- ../../aws/lambdas/file_upload_processor.tf:6
- ../../aws/lambdas/form_archiver.tf:5
- ../../aws/lambdas/nagware.tf:5
- ../../aws/lambdas/reliability.tf:1
- ../../aws/lambdas/reliability_dlq_consumer.tf:6
- ../../aws/lambdas/response_archiver.tf:6
- ../../aws/lambdas/submission.tf:11
- ../../aws/lambdas/vault_integrity.tf:5
- ../../aws/load_testing/lambda.tf:5
- ../../aws/vpn/lambda.tf:90
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
- ../../aws/alarms/lambda.tf:6
- ../../aws/cognito/lambda.tf:5
- ../../aws/cognito/lambda.tf:52
- ../../aws/lambdas/api_end_to_end_test.tf:5
- ../../aws/lambdas/audit_log.tf:6
- ../../aws/lambdas/audit_logs_archiver.tf:1
- ../../aws/lambdas/file_upload_cleanup.tf:5
- ../../aws/lambdas/file_upload_processor.tf:6
- ../../aws/lambdas/form_archiver.tf:5
- ../../aws/lambdas/nagware.tf:5
- ../../aws/lambdas/reliability.tf:1
- ../../aws/lambdas/reliability_dlq_consumer.tf:6
- ../../aws/lambdas/response_archiver.tf:6
- ../../aws/lambdas/submission.tf:11
- ../../aws/lambdas/vault_integrity.tf:5
- ../../aws/load_testing/lambda.tf:5
- ../../aws/vpn/lambda.tf:90
Medium Ensure that HEALTHCHECK instructions have been added to container images
Ensure that HEALTHCHECK instructions have been added to container images
Where
- ../../lambda-code/reliability-dlq-consumer/Dockerfile:1
- ../../lambda-code/cognito-email-sender/Dockerfile:1
- ../../lambda-code/load-testing/Dockerfile:1
- ../../lambda-code/cognito-pre-sign-up/Dockerfile:1
- ../../lambda-code/notify-slack/Dockerfile:1
- ../../lambda-code/vault-integrity/Dockerfile:1
- ../../lambda-code/file-upload-processor/Dockerfile:1
- ../../lambda-code/response-archiver/Dockerfile:1
- ../../lambda-code/nagware/Dockerfile:1
- ../../lambda-code/audit-logs-archiver/Dockerfile:1
- ../../lambda-code/submission/Dockerfile:1
- ../../lambda-code/audit-logs/Dockerfile:1
- ../../idp/docker/Dockerfile:1
- ../../lambda-code/reliability/Dockerfile:1
- ../../lambda-code/api-end-to-end-test/Dockerfile:1
- ../../lambda-code/file-upload-cleanup/Dockerfile:1
- ../../lambda-code/form-archiver/Dockerfile:1
Medium Ensure that a user for the container has been created
Ensure that a user for the container has been created
Where
- ../../lambda-code/reliability-dlq-consumer/Dockerfile:1
- ../../lambda-code/cognito-email-sender/Dockerfile:1
- ../../lambda-code/load-testing/Dockerfile:1
- ../../lambda-code/cognito-pre-sign-up/Dockerfile:1
- ../../lambda-code/notify-slack/Dockerfile:1
- ../../lambda-code/vault-integrity/Dockerfile:1
- ../../lambda-code/file-upload-processor/Dockerfile:1
- ../../lambda-code/response-archiver/Dockerfile:1
- ../../lambda-code/nagware/Dockerfile:1
- ../../lambda-code/audit-logs-archiver/Dockerfile:1
- ../../lambda-code/submission/Dockerfile:1
- ../../lambda-code/audit-logs/Dockerfile:1
- ../../idp/docker/Dockerfile:1
- ../../lambda-code/reliability/Dockerfile:1
- ../../lambda-code/api-end-to-end-test/Dockerfile:1
- ../../lambda-code/file-upload-cleanup/Dockerfile:1
- ../../lambda-code/form-archiver/Dockerfile:1
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../aws/network/security_group_api_end_to_end_test.tf:1
- ../../aws/network/security_group_code_build.tf:1
- ../../aws/network/security_groups_api.tf:2
- ../../aws/network/security_groups_app.tf:9
- ../../aws/network/security_groups_app.tf:57
- ../../aws/network/security_groups_app.tf:98
- ../../aws/network/security_groups_app.tf:175
- ../../aws/network/security_groups_app.tf:195
- ../../aws/network/security_groups_glue.tf:2
- ../../aws/network/security_groups_idp.tf:2
- ../../aws/network/security_groups_idp.tf:51
- ../../aws/network/security_groups_idp.tf:91
- ../../aws/network/security_groups_lambda.tf:4
- ../../aws/network/security_groups_lambda.tf:77
- ../../aws/pr_review/security_groups.tf:5
Medium Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Where
- ../../aws/alarms/lambda.tf:6
- ../../aws/cognito/lambda.tf:5
- ../../aws/cognito/lambda.tf:52
- ../../aws/lambdas/api_end_to_end_test.tf:5
- ../../aws/lambdas/audit_logs_archiver.tf:1
- ../../aws/lambdas/file_upload_cleanup.tf:5
- ../../aws/lambdas/form_archiver.tf:5
- ../../aws/lambdas/nagware.tf:5
- ../../aws/lambdas/reliability_dlq_consumer.tf:6
- ../../aws/lambdas/response_archiver.tf:6
- ../../aws/lambdas/vault_integrity.tf:5
- ../../aws/load_testing/lambda.tf:5
- ../../aws/vpn/lambda.tf:90
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
- ../../aws/alarms/lambda.tf:6
- ../../aws/cognito/lambda.tf:5
- ../../aws/lambdas/api_end_to_end_test.tf:5
- ../../aws/lambdas/audit_log.tf:6
- ../../aws/lambdas/audit_logs_archiver.tf:1
- ../../aws/lambdas/file_upload_cleanup.tf:5
- ../../aws/lambdas/file_upload_processor.tf:6
- ../../aws/lambdas/form_archiver.tf:5
- ../../aws/lambdas/nagware.tf:5
- ../../aws/lambdas/reliability.tf:1
- ../../aws/lambdas/reliability_dlq_consumer.tf:6
- ../../aws/lambdas/response_archiver.tf:6
- ../../aws/lambdas/submission.tf:11
Medium Ensure that Secrets Manager secret is encrypted using KMS CMK
Ensure that Secrets Manager secret is encrypted using KMS CMK
Where
- ../../aws/rds/secrets.tf:5
- ../../aws/rds/secrets.tf:19
- ../../aws/secrets/secrets.tf:4
- ../../aws/secrets/secrets.tf:17
- ../../aws/secrets/secrets.tf:30
- ../../aws/secrets/secrets.tf:44
- ../../aws/secrets/secrets.tf:57
- ../../aws/secrets/secrets.tf:70
- ../../aws/secrets/secrets.tf:83
- ../../aws/secrets/secrets.tf:96
- ../../aws/secrets/secrets.tf:114
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
Medium Ensure AWS SQS uses CMK not AWS default keys for encryption
Ensure AWS SQS uses CMK not AWS default keys for encryption
Where
Medium Ensure that AWS Lambda function is configured inside a VPC
Ensure that AWS Lambda function is configured inside a VPC
Where
Medium Ensure top-level permissions are not set to write-all
Ensure top-level permissions are not set to write-all
How to fix
See Checkov documentation for remediation guidance.
Where
- ../../.github/workflows/terraform-variable-check.yml
- ../../.github/workflows/terraform-version-check.yml
- ../../.github/workflows/diff-comment.yml
- ../../.github/workflows/conventional-commit-lint.yml
- ../../.github/workflows/terraform-security-scan.yml
- ../../.github/workflows/terragrunt-plan-production-warn-release-exists.yml
Medium Ensure that ECR repositories are encrypted using KMS
Ensure that ECR repositories are encrypted using KMS
Where
Medium Ensure ECR Image Tags are immutable
Ensure ECR Image Tags are immutable
Where
Medium Ensure AWS Load Balancer doesn't use HTTP protocol
Ensure AWS Load Balancer doesn't use HTTP protocol
Where
Medium Suspicious use of curl with secrets
Suspicious use of curl with secrets
How to fix
See Checkov documentation for remediation guidance.
Where
Medium Ensure AWS ALB attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Ensure AWS ALB attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
How to fix
See Checkov documentation for remediation guidance.
Where
Medium Load Balancer for Single Instance
Load balancer detected. Verify it's needed - load balancers cost $15-20/month even if unused.
How to fix
Consider if load balancer is necessary for single-instance deployments or low-traffic applications.
Where
Medium Ensure Postgres RDS as aws_rds_cluster has Query Logging enabled
Ensure Postgres RDS as aws_rds_cluster has Query Logging enabled
Where
Medium Ensure that RDS clusters has backup plan of AWS Backup
Medium Ensure RDS cluster has IAM authentication enabled
Medium Ensure all data stored in the ElastiCache Replication Group is securely encrypted at rest
Ensure all data stored in the ElastiCache Replication Group is securely encrypted at rest
Where
Medium Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit
Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit
Where
Medium Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit and has auth token
Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit and has auth token
Where
Medium Ensure ECS Fargate services run on the latest Fargate platform version
Ensure ECS Fargate services run on the latest Fargate platform version
Where
Medium Ensure AWS CloudFront web distribution has geo restriction enabled
Ensure AWS CloudFront web distribution has geo restriction enabled
Where
Medium Missing Cost and Usage Report
No AWS Cost and Usage Report (CUR) configured. CUR provides detailed cost tracking and analysis.
How to fix
Enable AWS Cost and Usage Reports to track spending patterns and identify optimization opportunities.
Where
Low 10
Low SQS Max Message Retention
SQS queue configured with the maximum 14-day (1209600 s) message retention. On high-volume queues this inflates storage costs and may indicate unprocessed message buildup.
How to fix
Set retention to the minimum business requirement (e.g., 1–4 days for most queues) and alert on queue depth to catch processing failures early.
Where
Low Route53 Health Checks
Route53 health checks incur monthly costs. May not be necessary for all resources.
How to fix
Remove health checks for non-critical resources or personal projects.
Where
Low Unassociated Elastic IP
Elastic IPs are charged if not attached to a running instance or if you have more than one per instance.
How to fix
Release unattached Elastic IPs.
Where
- aws/network/network.tf:124 $3.65 / mo
- aws/network/.staging_env/network.tf:144 $3.65 / mo
Low Missing AWS Budget
No AWS budget configured. Budgets help monitor and control spending with alerts.
How to fix
Create AWS budgets with alerts for forecasted and actual costs to avoid unexpected charges.
Where
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 25 Jun 2026; it may have changed since.
Scan your own repository
InfraScan Cloud scans your repositories and AWS accounts, keeps the history and shows how to fix each finding.