Skip to content

dalerichardson/terraform-aws-tardigrade-security-hub

 
 

Repository files navigation

terraform-aws-tardigrade-security-hub

Terraform module to enable and configure SecurityHub. The module supports independent accounts with the top-level module, and the cross-account invite/accept workflow with the modules/cross-account-member module.

Testing

You can find example implementations of this module in the tests folder. This module requires 2 different AWS accounts to test and so the terraform aws provider definitions are assuming that you will be using a profile with the name resource-owner and resource-member.

Note: the implementation tests/create_securityhub_member will require you to provide the variables email_address prior to use

Requirements

Name Version
terraform >= 0.13
aws >= 3.29.0

Providers

No providers.

Resources

No resources.

Inputs

Name Description Type Default Required
action_targets Schema list of SecurityHub action targets.
list(object({
name = string
description = string
identifer = string
}))
[] no
product_subscription_arns List of product arns to subscribe to. See https://www.terraform.io/docs/providers/aws/r/securityhub_product_subscription.html list(string) [] no
standard_subscription_arns List of standard arns to subscribe to. See https://www.terraform.io/docs/providers/aws/r/securityhub_standards_subscription.html list(string) [] no

Outputs

Name Description
account Object containing the SecurityHub account resource
action_targets Object containing the SecurityHub action targets resources
subscriptions Object containing the SecurityHub subscriptions resources

About

Terraform module to create SecurityHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 84.5%
  • Go 13.4%
  • Makefile 1.8%
  • Dockerfile 0.3%