Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions iac-misconfiguration/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_security_group_rule" "my-rule" {
}

resource "aws_alb_listener" "my-alb-listener" {
port = "80"
port = "8080"
protocol = "HTTP"
}

Expand All @@ -15,7 +15,7 @@ resource "aws_db_security_group" "my-group" {

resource "aws_instance" "bad_user_data" {
user_data = <<EOF
DB_PASSWORD = "Some passwprkd"
DB_PASSWORD = "Some passwprkd2"
EOF
}

Expand All @@ -42,13 +42,13 @@ resource "aws_api_gateway_domain_name" "outdated_security_policy" {
}

resource "aws_api_gateway_domain_name" "valid_security_policy" {
security_policy = "TLS_1_2"
security_policy = "TLS_1_1"

Check failure

Code scanning / defsec

API Gateway domain name uses outdated SSL/TLS protocols.

Domain name is configured with an outdated TLS policy.

Check failure

Code scanning / Trivy

API Gateway domain name uses outdated SSL/TLS protocols.

Artifact: iac-misconfiguration/main.tf Type: terraform Vulnerability AVD-AWS-0005 Severity: HIGH Message: Domain name is configured with an outdated TLS policy. Link: [AVD-AWS-0005](https://avd.aquasec.com/misconfig/avd-aws-0005)
}

#tfsec:ignore:AWS092
resource "aws_dynamodb_table" "bad_example" {
name = "example"
hash_key = "TestTableHashKey"
hash_key = "TestTableHashKey2"
billing_mode = "PAY_PER_REQUEST"
stream_enabled = true
stream_view_type = "NEW_AND_OLD_IMAGES"
Expand All @@ -65,4 +65,4 @@ resource "aws_dynamodb_table" "bad_example" {

resource "aws_instance" "my_project" {

}
}