Skip to content

Instantly share code, notes, and snippets.

@scarolan
Created January 28, 2021 22:26
Show Gist options
  • Save scarolan/2516654c453f480a4981d8e884c139e1 to your computer and use it in GitHub Desktop.
Save scarolan/2516654c453f480a4981d8e884c139e1 to your computer and use it in GitHub Desktop.
Terraform for Lacework AWS Cloudtrail and Config
terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 0.2.7"
}
}
}
provider "aws" {}
provider "lacework" {}
module "aws_config" {
source = "lacework/config/aws"
version = "~> 0.1.3"
}
module "aws_cloudtrail" {
source = "lacework/cloudtrail/aws"
version = "~> 0.1.3"
bucket_force_destroy = true
use_existing_iam_role = true
iam_role_name = module.aws_config.iam_role_name
iam_role_arn = module.aws_config.iam_role_arn
iam_role_external_id = module.aws_config.external_id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment