BACK TO LIST

Terraform rules

Codiga Static Analysis engine checks all terraform code and surface security and safety issues as well as enforcement of best practices. No matter what cloud you use (AWS, GCP, Azure), Codiga got you covered and flags potential problems at every push and pull request.

CKV_AWS_103

Best practice
Informational

Ensure that load balancer is using TLS 1.2

Learn more

CKV_AWS_107

Best practice
Informational

Ensure IAM policies does not allow credentials exposure

CKV_AWS_108

Best practice
Informational

Ensure IAM policies does not allow data exfiltration

CKV_AWS_109

Best practice
Informational

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

CKV_AWS_110

Best practice
Informational

Ensure IAM policies does not allow privilege escalation

CKV_AWS_111

Best practice
Informational

Ensure IAM policies does not allow write access without constraints

CKV_AWS_115

Best practice
Informational

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

CKV_AWS_116

Best practice
Informational

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

CKV_AWS_117

Best practice
Informational

Ensure that AWS Lambda function is configured inside a VPC

CKV_AWS_118

Best practice
Informational

Ensure that enhanced monitoring is enabled for Amazon RDS instances

CKV_AWS_119

Best practice
Informational

Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK

CKV_AWS_124

Best practice
Informational

Ensure that CloudFormation stacks are sending event notifications to an SNS topic

CKV_AWS_126

Best practice
Informational

Ensure that detailed monitoring is enabled for EC2 instances

CKV_AWS_127

Best practice
Informational

Ensure that Elastic Load Balancer(s) uses SSL certificates provided by AWS Certificate Manager

CKV_AWS_129

Best practice
Informational

Ensure that respective logs of Amazon Relational Database Service (Amazon RDS) are enabled

CKV_AWS_130

Best practice
Informational

Ensure VPC subnets do not assign public IP by default

CKV_AWS_131

Best practice
Informational

Ensure that ALB drops HTTP headers

CKV_AWS_134

Best practice
Informational

Ensure that Amazon ElastiCache Redis clusters have automatic backup turned on

CKV_AWS_135

Best practice
Informational

Ensure that EC2 is EBS optimized

CKV_AWS_136

Best practice
Informational

Ensure that ECR repositories are encrypted using KMS

CKV_AWS_144

Best practice
Informational

Ensure that S3 bucket has cross-region replication enabled

CKV_AWS_145

Best practice
Informational

Ensure that S3 buckets are encrypted with KMS by default

CKV_AWS_147

Best practice
Informational

Ensure that CodeBuild projects are encrypted

CKV_AWS_148

Best practice
Informational

Ensure no default VPC is planned to be provisioned

CKV_AWS_149

Best practice
Informational

Ensure that Secrets Manager secret is encrypted using KMS

CKV_AWS_150

Best practice
Informational

Ensure that Load Balancer has deletion protection enabled

CKV_AWS_157

Best practice
Informational

Ensure that RDS instances have Multi-AZ enabled

CKV_AWS_158

Best practice
Informational

Ensure that CloudWatch Log Group is encrypted by KMS

CKV_AWS_16

Best practice
Informational

Ensure all data stored in the RDS is securely encrypted at rest

CKV_AWS_161

Best practice
Informational

Ensure RDS database has IAM authentication enabled

CKV_AWS_163

Best practice
Informational

Ensure ECR image scanning on push is enabled

CKV_AWS_168

Best practice
Informational

Ensure SQS queue policy is not public by only allowing specific services or principals to access it

CKV_AWS_17

Best practice
Informational

Ensure all data stored in RDS is not publicly accessible

CKV_AWS_173

Best practice
Informational

Check encryption settings for Lambda environmental variable

CKV_AWS_18

Best practice
Informational

Ensure the S3 bucket has access logging enabled

CKV_AWS_19

Best practice
Informational

Ensure all data stored in the S3 bucket is securely encrypted at rest

CKV_AWS_2

Best practice
Informational

Ensure ALB protocol is HTTPS

CKV_AWS_20

Best practice
Informational

S3 Bucket has an ACL defined which allows public READ access.

CKV_AWS_21

Best practice
Informational

Ensure all data stored in the S3 bucket have versioning enabled

CKV_AWS_23

Best practice
Informational

Ensure every security groups rule has a description

CKV_AWS_24

Best practice
Informational

Ensure no security groups allow ingress from 0.0.0.0:0 to port 22

CKV_AWS_25

Best practice
Informational

Ensure no security groups allow ingress from 0.0.0.0:0 to port 3389

CKV_AWS_26

Best practice
Informational

Ensure all data stored in the SNS topic is encrypted

CKV_AWS_27

Best practice
Informational

Ensure all data stored in the SQS queue is encrypted

CKV_AWS_28

Best practice
Informational

Ensure Dynamodb point in time recovery (backup) is enabled

CKV_AWS_3

Best practice
Informational

Ensure all data stored in the EBS is securely encrypted

CKV_AWS_30

Best practice
Informational

Ensure all data stored in the Elasticache Replication Group is securely encrypted at transit

CKV_AWS_31

Best practice
Informational

Ensure all data stored in the Elasticache Replication Group is securely encrypted at transit and has auth token

CKV_AWS_34

Best practice
Informational

Ensure cloudfront distribution ViewerProtocolPolicy is set to HTTPS

CKV_AWS_40

Best practice
Informational

Ensure IAM policies are attached only to groups or roles (Reducing access management complexity may in-turn reduce opportunity for a principal to inadvertently receive or retain excessive privileges.)

CKV_AWS_41

Best practice
Informational

Ensure no hard coded AWS access key and secret key exists in provider

CKV_AWS_50

Best practice
Informational

X-ray tracing is enabled for Lambda

CKV_AWS_51

Best practice
Informational

Ensure ECR Image Tags are immutable

CKV_AWS_52

Best practice
Informational

Ensure S3 bucket has MFA delete enabled

CKV_AWS_54

Best practice
Informational

Ensure S3 bucket has block public policy enabled

CKV_AWS_56

Best practice
Informational

Ensure S3 bucket has 'restrict\_public\_bucket' enabled

CKV_AWS_59

Best practice
Informational

Ensure there is no open access to back-end resources through API

CKV_AWS_65

Best practice
Informational

Ensure container insights are enabled on ECS cluster

CKV_AWS_66

Best practice
Informational

Ensure that CloudWatch Log Group specifies retention days

CKV_AWS_68

Best practice
Informational

CloudFront Distribution should have WAF enabled

CKV_AWS_7

Best practice
Informational

Ensure rotation for customer created CMKs is enabled

CKV_AWS_76

Best practice
Informational

Ensure API Gateway has Access Logging enabled

CKV_AWS_79

Best practice
Informational

Ensure Instance Metadata Service Version 1 is not enabled

CKV_AWS_8

Best practice
Informational

Ensure all data stored in the Launch configuration EBS is securely encrypted

CKV_AWS_86

Best practice
Informational

Ensure Cloudfront distribution has Access Logging enabled

CKV_AWS_88

Best practice
Informational

EC2 instance should not have public IP.

CKV_AWS_91

Best practice
Informational

Ensure the ELBv2 (Application/Network) has access logging enabled

CKV_AWS_92

Best practice
Informational

Ensure the ELB has access logging enabled

CKV_AWS_98

Best practice
Informational

Ensure all data stored in the Sagemaker Endpoint is securely encrypted at rest

CKV_GCP_12

Best practice
Informational

Ensure Network Policy is enabled on Kubernetes Engine Clusters

CKV_GCP_13

Best practice
Informational

Ensure a client certificate is used by clients to authenticate to Kubernetes Engine Clusters

CKV_GCP_14

Best practice
Informational

Ensure all Cloud SQL database instance have backup configuration enabled

CKV_GCP_18

Best practice
Informational

Ensure GKE Control Plane is not public

CKV_GCP_19

Best practice
Informational

Ensure GKE basic auth is disabled

CKV_GCP_2

Best practice
Informational

Ensure Google compute firewall ingress does not allow unrestricted ssh access

CKV_GCP_20

Best practice
Informational

Ensure master authorized networks is set to enabled in GKE clusters

CKV_GCP_21

Best practice
Informational

Ensure Kubernetes Clusters are configured with Labels

CKV_GCP_23

Best practice
Informational

Ensure Kubernetes Cluster is created with Alias IP ranges enabled

CKV_GCP_24

Best practice
Informational

Ensure PodSecurityPolicy controller is enabled on the Kubernetes Engine Clusters

CKV_GCP_25

Best practice
Informational

Ensure Kubernetes Cluster is created with Private cluster enabled

CKV_GCP_26

Best practice
Informational

Ensure that VPC Flow Logs is enabled for every subnet in a VPC Network

CKV_GCP_29

Best practice
Informational

Ensure that Cloud Storage buckets have uniform bucket-level access enabled

CKV_GCP_30

Best practice
Informational

Ensure that instances are not configured to use the default service account

CKV_GCP_32

Best practice
Informational

Ensure 'Block Project-wide SSH keys' is enabled for VM instances

CKV_GCP_38

Best practice
Informational

Ensure VM disks for critical VMs are encrypted with Customer Supplied Encryption Keys (CSEK)

CKV_GCP_39

Best practice
Informational

Ensure Compute instances are launched with Shielded VM enabled

CKV_GCP_6

Best practice
Informational

Ensure all Cloud SQL database instance requires all incoming connections to use SSL

CKV_GCP_61

Best practice
Informational

Enable VPC Flow Logs and Intranode Visibility

CKV_GCP_62

Best practice
Informational

Bucket should log access

CKV_GCP_64

Best practice
Informational

Ensure clusters are created with Private Nodes

CKV_GCP_65

Best practice
Informational

Manage Kubernetes RBAC users with Google Groups for GKE

CKV_GCP_66

Best practice
Informational

Ensure use of Binary Authorization

CKV_GCP_67

Best practice
Informational

Ensure legacy Compute Engine instance metadata APIs are Disabled

CKV_GCP_69

Best practice
Informational

Ensure the GKE Metadata Server is Enabled

CKV_GCP_70

Best practice
Informational

Ensure the GKE Release Channel is set

CKV_GCP_71

Best practice
Informational

Ensure Shielded GKE Nodes are Enabled

CKV_GIT_1

Best practice
Informational

Ensure Repository is Private

CKV2_AWS_1

Best practice
Informational

Ensure that all NACL are attached to subnets

CKV2_AWS_11

Best practice
Informational

Ensure VPC flow logging is enabled in all VPCs

CKV2_AWS_12

Best practice
Informational

Ensure the default security group of every VPC restricts all traffic

CKV2_AWS_16

Best practice
Informational

Ensure that Auto Scaling is enabled on your DynamoDB tables

CKV2_AWS_17

Best practice
Informational

Ensure that EC2 instances belong to a VPC

CKV2_AWS_18

Best practice
Informational

Ensure that Elastic File System (Amazon EFS) file systems are added in the backup plans of AWS Backup

CKV2_AWS_19

Best practice
Informational

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

CKV2_AWS_2

Best practice
Informational

Ensure that only encrypted EBS volumes are attached to EC2 instances

CKV2_AWS_20

Best practice
Informational

Ensure that ALB redirects HTTP requests into HTTPS ones

CKV2_AWS_23

Best practice
Informational

Route53 A Record has Attached Resource

CKV2_AWS_27

Best practice
Informational

Postgres RDS has Query Logging enabled

CKV2_AWS_28

Best practice
Informational

Ensure public facing ALB are protected by WAF

CKV2_AWS_5

Best practice
Informational

Ensure that Security Groups are attached to an other resource

CKV2_AWS_6

Best practice
Informational

Ensure that S3 bucket has a Public Access block

CKV2_AWS_9

Best practice
Informational

Ensure that EBS are added in the backup plans of AWS Backup

CKV_GLB_1

Best practice
Informational

Ensure at least two approving reviews to merge

CKV_AZURE_67

Best practice
Informational

Ensure that 'HTTP Version' is the latest, if used to run the Function app

CKV_AZURE_71

Best practice
Informational

Ensure that Managed identity provider is enabled for app services

CKV_AZURE_88

Best practice
Informational

Ensure that app services use Azure Files

CKV2_AZURE_12

Best practice
Informational

Ensure that virtual machines are backed up using Azure Backup

CKV2_AZURE_7

Best practice
Informational

Ensure that Azure Active Directory Admin is configured

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.