-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic update for
google_kms_crypto_key
resource (#1511)
* Add basic update for `google_kms_crypto_key` resource Prior to this commit, any changes to `rotation_period` would force a new resource as no `Update` was defined for the resource. This commit introduces a basic `Update` through calling the `Patch` service method. It only modifies the `rotation_period`, and `next_rotation_time` at the moment, but this is reflective of what is "allowed" on https://console.cloud.google.com/security/kms. * Remove unused `Purpose` value in `CryptoKey` We are only patching the `rotation_period`, and `next_rotation_time`, so that value will not be affected. * nit: format `Patch` operation to be in a single line * Extend `TestAccKmsCryptoKey_rotation` test steps - Test change in rotation period - Test removal of rotation period * Do not parse `NextRotationTime` if it is not set * remove ForceNew: false
- Loading branch information
1 parent
62f5ee3
commit b4be2fa
Showing
2 changed files
with
85 additions
and
1 deletion.
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