InfraScan Cloud

Repository scan

terraform-keycloak-aws

deadlysyn/terraform-keycloak-aws · branch main · scanned 27 Feb 2026 · 26 resources

DOverall
DSecurity
–Reliability · N/A
CCost
23findings · 0 critical, 2 high
—no cost findings with a savings estimate

High 2

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

High Missing AWS Budget Cost · 1 place

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

Medium 20

Medium Ensure Terraform module sources use a commit hash Security · 6 places
Medium Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances Security · 2 places

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

Documentation

Where

Medium Ensure every security group and rule has a description Security · 2 places

Ensure every security group and rule has a description

Documentation

Where

Medium Ensure SSM parameters are using KMS CMK Security · 2 places
Medium Missing Spot Instance Usage Cost · 2 places

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

Medium Ensure VPC flow logging is enabled in all VPCs Security · 1 place

Ensure VPC flow logging is enabled in all VPCs

Documentation

Where

Medium Ensure the default security group of every VPC restricts all traffic Security · 1 place

Ensure the default security group of every VPC restricts all traffic

Documentation

Where

Medium Ensure that CloudWatch Log Group is encrypted by KMS Security · 1 place

Ensure that CloudWatch Log Group is encrypted by KMS

Documentation

Where

Medium Ensure CloudWatch log groups retains logs for at least 1 year Security · 1 place

Ensure CloudWatch log groups retains logs for at least 1 year

Documentation

Where

Medium Ensure no security groups allow egress from 0.0.0.0:0 to port -1 Security · 1 place

Ensure no security groups allow egress from 0.0.0.0:0 to port -1

Documentation

Where

Medium Missing Cost and Usage Report Cost · 1 place

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 1

Low Elastic IP Usage Cost · 1 place

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

Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 27 Feb 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.