pulumi / pulumi-gcp

A Google Cloud Platform (GCP) Pulumi resource package, providing multi-language access to GCP
Apache License 2.0
178 stars 51 forks source link

There is no way to set a CryptoKeyVersion as a primary. #1505

Open ar-qun opened 7 months ago

ar-qun commented 7 months ago

Hello!

Issue details

There doesn't seem to be any way to set a primary key version on the key. See API for the reference: https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys/updatePrimaryVersion

Affected area/feature

If I create a key without first version, it will be inactive and there is no way to set it via Pulumi GCP library, as far as I know.

https://www.pulumi.com/registry/packages/gcp/api-docs/kms/cryptokey/

iwahbe commented 7 months ago

Hey @ar-qun. Thanks for opening the issue.