google_kms_crypto_key_versions resource
Use the google_kms_crypto_key_versions InSpec audit resource to to test a Google Cloud CryptoKeyVersion resource.
Examples
describe google_kms_crypto_key_versions(project: 'chef-gcp-inspec', location: 'europe-west2', key_ring: 'kms-key-ring', crypto_key: '') do
its('count') { should be >= 1 }
its('crypto_key_names') { should include 'kms-key' }
end
Properties
Properties that can be accessed from the google_kms_crypto_key_versions resource:
See google_kms_crypto_key_version for more detailed information.
names: an array ofgoogle_kms_crypto_key_versionnamecreate_times: an array ofgoogle_kms_crypto_key_versioncreate_timegenerate_times: an array ofgoogle_kms_crypto_key_versiongenerate_timedestroy_times: an array ofgoogle_kms_crypto_key_versiondestroy_timedestroy_event_times: an array ofgoogle_kms_crypto_key_versiondestroy_event_timestates: an array ofgoogle_kms_crypto_key_versionstateprotection_levels: an array ofgoogle_kms_crypto_key_versionprotection_levelalgorithms: an array ofgoogle_kms_crypto_key_versionalgorithmattestations: an array ofgoogle_kms_crypto_key_versionattestationimport_jobs: an array ofgoogle_kms_crypto_key_versionimport_jobimport_times: an array ofgoogle_kms_crypto_key_versionimport_timeimport_failure_reasons: an array ofgoogle_kms_crypto_key_versionimport_failure_reasonexternal_protection_level_options: an array ofgoogle_kms_crypto_key_versionexternal_protection_level_optionsreimport_eligibles: an array ofgoogle_kms_crypto_key_versionreimport_eligiblekey_rings: an array ofgoogle_kms_crypto_key_versionkey_ringcrypto_keys: an array ofgoogle_kms_crypto_key_versioncrypto_key
Filter criteria
This resource supports all of the above properties as filter criteria, which can be used
with where as a block or a method.
GCP permissions
Ensure the Cloud Key Management Service (KMS) API is enabled for the current project.