在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hashicorp/terraform-foundational-policies-library开源软件地址(OpenSource Url):https://github.com/hashicorp/terraform-foundational-policies-library开源编程语言(OpenSource Language):HCL 100.0%开源软件介绍(OpenSource Introduction):Terraform Foundational Policies LibraryThis repository contains a library of policies that can be used within Terraform Cloud to accelerate your adoption of policy as code. To learn more about the Sentinel language and framework, please review the Sentinel documentation. Table of Contents
PrerequisitesBefore you start adopting some of the policies within this library, it is recommended that you do the following:
DocumentationThe file and directory structure within this repository has been designed to have a descriptive .
└── ROOT
└── CLOUD
└── CATEGORY
└── POLICY
└── ... All
Setup & IntegrationBefore you can use any of the policies within this library, you will need to configure Terraform Cloud. The following sections detail the high-level steps required to deploy a policy from the foundational policies library. The Enforce Policy with Sentinel learning track covers the end-to-end process in greater detail. If this is the first time you are setting up a Sentinel policy, we encourage you to familiarize yourself with this track prior to continuing further. Version Control System (VCS)Terraform Cloud provides first-class support for VCS integration. This allows VCS repositories to contain all of the policies and configuration needed to manage Sentinel policy at scale. Integrating with VCS is as simple as:
Policy Set ConfigurationOnce the VCS is integrated with Terraform Cloud, start to configure your Terraform Policy Set as follows:
Policy Set ManagementNow that the Policy Set is configured, it is time to enforce this configuration on a Terraform Cloud workspace. This is achieved by:
To test the configuration, navigate to the target workspace and queue a new plan. The policy check phase should now appear in the run details, and see the newly created policy will execute and return the state of the policy evaluation (i.e. The image below shows the output of an example policy evaluation: Policy GuidesCenter for Internet Security (CIS)
Useful Resources
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论