InfraScan Cloud

Repository scan

Repository

branch main

FOverall
FSecurity
–Reliability · N/A
FCost
430findings · 0 critical, 17 high
—no cost findings with a savings estimate

High 17

High Missing AWS Budget Cost · 16 places

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 Cost · 1 place

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 Security · 74 places

AWS SSM Parameter should be Encrypted

Documentation

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 Security · 29 places

Ensure every security group and rule has a description

Documentation

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 Security · 28 places

Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions

Documentation

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 Security · 24 places

Ensure IAM policies does not allow write access without constraints

Documentation

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 Security · 16 places

Ensure that ECR repositories are encrypted using KMS

Documentation

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 Security · 16 places

Ensure ECR image scanning on push is enabled

Documentation

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 Cost · 16 places

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 Security · 15 places

Ensure IAM policies does not allow permissions management / resource exposure without constraints

Documentation

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 Security · 12 places

Ensure that CloudWatch Log Group is encrypted by KMS

Documentation

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 Security · 12 places

Ensure CloudWatch log groups retains logs for at least 1 year

Documentation

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 Security · 12 places

Ensure that CloudWatch Log Group specifies retention days

Documentation

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 Security · 9 places

Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances

Documentation

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 Security · 9 places

Ensure that an S3 bucket has a lifecycle configuration

Documentation

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 Security · 9 places

Ensure S3 buckets should have event notifications enabled

Documentation

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 Security · 9 places

Ensure that S3 bucket has cross-region replication enabled

Documentation

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 Security · 9 places

Ensure that S3 buckets are encrypted with KMS by default

Documentation

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 Cost · 7 places

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 Security · 6 places

Ensure that Security Groups are attached to another resource

Documentation

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 Security · 6 places

Ensure NACL ingress does not allow all Ports

Documentation

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 Security · 5 places

Ensure that ALB redirects HTTP requests into HTTPS ones

Documentation

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 Security · 5 places

Ensure that load balancer is using at least TLS 1.2

Documentation

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 Security · 5 places

Ensure ALB protocol is HTTPS

Documentation

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 Security · 5 places

Ensure Create before destroy for ACM certificates

Documentation

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 Security · 4 places

Ensure that AWS Lambda function is configured for function-level concurrent execution limit

Documentation

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) Security · 4 places

Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)

Documentation

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 Security · 4 places

Ensure that AWS Lambda function is configured inside a VPC

Documentation

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 Security · 4 places

Check encryption settings for Lambda environmental variable

Documentation

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 Reliability · 4 places

Ensure all data stored in the S3 bucket have versioning enabled

Documentation

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 Security · 4 places

Ensure AWS Lambda function is configured to validate code-signing

Documentation

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 Security · 4 places

Ensure AWS Load Balancer doesn't use HTTP protocol

Documentation

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 Security · 4 places

X-Ray tracing is enabled for Lambda

Documentation

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 Cost · 4 places

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 Security · 3 places

Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones

Documentation

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 Security · 3 places

Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones

Documentation

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 Security · 3 places

Ensure the S3 bucket has access logging enabled

Documentation

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 Security · 3 places

Ensure Terraform module sources use a commit hash

Documentation

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 Security · 2 places

Ensure that all NACL are attached to subnets

Documentation

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 Security · 2 places

Ensure that Auto Scaling is enabled on your DynamoDB tables

Documentation

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 Security · 2 places

Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK

Documentation

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 Security · 2 places

Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy

Documentation

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 Cost · 2 places

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.