Gcloud kms error: crypto_key_version.state: DESTROYED, but ENABLED is required
Gcloud kms error: crypto_key_version.state: DESTROYED, but ENABLED is required
我正在尝试用 google 公里加密一个秘密,如下所示:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
并得到以下错误:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
非常感谢任何意见,因为我在 GCP 文档中找不到与此问题相关的任何内容
此错误表示密钥 material 不再存储。使用另一个密钥或更新此密钥
更多信息在这里:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
我正在尝试用 google 公里加密一个秘密,如下所示:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
并得到以下错误:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
非常感谢任何意见,因为我在 GCP 文档中找不到与此问题相关的任何内容
此错误表示密钥 material 不再存储。使用另一个密钥或更新此密钥 更多信息在这里: https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState