Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Customer Managed Keys & MWS workspace to match new API #642

Merged
merged 1 commit into from
May 12, 2021

Conversation

alexott
Copy link
Contributor

@alexott alexott commented May 12, 2021

Due the changes in the Accounts API we need to do following changes:

  • Add required attribute use_cases to databricks_mws_customer_managed_keys resource
  • The customer_managed_key_id field in databricks_mws_workspaces resource is deprecated and should be replaced with managed_services_customer_managed_key_id (and optionally storage_customer_managed_key_id). The customer_managed_key_id field is left for compatibility, and automatically converted into managed_services_customer_managed_key_id. It will be completely removed in the next versions

This fixes #641

@alexott alexott requested review from nfx and stikkireddy May 12, 2021 08:02
Due the changes in the Accounts API we need to do following changes:
* Add required attribute `use_cases` to `databricks_mws_customer_managed_keys` resource
* The `customer_managed_key_id` field in `databricks_mws_workspaces` resource is
  deprecated and should be replaced with `managed_services_customer_managed_key_id` (and
  optionally `storage_customer_managed_key_id`).  The `customer_managed_key_id` field is
  left for compatibility, and automatically converted into
  `managed_services_customer_managed_key_id`.  It will be completely removed in the next
  versions

This fixes #641
@codecov
Copy link

codecov bot commented May 12, 2021

Codecov Report

Merging #642 (27b6916) into master (16a23d4) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #642      +/-   ##
==========================================
+ Coverage   82.95%   82.98%   +0.02%     
==========================================
  Files          85       85              
  Lines        7803     7816      +13     
==========================================
+ Hits         6473     6486      +13     
  Misses        859      859              
  Partials      471      471              
Impacted Files Coverage Δ
mws/resource_customer_managed_key.go 80.95% <ø> (ø)
mws/resource_workspace.go 82.06% <100.00%> (+1.76%) ⬆️

@nfx
Copy link
Contributor

nfx commented May 12, 2021

thank you for picking this up

@nfx nfx added this to the v0.3.4 milestone May 12, 2021
@nfx nfx merged commit c84430d into master May 12, 2021
@nfx nfx deleted the cmk-fixes-new-api branch May 12, 2021 08:13
@nfx nfx mentioned this pull request May 12, 2021
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
…icks#642)

Due the changes in the Accounts API we need to do following changes:
* Add required attribute `use_cases` to `databricks_mws_customer_managed_keys` resource
* The `customer_managed_key_id` field in `databricks_mws_workspaces` resource is
  deprecated and should be replaced with `managed_services_customer_managed_key_id` (and
  optionally `storage_customer_managed_key_id`).  The `customer_managed_key_id` field is
  left for compatibility, and automatically converted into
  `managed_services_customer_managed_key_id`.  It will be completely removed in the next
  versions

This fixes databricks#641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ISSUE] databricks_mws_customer_managed_keys resource not setting use_cases array for the REST API
2 participants