Repository scan
Repository
branch main
High 17
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
- stacks/ehr-transfer-service/terraform/main.tf:1
- stacks/re-registration-service/terraform/main.tf:1
- stacks/mhs/terraform/provider.tf:1
- stacks/mesh-forwarder/terraform/main.tf:1
- stacks/nems-event-processor/terraform/main.tf:1
- stacks/suspension-service/terraform/main.tf:1
- stacks/deductions/terraform/main.tf:1
- stacks/deductions-cross-account/terraform/backend.tf:14
- stacks/ehr-out-service/terraform/main.tf:1
- stacks/deductions-dashboard/terraform/backend.tf:14
- stacks/gp2gp-messenger/terraform/main.tf:1
- stacks/ehr-repo/terraform/main.tf:1
- stacks/pds-adaptor/terraform/main.tf:1
- stacks/ehr-repo-db-roles/terraform/main.tf:1
- stacks/base-infra/main.tf:1
- stacks/deductions-backup/terraform/main.tf:1
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
- stacks/deductions/terraform/modules/mhs/nat-gateway.tf:1
Medium 411
Medium AWS SSM Parameter should be Encrypted
AWS SSM Parameter should be Encrypted
Where
- ../../stacks/base-infra/public_zone.tf:11
- ../../stacks/base-infra/public_zone.tf:50
- ../../stacks/deductions/terraform/modules/deductions-core/output.tf:15
- ../../stacks/deductions/terraform/modules/deductions-core/output.tf:25
- ../../stacks/deductions/terraform/modules/deductions-core/output.tf:35
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:248
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:254
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:102
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:234
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:244
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:254
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:265
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:70
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:82
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:94
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:106
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:131
- ../../stacks/deductions/terraform/modules/deductions-private/mq.tf:218
- ../../stacks/deductions/terraform/modules/deductions-private/output.tf:35
- ../../stacks/deductions/terraform/modules/deductions-private/output.tf:45
- and 54 more
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:19
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:112
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:151
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:185
- ../../stacks/deductions/terraform/modules/deductions-core/vpc-endpoints.tf:206
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:38
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:77
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:116
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:204
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:225
- ../../stacks/deductions/terraform/modules/deductions-private/vpc-endpoints.tf:246
- ../../stacks/ehr-out-service/terraform/ecs_task.tf:69
- ../../stacks/ehr-out-service/terraform/ecs_task.tf:127
- ../../stacks/ehr-out-service/terraform/ecs_task.tf:136
- ../../stacks/ehr-repo/terraform/ecs-task.tf:46
- ../../stacks/ehr-transfer-service/terraform/ecs-service.tf:26
- ../../stacks/ehr-transfer-service/terraform/ecs-service.tf:39
- ../../stacks/ehr-transfer-service/terraform/ecs-service.tf:63
- ../../stacks/ehr-transfer-service/terraform/ecs-service.tf:72
- ../../stacks/gp2gp-messenger/terraform/ecs-task.tf:53
- and 9 more
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
- ../../stacks/deductions-cross-account/terraform/iam-ci/iam_users.tf:42
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/bootstrap_admin_user.tf:11
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/bootstrap_admin_user.tf:255
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/bootstrap_admin_user.tf:348
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/repo_developer_user.tf:11
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/repo_developer_user.tf:218
- ../../stacks/deductions/terraform/iam.tf:38
- ../../stacks/deductions/terraform/modules/utils/iam.tf:39
- ../../stacks/deductions/terraform/sns.tf:101
- ../../stacks/ehr-out-service/terraform/queue.tf:56
- ../../stacks/ehr-transfer-service/terraform/encryption-key.tf:189
- ../../stacks/ehr-transfer-service/terraform/iam.tf:121
- ../../stacks/ehr-transfer-service/terraform/iam.tf:227
- ../../stacks/gp2gp-messenger/terraform/iam.tf:95
- ../../stacks/gp2gp-messenger/terraform/queue.tf:36
- ../../stacks/mesh-forwarder/terraform/iam.tf:82
- ../../stacks/mesh-forwarder/terraform/iam.tf:128
- ../../stacks/mesh-forwarder/terraform/queue.tf:18
- ../../stacks/nems-event-processor/terraform/data.tf:121
- ../../stacks/nems-event-processor/terraform/encyrption-key.tf:110
- and 8 more
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/bootstrap_admin_user.tf:11
- ../../stacks/deductions-cross-account/terraform/iam-strict-environment/bootstrap_admin_user.tf:348
- ../../stacks/deductions/terraform/iam.tf:38
- ../../stacks/deductions/terraform/modules/utils/iam.tf:39
- ../../stacks/deductions/terraform/sns.tf:101
- ../../stacks/ehr-out-service/terraform/queue.tf:56
- ../../stacks/ehr-transfer-service/terraform/encryption-key.tf:189
- ../../stacks/ehr-transfer-service/terraform/iam.tf:121
- ../../stacks/ehr-transfer-service/terraform/iam.tf:227
- ../../stacks/gp2gp-messenger/terraform/iam.tf:95
- ../../stacks/gp2gp-messenger/terraform/queue.tf:36
- ../../stacks/mesh-forwarder/terraform/iam.tf:82
- ../../stacks/mesh-forwarder/terraform/iam.tf:128
- ../../stacks/mesh-forwarder/terraform/queue.tf:18
- ../../stacks/nems-event-processor/terraform/data.tf:121
- ../../stacks/nems-event-processor/terraform/encyrption-key.tf:110
- ../../stacks/nems-event-processor/terraform/iam.tf:93
- ../../stacks/re-registration-service/terraform/encryption-key.tf:35
- ../../stacks/re-registration-service/terraform/iam.tf:180
- ../../stacks/re-registration-service/terraform/iam.tf:316
- and 4 more
Medium Ensure that ECR repositories are encrypted using KMS
Ensure that ECR repositories are encrypted using KMS
Where
- ../../stacks/deductions-cross-account/terraform/ecr.tf:5
- ../../stacks/deductions-cross-account/terraform/ecr.tf:13
- ../../stacks/deductions-cross-account/terraform/ecr.tf:21
- ../../stacks/deductions-cross-account/terraform/ecr.tf:29
- ../../stacks/deductions-cross-account/terraform/ecr.tf:37
- ../../stacks/deductions-cross-account/terraform/ecr.tf:45
- ../../stacks/deductions-cross-account/terraform/ecr.tf:53
- ../../stacks/deductions-cross-account/terraform/ecr.tf:61
- ../../stacks/deductions-cross-account/terraform/ecr.tf:69
- ../../stacks/deductions-cross-account/terraform/ecr.tf:77
- ../../stacks/deductions-cross-account/terraform/ecr.tf:85
- ../../stacks/deductions-cross-account/terraform/ecr.tf:93
- ../../stacks/deductions-cross-account/terraform/ecr.tf:101
- ../../stacks/deductions-cross-account/terraform/ecr.tf:109
- ../../stacks/deductions-cross-account/terraform/ecr.tf:117
- ../../stacks/deductions-cross-account/terraform/ecr.tf:125
Medium Ensure ECR image scanning on push is enabled
Ensure ECR image scanning on push is enabled
Where
- ../../stacks/deductions-cross-account/terraform/ecr.tf:5
- ../../stacks/deductions-cross-account/terraform/ecr.tf:13
- ../../stacks/deductions-cross-account/terraform/ecr.tf:21
- ../../stacks/deductions-cross-account/terraform/ecr.tf:29
- ../../stacks/deductions-cross-account/terraform/ecr.tf:37
- ../../stacks/deductions-cross-account/terraform/ecr.tf:45
- ../../stacks/deductions-cross-account/terraform/ecr.tf:53
- ../../stacks/deductions-cross-account/terraform/ecr.tf:61
- ../../stacks/deductions-cross-account/terraform/ecr.tf:69
- ../../stacks/deductions-cross-account/terraform/ecr.tf:77
- ../../stacks/deductions-cross-account/terraform/ecr.tf:85
- ../../stacks/deductions-cross-account/terraform/ecr.tf:93
- ../../stacks/deductions-cross-account/terraform/ecr.tf:101
- ../../stacks/deductions-cross-account/terraform/ecr.tf:109
- ../../stacks/deductions-cross-account/terraform/ecr.tf:117
- ../../stacks/deductions-cross-account/terraform/ecr.tf:125
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
- stacks/ehr-transfer-service/terraform/main.tf:1
- stacks/re-registration-service/terraform/main.tf:1
- stacks/mhs/terraform/provider.tf:1
- stacks/mesh-forwarder/terraform/main.tf:1
- stacks/nems-event-processor/terraform/main.tf:1
- stacks/suspension-service/terraform/main.tf:1
- stacks/deductions/terraform/main.tf:1
- stacks/deductions-cross-account/terraform/backend.tf:14
- stacks/ehr-out-service/terraform/main.tf:1
- stacks/deductions-dashboard/terraform/backend.tf:14
- stacks/gp2gp-messenger/terraform/main.tf:1
- stacks/ehr-repo/terraform/main.tf:1
- stacks/pds-adaptor/terraform/main.tf:1
- stacks/ehr-repo-db-roles/terraform/main.tf:1
- stacks/base-infra/main.tf:1
- stacks/deductions-backup/terraform/main.tf:1
Medium Ensure IAM policies does not allow permissions management / resource exposure without constraints
Ensure IAM policies does not allow permissions management / resource exposure without constraints
Where
- ../../stacks/deductions/terraform/sns.tf:101
- ../../stacks/ehr-out-service/terraform/queue.tf:56
- ../../stacks/ehr-transfer-service/terraform/encryption-key.tf:189
- ../../stacks/ehr-transfer-service/terraform/iam.tf:121
- ../../stacks/gp2gp-messenger/terraform/iam.tf:95
- ../../stacks/gp2gp-messenger/terraform/queue.tf:36
- ../../stacks/mesh-forwarder/terraform/iam.tf:82
- ../../stacks/mesh-forwarder/terraform/queue.tf:18
- ../../stacks/nems-event-processor/terraform/encyrption-key.tf:110
- ../../stacks/nems-event-processor/terraform/iam.tf:93
- ../../stacks/re-registration-service/terraform/encryption-key.tf:35
- ../../stacks/re-registration-service/terraform/iam.tf:316
- ../../stacks/suspension-service/terraform/encryption-key.tf:18
- ../../stacks/suspension-service/terraform/iam.tf:155
- ../../stacks/suspension-service/terraform/modules/suspension-service/sns-topic.tf:13
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../stacks/deductions/terraform/modules/deductions-private/vpn.tf:1
- ../../stacks/ehr-out-service/terraform/cloudwatch.tf:1
- ../../stacks/ehr-repo/terraform/cloudwatch.tf:6
- ../../stacks/ehr-transfer-service/terraform/cloudwatch.tf:14
- ../../stacks/gp2gp-messenger/terraform/cloudwatch.tf:6
- ../../stacks/mesh-forwarder/terraform/cloudwatch.tf:11
- ../../stacks/mhs/terraform/cloudwatch.tf:33
- ../../stacks/mhs/terraform/cloudwatch.tf:42
- ../../stacks/nems-event-processor/terraform/cloudwatch.tf:12
- ../../stacks/pds-adaptor/terraform/cloudwatch.tf:6
- ../../stacks/re-registration-service/terraform/cloudwatch.tf:7
- ../../stacks/suspension-service/terraform/cloudwatch.tf:10
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../stacks/deductions/terraform/modules/deductions-private/vpn.tf:1
- ../../stacks/ehr-out-service/terraform/cloudwatch.tf:1
- ../../stacks/ehr-repo/terraform/cloudwatch.tf:6
- ../../stacks/ehr-transfer-service/terraform/cloudwatch.tf:14
- ../../stacks/gp2gp-messenger/terraform/cloudwatch.tf:6
- ../../stacks/mesh-forwarder/terraform/cloudwatch.tf:11
- ../../stacks/mhs/terraform/cloudwatch.tf:33
- ../../stacks/mhs/terraform/cloudwatch.tf:42
- ../../stacks/nems-event-processor/terraform/cloudwatch.tf:12
- ../../stacks/pds-adaptor/terraform/cloudwatch.tf:6
- ../../stacks/re-registration-service/terraform/cloudwatch.tf:7
- ../../stacks/suspension-service/terraform/cloudwatch.tf:10
Medium Ensure that CloudWatch Log Group specifies retention days
Ensure that CloudWatch Log Group specifies retention days
Where
- ../../stacks/deductions/terraform/modules/deductions-private/vpn.tf:1
- ../../stacks/ehr-out-service/terraform/cloudwatch.tf:1
- ../../stacks/ehr-repo/terraform/cloudwatch.tf:6
- ../../stacks/ehr-transfer-service/terraform/cloudwatch.tf:14
- ../../stacks/gp2gp-messenger/terraform/cloudwatch.tf:6
- ../../stacks/mesh-forwarder/terraform/cloudwatch.tf:11
- ../../stacks/mhs/terraform/cloudwatch.tf:33
- ../../stacks/mhs/terraform/cloudwatch.tf:42
- ../../stacks/nems-event-processor/terraform/cloudwatch.tf:12
- ../../stacks/pds-adaptor/terraform/cloudwatch.tf:6
- ../../stacks/re-registration-service/terraform/cloudwatch.tf:7
- ../../stacks/suspension-service/terraform/cloudwatch.tf:10
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
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/mhs/terraform/mhs_inbound.tf:292
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
- ../../stacks/mhs/terraform/mhs_inbound.tf:292
- ../../stacks/mhs/terraform/mhs_inbound.tf:292
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
- ../../stacks/deductions/terraform/s3.tf:5
- ../../stacks/deductions/terraform/s3.tf:91
- ../../stacks/deductions/terraform/s3.tf:173
- ../../stacks/deductions/terraform/s3.tf:241
- ../../stacks/ehr-repo/terraform/s3.tf:6
- ../../stacks/ehr-repo/terraform/s3.tf:107
- ../../stacks/ehr-transfer-service/terraform/s3.tf:5
- ../../stacks/ehr-transfer-service/terraform/s3.tf:73
- ../../stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../stacks/deductions/terraform/s3.tf:5
- ../../stacks/deductions/terraform/s3.tf:91
- ../../stacks/deductions/terraform/s3.tf:173
- ../../stacks/deductions/terraform/s3.tf:241
- ../../stacks/ehr-repo/terraform/s3.tf:6
- ../../stacks/ehr-repo/terraform/s3.tf:107
- ../../stacks/ehr-transfer-service/terraform/s3.tf:5
- ../../stacks/ehr-transfer-service/terraform/s3.tf:73
- ../../stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../stacks/deductions/terraform/s3.tf:5
- ../../stacks/deductions/terraform/s3.tf:91
- ../../stacks/deductions/terraform/s3.tf:173
- ../../stacks/deductions/terraform/s3.tf:241
- ../../stacks/ehr-repo/terraform/s3.tf:6
- ../../stacks/ehr-repo/terraform/s3.tf:107
- ../../stacks/ehr-transfer-service/terraform/s3.tf:5
- ../../stacks/ehr-transfer-service/terraform/s3.tf:73
- ../../stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
- ../../stacks/deductions/terraform/s3.tf:5
- ../../stacks/deductions/terraform/s3.tf:91
- ../../stacks/deductions/terraform/s3.tf:173
- ../../stacks/deductions/terraform/s3.tf:241
- ../../stacks/ehr-repo/terraform/s3.tf:6
- ../../stacks/ehr-repo/terraform/s3.tf:107
- ../../stacks/ehr-transfer-service/terraform/s3.tf:5
- ../../stacks/ehr-transfer-service/terraform/s3.tf:73
- ../../stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
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
- stacks/mhs/terraform/mhs_inbound.tf:261
- stacks/mhs/terraform/mhs_outbound.tf:113
- stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:5
- stacks/ehr-out-service/terraform/alb_internal.tf:5
- stacks/gp2gp-messenger/terraform/alb-internal.tf:21
- stacks/ehr-repo/terraform/alb-internal.tf:21
- stacks/pds-adaptor/terraform/alb-internal.tf:9
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../stacks/ehr-out-service/terraform/ecs_task.tf:146
- ../../stacks/ehr-repo/terraform/ecs-task.tf:130
- ../../stacks/gp2gp-messenger/terraform/ecs-task.tf:82
- ../../stacks/mhs/terraform/mhs_inbound.tf:233
- ../../stacks/mhs/terraform/mhs_outbound.tf:241
- ../../stacks/mhs/terraform/mhs_outbound.tf:279
Medium Ensure NACL ingress does not allow all Ports
Ensure NACL ingress does not allow all Ports
Where
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:12
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:21
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:48
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:12
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:21
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:48
Medium Ensure that ALB redirects HTTP requests into HTTPS ones
Ensure that ALB redirects HTTP requests into HTTPS ones
Where
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:5
- ../../stacks/ehr-out-service/terraform/alb_internal.tf:5
- ../../stacks/ehr-repo/terraform/alb-internal.tf:21
- ../../stacks/gp2gp-messenger/terraform/alb-internal.tf:21
- ../../stacks/pds-adaptor/terraform/alb-internal.tf:9
Medium Ensure that load balancer is using at least TLS 1.2
Ensure that load balancer is using at least TLS 1.2
Where
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:67
- ../../stacks/ehr-out-service/terraform/alb_internal.tf:45
- ../../stacks/ehr-repo/terraform/alb-internal.tf:46
- ../../stacks/gp2gp-messenger/terraform/alb-internal.tf:46
- ../../stacks/pds-adaptor/terraform/alb-internal.tf:59
Medium Ensure ALB protocol is HTTPS
Ensure ALB protocol is HTTPS
Where
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:67
- ../../stacks/ehr-out-service/terraform/alb_internal.tf:45
- ../../stacks/ehr-repo/terraform/alb-internal.tf:46
- ../../stacks/gp2gp-messenger/terraform/alb-internal.tf:46
- ../../stacks/pds-adaptor/terraform/alb-internal.tf:59
Medium Ensure Create before destroy for ACM certificates
Ensure Create before destroy for ACM certificates
Where
- ../../stacks/deductions/terraform/modules/deductions-private/mq-admin/alb.tf:192
- ../../stacks/ehr-repo/terraform/route53.tf:17
- ../../stacks/gp2gp-messenger/terraform/route53.tf:13
- ../../stacks/mhs/terraform/mhs_outbound.tf:442
- ../../stacks/pds-adaptor/terraform/route53.tf:30
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
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
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
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
Medium Ensure that AWS Lambda function is configured inside a VPC
Ensure that AWS Lambda function is configured inside a VPC
Where
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
- ../../stacks/deductions/terraform/s3.tf:5
- ../../stacks/deductions/terraform/s3.tf:91
- ../../stacks/ehr-transfer-service/terraform/s3.tf:5
- ../../stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
Medium Ensure AWS Load Balancer doesn't use HTTP protocol
Ensure AWS Load Balancer doesn't use HTTP protocol
Where
- ../../stacks/ehr-out-service/terraform/alb_internal.tf:81
- ../../stacks/ehr-repo/terraform/alb-internal.tf:105
- ../../stacks/gp2gp-messenger/terraform/alb-internal.tf:81
- ../../stacks/pds-adaptor/terraform/alb-internal.tf:95
Medium X-Ray tracing is enabled for Lambda
X-Ray tracing is enabled for Lambda
Where
- ../../stacks/deductions/terraform/ehr_deletion_lambda.tf:1
- ../../stacks/deductions/terraform/generate_cost_report.tf:1
- ../../stacks/deductions/terraform/notification_lambda.tf:6
- ../../stacks/suspension-service/terraform/modules/suspension-service/lambda.tf:11
Medium Missing S3 Lifecycle Policy
S3 bucket without lifecycle rules. Objects are retained indefinitely, increasing storage costs.
How to fix
Define lifecycle rules to transition objects to cheaper storage classes (e.g., Glacier) or delete them after a retention period.
Where
- stacks/ehr-transfer-service/terraform/s3.tf:5
- stacks/suspension-service/terraform/modules/suspension-service/s3.tf:5
- stacks/deductions/terraform/s3.tf:5
- stacks/ehr-repo/terraform/s3.tf:6
Medium Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Where
- ../../stacks/base-infra/public_zone.tf:1
- ../../stacks/base-infra/public_zone.tf:21
- ../../stacks/deductions/terraform/public_zone.tf:1
Medium Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Where
- ../../stacks/base-infra/public_zone.tf:1
- ../../stacks/base-infra/public_zone.tf:21
- ../../stacks/deductions/terraform/public_zone.tf:1
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
- ../../stacks/deductions/terraform/s3.tf:173
- ../../stacks/deductions/terraform/s3.tf:241
- ../../stacks/ehr-transfer-service/terraform/s3.tf:73
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../stacks/deductions/terraform/dynamo.tf:5
- ../../stacks/deductions/terraform/modules/deductions-core/vpc.tf:1
- ../../stacks/deductions/terraform/modules/deductions-private/vpc.tf:1
Medium Ensure that all NACL are attached to subnets
Ensure that all NACL are attached to subnets
Where
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:1
- ../../stacks/deductions/terraform/modules/mhs/nacl.tf:1
Medium Ensure that Auto Scaling is enabled on your DynamoDB tables
Ensure that Auto Scaling is enabled on your DynamoDB tables
Where
- ../../stacks/mhs/terraform/dynamodb.tf:2
- ../../stacks/mhs/terraform/dynamodb.tf:26
Medium Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Where
- ../../stacks/mhs/terraform/dynamodb.tf:2
- ../../stacks/mhs/terraform/dynamodb.tf:26
Medium Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Where
- ../../stacks/deductions-cross-account/terraform/iam-environment/iam_gocd.tf:27
- ../../stacks/deductions-cross-account/terraform/iam-environment/iam_users.tf:29
and 15 more groups with 17 findings
Low 2
Low Elastic IP Usage
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
- stacks/mhs/terraform/mhs_inbound.tf:292
- stacks/deductions/terraform/modules/mhs/nat-gateway.tf:13
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository; 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.