Skip to main content

Module: security-hub

Terraform module to deploy AWS Security Hub.

Introduction

This module enables AWS Security Hub in one region of one account and optionally sets up an SNS topic to receive notifications of its findings.

Usage

For a complete example, see examples/complete.

For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test.

Here's how to invoke this module in your projects:

module "securityhub" {
source = "cloudposse/security-hub/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"

create_sns_topic = true
subscribers = {
opsgenie = {
protocol = "https"
endpoint = "https://api.example.com/v1/"
endpoint_auto_confirms = true
raw_message_delivery = false
}
}
}

Examples

Here is an example of using this module: