title | platform |
---|---|
About the google_kms_crypto_keys resource |
gcp |
A google_kms_crypto_keys
is used to test a Google CryptoKey resource
describe google_kms_crypto_keys(project: 'chef-gcp-inspec', location: 'europe-west2', key_ring_name: 'kms-key-ring') do
its('count') { should be >= 1 }
its('crypto_key_names') { should include 'kms-key' }
end
describe google_kms_crypto_keys(project: 'chef-inspec-gcp', location: 'us-east1', key_ring_name: 'key-ring') do
its('count') { should be <= 100}
end
describe google_kms_crypto_keys(project: 'chef-inspec-gcp', location: 'us-east1', key_ring_name: 'key-ring') do
its('crypto_key_names') { should include "my-crypto-key-name" }
end
Properties that can be accessed from the google_kms_crypto_keys
resource:
See google_kms_crypto_key.md for more detailed information
crypto_key_names
: an array ofgoogle_kms_crypto_key
crypto_key_namecreate_times
: an array ofgoogle_kms_crypto_key
create_timelabels
: an array ofgoogle_kms_crypto_key
labelspurposes
: an array ofgoogle_kms_crypto_key
purposerotation_periods
: an array ofgoogle_kms_crypto_key
rotation_periodversion_templates
: an array ofgoogle_kms_crypto_key
version_templatenext_rotation_times
: an array ofgoogle_kms_crypto_key
next_rotation_timekey_rings
: an array ofgoogle_kms_crypto_key
key_ringskip_initial_version_creations
: an array ofgoogle_kms_crypto_key
skip_initial_version_creation
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Cloud Key Management Service (KMS) API is enabled for the current project.