skpaterson / inspec-gcp-deep-dive-profile

Sample Inspec profile for GCP corresponding to use-cases discussed in a blog post.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InSpec GCP Deep Dive Profile

This InSpec profile contains four example InSpec GCP testing scenarios. These were originally discussed in a Chef blog post.

The included tests cover the following scenarios:

  • Testing that a single GCP zone is available for use
  • Checking all GCP zones are available for use
  • Ensuring no firewall rules allow SSH/HTTP
  • Checking all compute instances to ensure none have a particular label

Running the tests

With InSpec installed, run the following command from the root directory of the profile to execute the tests. Note that the attributes.yml file should be updated with your GCP project name.

$ inspec exec . -t gcp:// --attrs attributes.yml

Useful Links

The following links have relevant information:

Support

The InSpec GCP resources are community supported. For bugs and features, please open a github issue here and label it appropriately.

About

Sample Inspec profile for GCP corresponding to use-cases discussed in a blog post.

License:Mozilla Public License 2.0


Languages

Language:Ruby 100.0%