Browse the Repo
Browse the Repo
Modules and utilities certified by Gruntwork and CIS to comply with the CIS AWS Foundations Benchmark
This Terraform Module enables AWS Security Hub in every enabled region of your account. AWS Security Hub automates compliance checks, providing you with a central dashboard to view and assess security alerts and compliance status. This module can be used to set up automated and continuous checks for the CIS AWS Foundations Benchmark to know if your account complies.
Enable AWS Security Hub in all regions
Enable automated checks for the CIS AWS Foundations Benchmark
Invite external accounts as members
Accept invites from external accounts
|This repo is a part of the Gruntwork CIS AWS Foundations Benchmark Infrastructure as Code Library, a collection of reusable, battle-tested, production ready infrastructure code to achieve compliance with the CIS AWS Foundations Benchmark. If you’ve never used the Infrastructure as Code Library before, make sure to read How to use the Gruntwork Infrastructure as Code Library!|
|This module depends on python being available on the running system.|
How to achieve compliance with the CIS AWS Foundations Benchmark: Comprehensive overview of how Gruntwork modules help with achieving CIS compliance.
modules: the main implementation code for this repo, broken down into multiple standalone, orthogonal submodules.
cloudtrail wrapper module: A wrapper module for a compliant configuration of AWS CloudTrail
cloudwatch-logs-metric-filters wrapper module: A wrapper module to create a series of CloudWatch Logs metrics filters
cross-account-iam-roles wrapper module: A wrapper module to create IAM roles that can be used for assume roles between accounts
custom-iam-entity wrapper module: A wrapper module to create IAM groups and/or roles with a customized set of managed policies attached
iam-groups wrapper module: A wrapper module to create a best-practices set of IAM groups
iam-password-policy wrapper module: A wrapper module to create an compliant IAM password policy
saml-iam-roles wrapper module: A wrapper module to create a set of IAM roles to use with SAML identity providers
aws-securityhub module: A Terraform module for enabling AWS SecurityHub in all enabled regions of an account.
codegen: Code generation utilities that help generate modules in this repo.
generate-securityhub utility: A code generation program to enable AWS SecurityHub in all regions of an AWS account
examples: This folder contains working examples of how to use the submodules.
test: Automated tests for the modules and examples.
The compliance-related settings are hard-coded in this wrapper module. Otherwise, the module can be used in the same manner as the core module that it wraps. All variables are simply passed through.
For a comprehensive guide to achieving compliance using this repo, please refer to How to achieve compliance with the CIS AWS Foundations Benchmark.
If you need help with this repo or anything else related to infrastructure or DevOps, Gruntwork offers Commercial Support via Slack, email, and phone/video. If you’re already a Gruntwork customer, hop on Slack and ask away! If not, subscribe now. If you’re not sure, feel free to email us at firstname.lastname@example.org.
Contributions to this repo are very welcome and appreciated! If you find a bug or want to add a new feature or even contribute an entirely new module, we are very happy to accept pull requests, provide feedback, and run your changes through our automated test suite.
Please see Contributing to the Gruntwork Infrastructure as Code Library for instructions.
We're here to talk about our services, answer any questions, give advice, or just to chat.