Skip to content

Terraform module to onboard pre-written Sentinel policy sets, enabling seamless policy enforcement in Terraform workflows.

License

Notifications You must be signed in to change notification settings

hashicorp/terraform-AWS-CIS-Policy-Set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(Beta) Terraform Module to onboard Pre-written Sentinel Policies for CIS AWS Foundations Benchmark

This repository hosts the pre-written-policy Terraform module, designed to simplify the onboarding of pre-written Sentinel policies into your Terraform environment. This module enables the creation of Policy Sets for pre-written Sentinel policies for CIS AWS Foundations Benchmark, ensuring consistent compliance and governance across your Terraform workflows.

Steps to run the configuration

module "cis_v1-2-0_policies" {
  source = "./pre-written-policy"

  name                                 = "<your-policy-set>"
  tfe_organization                     = "<your-tfe-org>"
  policy_set_workspace_names           = ["target_workspace_1"]
}
  • Run terraform plan to view the plan.
  • Run terraform apply to apply the changes.
  • After successful creation, you should see Sentinel policies getting evaluated in every run of every workspace where the policy set is scoped to.

Authors

HashiCorp Engineering Team.

License

Business Source License 1.1. See LICENSE for full details.

About

Terraform module to onboard pre-written Sentinel policy sets, enabling seamless policy enforcement in Terraform workflows.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages