forked from hashicorp/terraform-provider-azurerm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
azurerm_databricks_workspace - support for enhanced security complian…
…ce features (hashicorp#26606) * added 'enhanced_security_compliance' block to databricks workspace schema * added customized diff checks to verify databricks workspace 'enhanced_security_compliance' block * added premium sku check for databricks workspace 'enhanced_security_compliance' * added 'enhanced_security_compliance' block to read and create/update methods * documented new 'enhanced_security_compliance' block for 'azurerm_databricks_workspace' resource * Fixed bugs, added acceptance test * Fix schema linting check * Added data source support and corresponding acctest * PR feedbacks improvements #1: - Always set value into state - Simplified expansion logic - Acctests method renaming to conform with standards - Removed unnecessary parameterisation of acctest config method - Docs for datasource * PR feedbacks improvements 2: - Removed stray newline - Use pointer.From to prevent nil deref - Improved validation error msg * PR feedbacks improvements 3: - Replace single-quote with backticks on error messages - Remove RequiredWith from compliance_security_profile_standards - Remove redundant test checks - Improve datasource docs - Add 'defaults to' to resource doc --------- Co-authored-by: Gerry Tan <gerry.tan@microsoft.com>
- Loading branch information
1 parent
c5ca73a
commit 0b5023d
Showing
9 changed files
with
478 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Example: Databricks Workspace with Enhanced Security and Compliance | ||
|
||
This example provisions a Databricks Workspace within Azure with Enhanced Security and Compliance settings enabled. | ||
|
||
### Variables | ||
|
||
* `prefix` - (Required) The prefix used for all resources in this example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = "${var.prefix}-databricks-esc" | ||
location = "West Europe" | ||
} | ||
|
||
resource "azurerm_databricks_workspace" "example" { | ||
name = "${var.prefix}-DBW" | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
sku = "premium" | ||
managed_resource_group_name = "${var.prefix}-DBW-managed-esc" | ||
|
||
enhanced_security_compliance { | ||
automatic_cluster_update_enabled = true | ||
compliance_security_profile_enabled = true | ||
compliance_security_profile_standards = ["HIPAA", "PCI_DSS"] | ||
enhanced_security_monitoring_enabled = true | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
examples/databricks/enhanced-security-compliance/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
variable "prefix" { | ||
description = "The Prefix used for all resources in this example" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.