Terraform Sentinel v2 Imports Are Now GA
Last month we announced a technical preview of the next generation of Sentinel imports in Terraform Cloud. We are now happy to announce the API is stable and generally available for use in production for Terraform Sentinel policies.
These imports still need to be imported using the additional "/v2" suffix at this point in time, so make sure to use import "tfconfig/v2"
, import "tfplan/v2"
and import "tfstate/v2"
in your Sentinel policies. In the future, these imports will be transitioned into the default path and the old v1 import API will be sunsetted. When this is done, an option to control this behavior will be provided in Terraform Cloud.
For the most up to date documentation on the imports, check out these pages within the Terraform Cloud documentation.
Sentinel is offered in Terraform Cloud as part of the Team and Governance Tier or in Terraform Enterprise. To get started with Terraform Cloud, you can sign up for a free account. Finally, if you are an existing TFC or TFE customer, and you have feedback regarding the new imports, submit a support ticket and let us know.
Sign up for the latest HashiCorp news
More blog posts like this one
Which Terraform workflow should I use? VCS, CLI, or API?
Learn about the three levels of HCP Terraform run workflows and key considerations to guide your decision on when to use each approach.
Access Azure from HCP Terraform with OIDC federation
Securely access Azure from HCP Terraform using OIDC federation, eliminating the need to use long-lived credentials for authentication.
Enabling fast, safe migration to HCP Terraform with Terraform migrate (tf-migrate)
There’s a faster, safer way to migrate your infrastructure state files from Terraform Community Edition to HCP Terraform and Terraform Enterprise.