alexott / tfsec-databricks

Custom checks for tfsec for Databricks-related resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tfsec custom checks for Databricks-related resources

This repository has a number of the tfsec checks (security, costs tracking & optimization, ...) for Databricks-related resources:

Usage

  1. Install tfsec as described in the documentation.
  2. Clone this repository.
  3. Switch to the folder with your Terraform code & execute following command:
tfsec --custom-check-dir "<tfsec-databricks-directory>" .

You can always see tfsec-databricks in action by running it on the provided examples:

  1. Switch into examples directory of the cloned repository.
  2. Run following command:
tfsec --custom-check-dir $(pwd)/.. .

Future work

check that we have AWS VPC endpoints for s3, sts, kinesis-streams

doc

resource "aws_vpc_endpoint" "s3" {
  vpc_id          = module.vpc.vpc_id
  route_table_ids = module.vpc.private_route_table_ids
  service_name    = "com.amazonaws.${var.region}.s3"
  depends_on      = [module.vpc]
}

About

Custom checks for tfsec for Databricks-related resources

License:MIT License