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

Deprecate key_protect_key_id #3939

Merged
merged 5 commits into from
Aug 18, 2022

Conversation

omaraibrahim
Copy link
Collaborator

@omaraibrahim omaraibrahim commented Aug 1, 2022

key_protect_key_id is deprecated and has been replaced by backup_encryption_key_crn. Refactored code to add deprecated to key_protect_key_id. Updated docs as well.

Note that functionally no changes have been made.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'
--- PASS: TestAccIBMDatabaseDataSource_basic (585.66s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database	586.688s
...

Commands being run:

data "ibm_database" "test" {
  name = "20-056 Lorna Databases for MongoDB-iy"
  location = "us-south"
}

output "the_good_stuff" {
  value = data.ibm_database.test.platform_options
}

Before the changes

Changes to Outputs:
  + the_good_stuff = [
      + {
          + backup_encryption_key_crn = ""
          + disk_encryption_key_crn   = "crn:v1:bluemix:public:kms:au-syd:a/40ddc34a953a8c02f10987b59085b60e:673d0877-db09-4b48-ace8-28e677705ca2:key:8c80be4e-482a-42c3-803b-54f4d84abf85"
          + key_protect_key_id        = "crn:v1:bluemix:public:kms:au-syd:a/40ddc34a953a8c02f10987b59085b60e:673d0877-db09-4b48-ace8-28e677705ca2:key:8c80be4e-482a-42c3-803b-54f4d84abf85"
        },
    ]

After the changes

Changes to Outputs:
  + the_good_stuff = [
      + {
          + backup_encryption_key_crn = ""
          + disk_encryption_key_crn   = "crn:v1:bluemix:public:kms:au-syd:a/40ddc34a953a8c02f10987b59085b60e:673d0877-db09-4b48-ace8-28e677705ca2:key:8c80be4e-482a-42c3-803b-54f4d84abf85"
          + key_protect_key_id        = "crn:v1:bluemix:public:kms:au-syd:a/40ddc34a953a8c02f10987b59085b60e:673d0877-db09-4b48-ace8-28e677705ca2:key:8c80be4e-482a-42c3-803b-54f4d84abf85"
        },
    ]

@obai-1
Copy link
Collaborator

obai-1 commented Aug 5, 2022

Pls add a note with details of tests showing that the change is not forcing users to update their existing configurations, and also not interfering with tfstate.

@omaraibrahim
Copy link
Collaborator Author

@obai-1 updated :)

@hkantare hkantare merged commit f8d0ad3 into IBM-Cloud:master Aug 18, 2022
SunithaGudisagarIBM pushed a commit to ibm-vpc/terraform-provider-ibm that referenced this pull request Sep 14, 2022
* Modified platform options and deprecated key_protect_key_id

* deprecated key_protect_key_id

* added deprecation to docs

* removed comment

* removed another comment
SunithaGudisagarIBM pushed a commit to ibm-vpc/terraform-provider-ibm that referenced this pull request Sep 14, 2022
* Modified platform options and deprecated key_protect_key_id

* deprecated key_protect_key_id

* added deprecation to docs

* removed comment

* removed another comment
@omaraibrahim omaraibrahim deleted the icd/deprecate_key_protect_key branch November 17, 2022 18:01
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.

3 participants