-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLOUDGA-17429] Add Azure CMK support to Terraform (#86)
Add azure cmk support Updated Mock Update Docs addressed comments
1 parent
be076b0
commit 4a528df
Showing
12 changed files
with
256 additions
and
12 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
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
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,54 @@ | ||
# EAR enabled single region cluster | ||
# The same cmk_spec can be used for multi region/read replica clusters as well | ||
# Encryption at rest is supported on clusters with database version 2.16.7.0 or later | ||
|
||
variable "ysql_password" { | ||
type = string | ||
description = "YSQL Password." | ||
sensitive = true | ||
} | ||
|
||
variable "ycql_password" { | ||
type = string | ||
description = "YCQL Password." | ||
sensitive = true | ||
} | ||
|
||
resource "ybm_cluster" "single_region" { | ||
cluster_name = "test-cluster-with-azure-cmk" | ||
# The cloud provider for the cluster is indepedent of the CMK Provider | ||
# eg. GCP cluster with AZURE CMK is supported | ||
cloud_type = "GCP" | ||
cluster_type = "SYNCHRONOUS" | ||
cluster_region_info = [ | ||
{ | ||
region = "us-west1" | ||
num_nodes = 6 | ||
} | ||
] | ||
cluster_tier = "PAID" | ||
# fault tolerance cannot be NONE for CMK enabled cluster | ||
fault_tolerance = "ZONE" | ||
cmk_spec = { | ||
provider_type = "AZURE" | ||
azure_cmk_spec = { | ||
client_id = "your-client-id" | ||
client_secret = "your-client-secret" | ||
tenant_id = "your-tenant-id" | ||
key_name = "your-key-name" | ||
key_vault_uri = "your-key-vault-uri" | ||
} | ||
is_enabled = true | ||
} | ||
|
||
node_config = { | ||
num_cores = 4 | ||
disk_size_gb = 50 | ||
} | ||
credentials = { | ||
ysql_username = "example_ysql_user" | ||
ysql_password = var.ysql_password | ||
ycql_username = "example_ycql_user" | ||
ycql_password = var.ycql_password | ||
} | ||
} |
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
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
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
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
30 changes: 30 additions & 0 deletions
30
mock_yugabytedb_managed_go_client_internal/mock_api_account.go
Oops, something went wrong.