diff --git a/templates/inspec/examples/google_appengine_standard_app_version/google_appengine_standard_app_version_attributes.erb b/templates/inspec/examples/google_appengine_standard_app_version/google_appengine_standard_app_version_attributes.erb index e17d854a98dd..425ce2537a4f 100644 --- a/templates/inspec/examples/google_appengine_standard_app_version/google_appengine_standard_app_version_attributes.erb +++ b/templates/inspec/examples/google_appengine_standard_app_version/google_appengine_standard_app_version_attributes.erb @@ -1,4 +1,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_location = attribute(:gcp_location, default: '<%= external_attribute('gcp_location') -%>', description: 'The GCP project location.') standardappversion = attribute('standardappversion', default: <%= JSON.pretty_generate(grab_attributes['standardappversion']) -%>, description: 'Cloud App Engine definition') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_kms_crypto_key/google_kms_crypto_key_attributes.erb b/templates/inspec/examples/google_kms_crypto_key/google_kms_crypto_key_attributes.erb index faa559c36528..1cb85513506e 100644 --- a/templates/inspec/examples/google_kms_crypto_key/google_kms_crypto_key_attributes.erb +++ b/templates/inspec/examples/google_kms_crypto_key/google_kms_crypto_key_attributes.erb @@ -2,4 +2,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gc gcp_location = attribute(:gcp_location, default: '<%= external_attribute('gcp_location') -%>', description: 'GCP location') gcp_kms_key_ring_policy_name = attribute(:gcp_kms_key_ring_policy_name, default: '<%= external_attribute('gcp_kms_key_ring_policy_name') -%>', description: 'Key ring name') gcp_kms_crypto_key_name_policy = attribute(:gcp_kms_crypto_key_name_policy, default: '<%= external_attribute('gcp_kms_crypto_key_name_policy') -%>', description: 'Key name') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_kms_key_ring/google_kms_key_ring_attributes.erb b/templates/inspec/examples/google_kms_key_ring/google_kms_key_ring_attributes.erb index afa8f5370236..13f1c1fd66c1 100644 --- a/templates/inspec/examples/google_kms_key_ring/google_kms_key_ring_attributes.erb +++ b/templates/inspec/examples/google_kms_key_ring/google_kms_key_ring_attributes.erb @@ -1,4 +1,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_location = attribute(:gcp_location, default: '<%= external_attribute('gcp_location') -%>', description: 'GCP location') gcp_kms_key_ring_policy_name = attribute(:gcp_kms_key_ring_policy_name, default: '<%= external_attribute('gcp_kms_key_ring_policy_name') -%>', description: 'Key ring name') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_logging_project_exclusion/google_logging_project_exclusion_attributes.erb b/templates/inspec/examples/google_logging_project_exclusion/google_logging_project_exclusion_attributes.erb index dd651f54df5d..02c2fc6b43bb 100644 --- a/templates/inspec/examples/google_logging_project_exclusion/google_logging_project_exclusion_attributes.erb +++ b/templates/inspec/examples/google_logging_project_exclusion/google_logging_project_exclusion_attributes.erb @@ -1,3 +1,4 @@ project_exclusion = attribute('project_exclusion', default: <%= grab_attributes['project_exclusion'] -%>) gcp_project_id = attribute(:gcp_project_id, default: <%= external_attribute('gcp_project_id') -%>, description: 'The project identifier') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_logging_project_sink/google_logging_project_sink_attributes.erb b/templates/inspec/examples/google_logging_project_sink/google_logging_project_sink_attributes.erb index 4de6051d3878..82457f0d454c 100644 --- a/templates/inspec/examples/google_logging_project_sink/google_logging_project_sink_attributes.erb +++ b/templates/inspec/examples/google_logging_project_sink/google_logging_project_sink_attributes.erb @@ -1,3 +1,4 @@ project_sink = attribute('project_sink', default: <%= grab_attributes['project_sink'] -%>) gcp_project_id = attribute(:gcp_project_id, default: <%= external_attribute('gcp_project_id') -%>, description: 'The project id.') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_project_iam_custom_role/google_project_iam_custom_role_attributes.erb b/templates/inspec/examples/google_project_iam_custom_role/google_project_iam_custom_role_attributes.erb index e679a737f653..3238df07fe9c 100644 --- a/templates/inspec/examples/google_project_iam_custom_role/google_project_iam_custom_role_attributes.erb +++ b/templates/inspec/examples/google_project_iam_custom_role/google_project_iam_custom_role_attributes.erb @@ -1,3 +1,4 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_project_iam_custom_role_id = attribute(:gcp_project_iam_custom_role_id, default: '<%= external_attribute('gcp_project_iam_custom_role_id') -%>', description: 'The IAM custom role identifier.') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_service_account/google_service_account_attributes.erb b/templates/inspec/examples/google_service_account/google_service_account_attributes.erb index 2bdd1f660364..ea7e09771830 100644 --- a/templates/inspec/examples/google_service_account/google_service_account_attributes.erb +++ b/templates/inspec/examples/google_service_account/google_service_account_attributes.erb @@ -1,3 +1,4 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The IAM service account display name.') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_service_account_key/google_service_account_key_attributes.erb b/templates/inspec/examples/google_service_account_key/google_service_account_key_attributes.erb index 2bdd1f660364..ea7e09771830 100644 --- a/templates/inspec/examples/google_service_account_key/google_service_account_key_attributes.erb +++ b/templates/inspec/examples/google_service_account_key/google_service_account_key_attributes.erb @@ -1,3 +1,4 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The IAM service account display name.') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default:0, description:'Flag to enable privileged resources requiring elevated privileges in GCP.') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_storage_bucket_acl/google_storage_bucket_acl_attributes.erb b/templates/inspec/examples/google_storage_bucket_acl/google_storage_bucket_acl_attributes.erb index ea583d2f3530..9067ed2710b6 100644 --- a/templates/inspec/examples/google_storage_bucket_acl/google_storage_bucket_acl_attributes.erb +++ b/templates/inspec/examples/google_storage_bucket_acl/google_storage_bucket_acl_attributes.erb @@ -1,4 +1,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_storage_bucket_acl = attribute(:gcp_storage_bucket_acl, default: '<%= external_attribute('gcp_storage_bucket_acl') -%>', description: 'The name of the storage bucket with ACLs attached') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The name of the service account assigned permissions') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_storage_bucket_object/google_storage_bucket_object_attributes.erb b/templates/inspec/examples/google_storage_bucket_object/google_storage_bucket_object_attributes.erb index 7cc369cac9e6..325d3112c7d7 100644 --- a/templates/inspec/examples/google_storage_bucket_object/google_storage_bucket_object_attributes.erb +++ b/templates/inspec/examples/google_storage_bucket_object/google_storage_bucket_object_attributes.erb @@ -2,4 +2,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gc gcp_storage_bucket_object = attribute(:gcp_storage_bucket_object, default: '<%= external_attribute('gcp_storage_bucket_object') -%>', description: 'The name of the storage bucket with an object') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The name of the service account assigned permissions') gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') -gcp_storage_bucket_object_name = attribute(:gcp_storage_bucket_object_name, default: '<%= external_attribute('gcp_storage_bucket_object_name') -%>', description: 'The name of the object') \ No newline at end of file +gcp_storage_bucket_object_name = attribute(:gcp_storage_bucket_object_name, default: '<%= external_attribute('gcp_storage_bucket_object_name') -%>', description: 'The name of the object') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_storage_default_object_acl/google_storage_default_object_acl_attributes.erb b/templates/inspec/examples/google_storage_default_object_acl/google_storage_default_object_acl_attributes.erb index 4a4e09f145bb..beaea827ad37 100644 --- a/templates/inspec/examples/google_storage_default_object_acl/google_storage_default_object_acl_attributes.erb +++ b/templates/inspec/examples/google_storage_default_object_acl/google_storage_default_object_acl_attributes.erb @@ -1,4 +1,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gcp_project_id') -%>', description: 'The GCP project identifier.') gcp_storage_bucket_name = attribute(:gcp_storage_bucket_name, default: '<%= external_attribute('gcp_storage_bucket_name') -%>', description: 'The name of the storage bucket with the default object ACL') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The name of the service account assigned permissions') -gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') \ No newline at end of file +gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file diff --git a/templates/inspec/examples/google_storage_object_acl/google_storage_object_acl_attributes.erb b/templates/inspec/examples/google_storage_object_acl/google_storage_object_acl_attributes.erb index a132d956797d..3e738dbe025e 100644 --- a/templates/inspec/examples/google_storage_object_acl/google_storage_object_acl_attributes.erb +++ b/templates/inspec/examples/google_storage_object_acl/google_storage_object_acl_attributes.erb @@ -2,4 +2,5 @@ gcp_project_id = attribute(:gcp_project_id, default: '<%= external_attribute('gc gcp_storage_bucket_object = attribute(:gcp_storage_bucket_object, default: '<%= external_attribute('gcp_storage_bucket_object') -%>', description: 'The name of the storage bucket with ACLs attached') gcp_service_account_display_name = attribute(:gcp_service_account_display_name, default: '<%= external_attribute('gcp_service_account_display_name') -%>', description: 'The name of the service account assigned permissions') gcp_enable_privileged_resources = attribute(:gcp_enable_privileged_resources, default: '<%= external_attribute('gcp_enable_privileged_resources') -%>', description: 'If we are running tests with escalated permissions(required for this test)') -gcp_storage_bucket_object_name = attribute(:gcp_storage_bucket_object_name, default: '<%= external_attribute('gcp_storage_bucket_object_name') -%>', description: 'The name of the object with ACLs') \ No newline at end of file +gcp_storage_bucket_object_name = attribute(:gcp_storage_bucket_object_name, default: '<%= external_attribute('gcp_storage_bucket_object_name') -%>', description: 'The name of the object with ACLs') +gcp_organization_id = attribute(:gcp_organization_id, default: <%= external_attribute('gcp_organization_id') -%>, description: 'The identifier of the organization') \ No newline at end of file