Updates GCP profile init to use inputs instead of attributes

Signed-off-by: Collin McNeese <cmcneese@chef.io>
This commit is contained in:
Collin McNeese 2021-03-17 09:15:10 -05:00
parent 12a357a46b
commit 2f4dc632a1
No known key found for this signature in database
GPG key ID: 9FA182748DD18914
3 changed files with 4 additions and 7 deletions

View file

@ -1,2 +0,0 @@
# Below is to be uncommented and set with your GCP project ID:
# gcp_project_id: 'your-gcp-project'

View file

@ -2,7 +2,7 @@
title "Sample Section" title "Sample Section"
gcp_project_id = attribute("gcp_project_id") gcp_project_id = input("gcp_project_id")
# you add controls here # you add controls here
control "gcp-single-region-1.0" do # A unique ID for this control control "gcp-single-region-1.0" do # A unique ID for this control

View file

@ -6,14 +6,13 @@ copyright_email: you@example.com
license: Apache-2.0 license: Apache-2.0
summary: An InSpec Compliance Profile For GCP summary: An InSpec Compliance Profile For GCP
version: 0.1.0 version: 0.1.0
inspec_version: '>= 2.3.5' inspec_version: '>= 4'
attributes: inputs:
- name: gcp_project_id - name: gcp_project_id
required: true required: true
description: 'The GCP project identifier.' description: 'The GCP project identifier.'
type: string
depends: depends:
- name: inspec-gcp - name: inspec-gcp
url: https://github.com/inspec/inspec-gcp/archive/master.tar.gz url: https://github.com/inspec/inspec-gcp/archive/master.tar.gz
supports: supports:
- platform: gcp - platform: gcp