Created
January 28, 2021 22:26
-
-
Save scarolan/2516654c453f480a4981d8e884c139e1 to your computer and use it in GitHub Desktop.
Terraform for Lacework AWS Cloudtrail and Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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