Skip to content

Commit

Permalink
sipping checkov scans
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed May 2, 2024
1 parent 0d804f7 commit c45e921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infra/load_balancer.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb
resource "aws_lb" "app_lb" {
#checkov:skip=CKV_AWS_91: Access logging is disabled since this is non-prod.
#checkov:skip=CKV2_AWS_20: This is disabled since this is non-prod.
#checkov:skip=CKV2_AWS_28: This is disabled since this is non-prod.
name = var.name
load_balancer_type = "application"
subnets = [for subnet in aws_subnet.public : subnet.id]
Expand All @@ -25,6 +28,8 @@ resource "aws_lb_target_group" "target_group" {

#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener
resource "aws_alb_listener" "listener" {
#checkov:skip=CKV_AWS_2: This is disabled since this is non-prod.
#checkov:skip=CKV_AWS_103: This is disabled since this is non-prod.
load_balancer_arn = aws_lb.app_lb.id
port = 8080
protocol = "HTTP"
Expand Down
1 change: 1 addition & 0 deletions infra/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "aws_service_discovery_http_namespace" "namespace" {
description = "The namespace for the ECS cluster. "
}
resource "aws_vpc" "this" {
#checkov:skip=CKV2_AWS_11: This is non prod and hence disabled.
cidr_block = var.vpc_cidr
enable_dns_hostnames = true
enable_dns_support = true
Expand Down

0 comments on commit c45e921

Please sign in to comment.