Skip to content

Commit

Permalink
fix(terraform): extend CKV2_AWS_5 to include aws_appstream_fleet (#5487
Browse files Browse the repository at this point in the history
…) (#5491)

* Add aws_appstream_fleet as connected resource for CKV2_AWS_5
  • Loading branch information
BondAnthony authored Aug 27, 2023
1 parent 4931dcd commit ae073a1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ definition:
connected_resource_types:
- aws_alb
- aws_apprunner_vpc_connector
- aws_appstream_fleet
- aws_batch_compute_environment
- aws_cloudwatch_event_target
- aws_codebuild_project
Expand Down Expand Up @@ -55,6 +56,6 @@ definition:
- aws_transfer_server
- aws_vpc_endpoint
- aws_vpclattice_service_network_vpc_association
operator: exists
operator: exists
attribute: networking
cond_type: connection
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pass:
- "aws_security_group.pass_alb"
- "aws_security_group.pass_app_runner"
- "aws_security_group.pass_appstream_fleet"
- "aws_security_group.pass_batch"
- "aws_security_group.pass_cloudwatch_event"
- "aws_security_group.pass_codebuild"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,29 @@ resource "aws_apprunner_vpc_connector" "pass_app_runner" {
security_groups = [aws_security_group.pass_app_runner.id]
}

# App Stream Fleet

resource "aws_security_group" "pass_appstream_fleet" {
ingress {
description = "TLS from VPC"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
}

resource "aws_appstream_fleet" "pass_appstream_fleet" {
name = "name"
instance_type = "stream.standard.large"
compute_capacity {
desired_instances = 1
}
vpc_config {
security_groups_ids = [aws_security_group.pass_appstream_fleet.id]
}
}

# Batch

resource "aws_security_group" "pass_batch" {
Expand Down Expand Up @@ -674,7 +697,7 @@ resource "aws_quicksight_vpc_connection" "pass_quicksight" {
name = "Example Connection"
role_arn = "aws_iam_role.vpc_connection_role.arn"
security_group_ids = [aws_security_group.pass_quicksight.id]
subnet_ids = ["subnet-00000000000000000"]
subnet_ids = ["subnet-00000000000000000"]
}

# RDS
Expand Down

0 comments on commit ae073a1

Please sign in to comment.