Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 2.19 KB

google_kms_crypto_key_versions.md

File metadata and controls

44 lines (37 loc) · 2.19 KB
title platform
About the google_kms_crypto_key_versions resource
gcp

Syntax

A google_kms_crypto_key_versions is used to test a Google 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.md for more detailed information

  • names: an array of google_kms_crypto_key_version name
  • create_times: an array of google_kms_crypto_key_version create_time
  • generate_times: an array of google_kms_crypto_key_version generate_time
  • destroy_times: an array of google_kms_crypto_key_version destroy_time
  • destroy_event_times: an array of google_kms_crypto_key_version destroy_event_time
  • states: an array of google_kms_crypto_key_version state
  • protection_levels: an array of google_kms_crypto_key_version protection_level
  • algorithms: an array of google_kms_crypto_key_version algorithm
  • attestations: an array of google_kms_crypto_key_version attestation
  • import_jobs: an array of google_kms_crypto_key_version import_job
  • import_times: an array of google_kms_crypto_key_version import_time
  • import_failure_reasons: an array of google_kms_crypto_key_version import_failure_reason
  • external_protection_level_options: an array of google_kms_crypto_key_version external_protection_level_options
  • reimport_eligibles: an array of google_kms_crypto_key_version reimport_eligible
  • key_rings: an array of google_kms_crypto_key_version key_ring
  • crypto_keys: an array of google_kms_crypto_key_version crypto_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.