mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
Updates GCP profile init to use inputs instead of attributes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
This commit is contained in:
parent
12a357a46b
commit
2f4dc632a1
3 changed files with 4 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
||||||
# Below is to be uncommented and set with your GCP project ID:
|
|
||||||
# gcp_project_id: 'your-gcp-project'
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue