Repository scan
govuk-infrastructure
alphagov/govuk-infrastructure · branch main · scanned 17 Jun 2026 · 960 resources
High 29
High 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
- terraform/deployments/elasticache/main.tf:21
- terraform/deployments/opensearch/main.tf:17
- terraform/deployments/root-dns/main.tf:17
- terraform/deployments/ai-accelerator/main.tf:22
- terraform/deployments/vpc/main.tf:17
- terraform/deployments/neptune/main.tf:17
- terraform/deployments/ecr/main.tf:22
- terraform/deployments/github/main.tf:20
- terraform/deployments/elasticsearch-green/main.tf:17
- terraform/deployments/rds/main.tf:23
- terraform/deployments/chat/main.tf:17
- terraform/deployments/logging/main.tf:17
- terraform/deployments/csp-reporter/main.tf:18
- terraform/deployments/release/main.tf:22
- terraform/deployments/elasticsearch/main.tf:17
- terraform/deployments/chat-evaluation-ci/main.tf:23
- terraform/deployments/cluster-services/main.tf:40
- terraform/deployments/govuk-reports/main.tf:19
- terraform/deployments/datagovuk-infrastructure/main.tf:36
- terraform/deployments/tfc-aws-config/provider.tf:31
- and 8 more
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 962
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../terraform/deployments/cluster-infrastructure/aws_ebs_csi_iam.tf:5
- ../../terraform/deployments/cluster-infrastructure/aws_lb_controller_iam.tf:12
- ../../terraform/deployments/cluster-infrastructure/cluster_autoscaler_iam.tf:23
- ../../terraform/deployments/cluster-infrastructure/external_dns.tf:14
- ../../terraform/deployments/cluster-infrastructure/external_secrets_iam.tf:11
- ../../terraform/deployments/cluster-infrastructure/grafana.tf:6
- ../../terraform/deployments/cluster-infrastructure/grafana.tf:101
- ../../terraform/deployments/cluster-infrastructure/main.tf:239
- ../../terraform/deployments/cluster-services/argo_workflows.tf:5
- ../../terraform/deployments/cluster-services/renovate_irsa.tf:5
- ../../terraform/deployments/cluster-services/tempo.tf:17
- ../../terraform/deployments/datagovuk-infrastructure/ckan_iam.tf:2
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/gcp-gov-graph/gce.tf:178
- ../../terraform/deployments/gcp-gov-graph/gce.tf:209
- ../../terraform/deployments/gcp-gov-graph/gce.tf:268
- and 124 more
Medium Ensure Terraform module sources use a tag with a version number
Ensure Terraform module sources use a tag with a version number
Where
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/ephemeral/ws/workspace.tf:1
- ../../terraform/deployments/tfc-configuration/ai-accelerator.tf:1
- ../../terraform/deployments/tfc-configuration/cdn-analytics.tf:1
- ../../terraform/deployments/tfc-configuration/cdn-analytics.tf:41
- ../../terraform/deployments/tfc-configuration/cdn-analytics.tf:80
- ../../terraform/deployments/tfc-configuration/chat-evaluation-ci.tf:1
- ../../terraform/deployments/tfc-configuration/chat.tf:1
- ../../terraform/deployments/tfc-configuration/chat.tf:41
- ../../terraform/deployments/tfc-configuration/chat.tf:81
- ../../terraform/deployments/tfc-configuration/cloudfront.tf:1
- ../../terraform/deployments/tfc-configuration/cloudfront.tf:40
- ../../terraform/deployments/tfc-configuration/cluster-access.tf:1
- ../../terraform/deployments/tfc-configuration/cluster-access.tf:44
- ../../terraform/deployments/tfc-configuration/cluster-access.tf:86
- ../../terraform/deployments/tfc-configuration/cluster-infrastructure.tf:1
- ../../terraform/deployments/tfc-configuration/cluster-infrastructure.tf:41
- and 98 more
Medium Ensure BigQuery tables have deletion protection enabled
Ensure BigQuery tables have deletion protection enabled
Where
- ../../terraform/deployments/cdn-analytics/bigquery.tf:28
- ../../terraform/deployments/gcp-gov-graph/bigquery-asset-manager.tf:43
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:40
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:48
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:56
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:64
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:72
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:44
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:52
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:60
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:44
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:52
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:60
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:68
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:76
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:84
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:92
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:100
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:108
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:116
- and 52 more
Medium Ensure Big Query Tables are encrypted with Customer Supplied Encryption Keys (CSEK)
Ensure Big Query Tables are encrypted with Customer Supplied Encryption Keys (CSEK)
Where
- ../../terraform/deployments/cdn-analytics/bigquery.tf:28
- ../../terraform/deployments/gcp-gov-graph/bigquery-asset-manager.tf:43
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:40
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:48
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:56
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:64
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:72
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:44
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:52
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:60
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:44
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:52
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:60
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:68
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:76
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:84
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:92
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:100
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:108
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:116
- and 52 more
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../terraform/deployments/chat/cloudwatch.tf:1
- ../../terraform/deployments/chat/cloudwatch.tf:7
- ../../terraform/deployments/cloudfront/logging.tf:1
- ../../terraform/deployments/cloudfront/logging.tf:8
- ../../terraform/deployments/csp-reporter/api_gateway.tf:63
- ../../terraform/deployments/csp-reporter/lambda.tf:66
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:220
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:468
- ../../terraform/deployments/elasticsearch-green/main.tf:38
- ../../terraform/deployments/elasticsearch-green/main.tf:43
- ../../terraform/deployments/elasticsearch-green/main.tf:48
- ../../terraform/deployments/elasticsearch/main.tf:38
- ../../terraform/deployments/elasticsearch/main.tf:43
- ../../terraform/deployments/elasticsearch/main.tf:48
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:412
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:568
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:602
- ../../terraform/deployments/logging/flow_log.tf:26
- ../../terraform/deployments/opensearch/main.tf:44
- ../../terraform/deployments/opensearch/main.tf:50
- and 9 more
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
- terraform/deployments/elasticache/main.tf:21
- terraform/deployments/opensearch/main.tf:17
- terraform/deployments/root-dns/main.tf:17
- terraform/deployments/ai-accelerator/main.tf:22
- terraform/deployments/vpc/main.tf:17
- terraform/deployments/neptune/main.tf:17
- terraform/deployments/ecr/main.tf:22
- terraform/deployments/github/main.tf:20
- terraform/deployments/elasticsearch-green/main.tf:17
- terraform/deployments/rds/main.tf:23
- terraform/deployments/chat/main.tf:17
- terraform/deployments/logging/main.tf:17
- terraform/deployments/csp-reporter/main.tf:18
- terraform/deployments/release/main.tf:22
- terraform/deployments/elasticsearch/main.tf:17
- terraform/deployments/chat-evaluation-ci/main.tf:23
- terraform/deployments/cluster-services/main.tf:40
- terraform/deployments/govuk-reports/main.tf:19
- terraform/deployments/datagovuk-infrastructure/main.tf:36
- terraform/deployments/tfc-aws-config/provider.tf:31
- and 8 more
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../terraform/deployments/datagovuk-infrastructure/organogram_bucket.tf:21
- ../../terraform/deployments/datagovuk-infrastructure/static_data_bucket.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/asset_manager_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:1
- ../../terraform/deployments/logging/aws_logging.tf:92
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- and 6 more
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../terraform/deployments/datagovuk-infrastructure/organogram_bucket.tf:21
- ../../terraform/deployments/datagovuk-infrastructure/static_data_bucket.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/asset_manager_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:1
- ../../terraform/deployments/logging/aws_logging.tf:92
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- and 6 more
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
- ../../terraform/deployments/datagovuk-infrastructure/organogram_bucket.tf:21
- ../../terraform/deployments/datagovuk-infrastructure/static_data_bucket.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/asset_manager_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:1
- ../../terraform/deployments/logging/aws_logging.tf:92
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- and 6 more
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- ../../terraform/shared-modules/s3/main.tf:1
- and 2 more
Medium Ensure S3 lifecycle configuration sets period for aborting failed uploads
Ensure S3 lifecycle configuration sets period for aborting failed uploads
Where
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:5
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:16
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:11
- ../../terraform/deployments/logging/aws_logging.tf:106
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
- ../../terraform/shared-modules/s3/main.tf:29
Medium Ensure Big Query Datasets are encrypted with Customer Supplied Encryption Keys (CSEK)
Ensure Big Query Datasets are encrypted with Customer Supplied Encryption Keys (CSEK)
Where
- ../../terraform/deployments/cdn-analytics/bigquery.tf:1
- ../../terraform/deployments/gcp-gov-graph/bigquery-asset-manager.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-content.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-functions.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-private.tf:4
- ../../terraform/deployments/gcp-gov-graph/bigquery-public.tf:4
- ../../terraform/deployments/gcp-gov-graph/bigquery-publisher.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-publishing-api.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-search.tf:9
- ../../terraform/deployments/gcp-gov-graph/bigquery-smart-survey.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-support-api.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-whitehall.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery-zendesk.tf:3
- ../../terraform/deployments/gcp-gov-graph/bigquery.tf:8
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:123
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:182
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:277
- ../../terraform/deployments/search-api-v2/events_ingestion.tf:32
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../terraform/deployments/chat/cloudwatch.tf:1
- ../../terraform/deployments/chat/cloudwatch.tf:7
- ../../terraform/deployments/cloudfront/logging.tf:1
- ../../terraform/deployments/cloudfront/logging.tf:8
- ../../terraform/deployments/csp-reporter/api_gateway.tf:63
- ../../terraform/deployments/csp-reporter/lambda.tf:66
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:220
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:468
- ../../terraform/deployments/elasticsearch-green/main.tf:38
- ../../terraform/deployments/elasticsearch-green/main.tf:43
- ../../terraform/deployments/elasticsearch-green/main.tf:48
- ../../terraform/deployments/elasticsearch/main.tf:38
- ../../terraform/deployments/elasticsearch/main.tf:43
- ../../terraform/deployments/elasticsearch/main.tf:48
- ../../terraform/deployments/opensearch/main.tf:44
- ../../terraform/deployments/opensearch/main.tf:50
- ../../terraform/deployments/opensearch/main.tf:56
Medium Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Where
- ../../terraform/deployments/chat/aws_chatbot.tf:20
- ../../terraform/deployments/chat/bedrock_iam.tf:28
- ../../terraform/deployments/cluster-infrastructure/aws_ebs_csi_iam.tf:19
- ../../terraform/deployments/cluster-infrastructure/cluster_autoscaler_iam.tf:50
- ../../terraform/deployments/cluster-infrastructure/external_dns.tf:36
- ../../terraform/deployments/cluster-infrastructure/grafana.tf:20
- ../../terraform/deployments/cluster-infrastructure/main.tf:195
- ../../terraform/deployments/ecr/data.tf:1
- ../../terraform/deployments/github/mirror.tf:35
- ../../terraform/deployments/govuk-reports/iam.tf:8
- ../../terraform/deployments/logging/flow_log.tf:1
- ../../terraform/deployments/neptune/kms.tf:12
- ../../terraform/deployments/rds/kms.tf:15
- ../../terraform/deployments/release/assumed.tf:36
- ../../terraform/deployments/synthetic-test/assumed.tf:26
- ../../terraform/deployments/tfc-aws-config/aws_oidc.tf:37
Medium Ensure public access prevention is enforced on Cloud Storage bucket
Ensure public access prevention is enforced on Cloud Storage bucket
Where
- ../../terraform/deployments/gcp-gov-graph/backend-bucket.tf:5
- ../../terraform/deployments/gcp-gov-graph/storage.tf:2
- ../../terraform/deployments/gcp-gov-graph/storage.tf:90
- ../../terraform/deployments/gcp-gov-graph/storage.tf:155
- ../../terraform/deployments/gcp-gov-graph/storage.tf:212
- ../../terraform/deployments/gcp-gov-graph/storage.tf:283
- ../../terraform/deployments/gcp-gov-graph/storage.tf:358
- ../../terraform/deployments/logging/google_logging_bucket.tf:3
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:4
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:75
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:81
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:304
- ../../terraform/deployments/search-api-v2/completion.tf:25
Medium Bucket should log access
Bucket should log access
Where
- ../../terraform/deployments/gcp-gov-graph/backend-bucket.tf:5
- ../../terraform/deployments/gcp-gov-graph/storage.tf:2
- ../../terraform/deployments/gcp-gov-graph/storage.tf:90
- ../../terraform/deployments/gcp-gov-graph/storage.tf:155
- ../../terraform/deployments/gcp-gov-graph/storage.tf:212
- ../../terraform/deployments/gcp-gov-graph/storage.tf:283
- ../../terraform/deployments/gcp-gov-graph/storage.tf:358
- ../../terraform/deployments/logging/google_logging_bucket.tf:3
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:4
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:75
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:81
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:304
- ../../terraform/deployments/search-api-v2/completion.tf:25
Medium Ensure Cloud storage has versioning enabled
Ensure Cloud storage has versioning enabled
Where
- ../../terraform/deployments/gcp-gov-graph/storage.tf:2
- ../../terraform/deployments/gcp-gov-graph/storage.tf:90
- ../../terraform/deployments/gcp-gov-graph/storage.tf:155
- ../../terraform/deployments/gcp-gov-graph/storage.tf:212
- ../../terraform/deployments/gcp-gov-graph/storage.tf:283
- ../../terraform/deployments/gcp-gov-graph/storage.tf:358
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:4
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:75
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:81
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:304
- ../../terraform/deployments/search-api-v2/completion.tf:25
Medium Missing Spot Instance Usage
No spot instances detected. Spot instances can save 50-90% on compute costs for interruptible workloads.
How to fix
Use spot instances for batch jobs, data analysis, and optional tasks. Consider aws_spot_instance_request or spot_price in launch templates.
Where
- terraform/shared-modules/opensearch-blue-green-deployment/variables.tf:57
- terraform/shared-modules/opensearch-blue-green-deployment/opensearch_domains.tf:25
- terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/variables.tf:41
- terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:9
- terraform/deployments/opensearch/main.tf:105
- terraform/deployments/ai-accelerator/variables.tf:38
- terraform/deployments/elasticsearch-green/variables.tf:28
- terraform/deployments/elasticsearch-green/main.tf:89
- terraform/deployments/elasticsearch/variables.tf:33
- terraform/deployments/elasticsearch/main.tf:98
- terraform/deployments/govuk-publishing-infrastructure/amazonmq.tf:58
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../terraform/deployments/cluster-infrastructure/grafana.tf:159
- ../../terraform/deployments/govuk-publishing-infrastructure/govuk_mirror_sync.tf:478
- ../../terraform/deployments/govuk-publishing-infrastructure/licensify_documentdb.tf:124
- ../../terraform/deployments/govuk-publishing-infrastructure/shared_documentdb.tf:138
- ../../terraform/deployments/opensearch/main.tf:179
- ../../terraform/deployments/rds/rds.tf:211
- ../../terraform/deployments/rds/rds.tf:222
- ../../terraform/deployments/search-api-v2/secrets.tf:1
- ../../terraform/deployments/search-api-v2/secrets.tf:16
- ../../terraform/shared-modules/opensearch-blue-green-deployment/secrets.tf:17
Medium Ensure that Secrets Manager secret is encrypted using KMS CMK
Ensure that Secrets Manager secret is encrypted using KMS CMK
Where
- ../../terraform/deployments/cluster-infrastructure/grafana.tf:159
- ../../terraform/deployments/govuk-publishing-infrastructure/govuk_mirror_sync.tf:478
- ../../terraform/deployments/govuk-publishing-infrastructure/licensify_documentdb.tf:124
- ../../terraform/deployments/govuk-publishing-infrastructure/shared_documentdb.tf:138
- ../../terraform/deployments/opensearch/main.tf:179
- ../../terraform/deployments/rds/rds.tf:211
- ../../terraform/deployments/rds/rds.tf:222
- ../../terraform/deployments/search-api-v2/secrets.tf:1
- ../../terraform/deployments/search-api-v2/secrets.tf:16
- ../../terraform/shared-modules/opensearch-blue-green-deployment/secrets.tf:17
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:72
- ../../terraform/deployments/govuk-publishing-infrastructure/security.tf:110
- ../../terraform/deployments/security/sec_groups.tf:4
- ../../terraform/deployments/security/sec_groups.tf:22
- ../../terraform/deployments/security/sec_groups.tf:40
- ../../terraform/deployments/security/sec_groups.tf:72
- ../../terraform/deployments/security/sec_groups.tf:96
- ../../terraform/deployments/security/sec_groups.tf:114
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../terraform/deployments/cluster-infrastructure/aws_ebs_csi_iam.tf:19
- ../../terraform/deployments/cluster-infrastructure/cluster_autoscaler_iam.tf:50
- ../../terraform/deployments/ecr/data.tf:1
- ../../terraform/deployments/github/mirror.tf:35
- ../../terraform/deployments/logging/flow_log.tf:1
- ../../terraform/deployments/neptune/kms.tf:12
- ../../terraform/deployments/rds/kms.tf:15
- ../../terraform/deployments/tfc-aws-config/aws_oidc.tf:37
Medium Ensure that S3 bucket has a Public Access block
Ensure that S3 bucket has a Public Access block
Where
- ../../terraform/deployments/datagovuk-infrastructure/organogram_bucket.tf:21
- ../../terraform/deployments/datagovuk-infrastructure/static_data_bucket.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/asset_manager_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/athena_query_results_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/content_data_s3.tf:1
- ../../terraform/deployments/govuk-publishing-infrastructure/search_sitemaps_s3.tf:1
- ../../terraform/deployments/logging/aws_logging.tf:92
Medium Ensure WAF prevents message lookup in Log4j2. See CVE-2021-44228 aka log4jshell
Ensure WAF prevents message lookup in Log4j2. See CVE-2021-44228 aka log4jshell
Where
- ../../terraform/deployments/cloudfront/main.tf:76
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:27
- ../../terraform/deployments/datagovuk-infrastructure/wafs.tf:276
- ../../terraform/deployments/govuk-publishing-infrastructure/search_api_gateway.tf:110
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:19
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:128
- ../../terraform/deployments/govuk-publishing-infrastructure/wafs.tf:425
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:20
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:33
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:46
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:59
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:78
- ../../terraform/deployments/govuk-publishing-infrastructure/amazonmq_security_groups.tf:109
- ../../terraform/deployments/security/sec_groups.tf:40
Medium Ensure basic roles are not used at project level.
Ensure basic roles are not used at project level.
Where
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/tfc-aws-config/gcp_oidc.tf:39
Medium Ensure roles do not impersonate or manage Service Accounts used at project level
Ensure roles do not impersonate or manage Service Accounts used at project level
Where
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:39
- ../../terraform/deployments/gcp-search-api-v2/modules/search-api-v2/main.tf:135
- ../../terraform/deployments/tfc-aws-config/gcp_oidc.tf:39
Medium Ensure that Cloud Storage buckets have uniform bucket-level access enabled
Ensure that Cloud Storage buckets have uniform bucket-level access enabled
Where
- ../../terraform/deployments/logging/google_logging_bucket.tf:3
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:4
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:75
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:81
- ../../terraform/deployments/search-api-v2/automated_evaluation.tf:304
- ../../terraform/deployments/search-api-v2/completion.tf:25
Medium Ensure 'Block Project-wide SSH keys' is enabled for VM instances
Ensure 'Block Project-wide SSH keys' is enabled for VM instances
Where
- ../../terraform/deployments/gcp-gov-graph/gce.tf:413
- ../../terraform/deployments/gcp-gov-graph/gce.tf:453
- ../../terraform/deployments/gcp-gov-graph/gce.tf:501
- ../../terraform/deployments/gcp-gov-graph/gce.tf:536
- ../../terraform/deployments/gcp-gov-graph/gce.tf:573
- ../../terraform/deployments/gcp-gov-graph/gce.tf:607
Medium Ensure Compute instances are launched with Shielded VM enabled
Ensure Compute instances are launched with Shielded VM enabled
Where
- ../../terraform/deployments/gcp-gov-graph/gce.tf:413
- ../../terraform/deployments/gcp-gov-graph/gce.tf:453
- ../../terraform/deployments/gcp-gov-graph/gce.tf:501
- ../../terraform/deployments/gcp-gov-graph/gce.tf:536
- ../../terraform/deployments/gcp-gov-graph/gce.tf:573
- ../../terraform/deployments/gcp-gov-graph/gce.tf:607
Medium Ensure that Compute instances do not have public IP addresses
Ensure that Compute instances do not have public IP addresses
Where
- ../../terraform/deployments/gcp-gov-graph/gce.tf:413
- ../../terraform/deployments/gcp-gov-graph/gce.tf:453
- ../../terraform/deployments/gcp-gov-graph/gce.tf:501
- ../../terraform/deployments/gcp-gov-graph/gce.tf:536
- ../../terraform/deployments/gcp-gov-graph/gce.tf:573
- ../../terraform/deployments/gcp-gov-graph/gce.tf:607
Medium Ensure all data stored in the Elasticsearch is encrypted with a CMK
Ensure all data stored in the Elasticsearch is encrypted with a CMK
Where
- ../../terraform/deployments/elasticsearch-green/main.tf:78
- ../../terraform/deployments/elasticsearch/main.tf:86
- ../../terraform/deployments/opensearch/main.tf:97
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
Medium Ensure all data stored in the SNS topic is encrypted
Ensure all data stored in the SNS topic is encrypted
Where
Medium Ensure Elasticsearch Domain Audit Logging is enabled
Ensure Elasticsearch Domain Audit Logging is enabled
Where
- ../../terraform/deployments/elasticsearch-green/main.tf:78
- ../../terraform/deployments/elasticsearch/main.tf:86
- ../../terraform/deployments/opensearch/main.tf:97
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
Medium Ensure Elasticsearch domains are configured with at least three dedicated master nodes for HA
Ensure Elasticsearch domains are configured with at least three dedicated master nodes for HA
Where
- ../../terraform/deployments/elasticsearch-green/main.tf:78
- ../../terraform/deployments/elasticsearch/main.tf:86
- ../../terraform/deployments/opensearch/main.tf:97
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
- ../../terraform/shared-modules/opensearch-blue-green-deployment/opensearch-domain/main.tf:1
Medium Ensure that Cloud Audit Logging is configured properly across all services and all users from a project
Ensure that Cloud Audit Logging is configured properly across all services and all users from a project
Where
Medium Ensure rotation for customer created CMKs is enabled
Ensure rotation for customer created CMKs is enabled
Where
Medium Ensure that the default network does not exist in a project
Ensure that the default network does not exist in a project
Where
Medium Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Where
Medium Ensure WAF2 has a Logging Configuration
and 94 more groups with 148 findings
Low 3
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
Low EC2 Detailed Monitoring
Detailed monitoring for EC2 instances incurs extra costs.
How to fix
Disable detailed monitoring if standard 5-minute metrics are sufficient.
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 17 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.