mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
Removed common errors page since trouble shooting page was introduced by docs team
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
parent
e9258cf1be
commit
122293b213
1 changed files with 0 additions and 47 deletions
|
@ -1,47 +0,0 @@
|
|||
+++
|
||||
title = "Chef InSpec Common Errors"
|
||||
draft = false
|
||||
gh_repo = "inspec"
|
||||
|
||||
[menu]
|
||||
[menu.inspec]
|
||||
title = "Common Errors"
|
||||
identifier = "inspec/reference/common_errors.md Chef InSpec Common Errors"
|
||||
parent = "inspec/reference"
|
||||
weight = 150
|
||||
+++
|
||||
|
||||
This section documents some of the Common Errors encountered while using Chef Inspec.
|
||||
|
||||
* `Undefined local variable or method error` while using cloud resources in InSpec profile.
|
||||
|
||||
For the successful execution of an InSpec profile using **any of the cloud resources**, it is necessary to define the profile with a dependency on them.
|
||||
|
||||
Some of the examples of using cloud resources in an InSpec profile are:
|
||||
|
||||
```bash
|
||||
describe aws_generic_resource(group_name: 'MyResourceGroup', name: 'MyResource') do
|
||||
its('property') { should eq 'value' }
|
||||
end
|
||||
```
|
||||
|
||||
To define dependency on **inspec-aws** resource pack use the instructions listed in [inspec-aws README](https://github.com/inspec/inspec-aws#use-the-resources)
|
||||
|
||||
|
||||
```bash
|
||||
describe azure_generic_resource(group_name: 'MyResourceGroup', name: 'MyResource') do
|
||||
its('property') { should eq 'value' }
|
||||
end
|
||||
```
|
||||
|
||||
To define dependency on **inspec-azure** resource pack use the instructions listed in [inspec-azure README](https://github.com/inspec/inspec-azure#use-the-resources)
|
||||
|
||||
|
||||
```bash
|
||||
describe gcp_generic_resource(group_name: 'MyResourceGroup', name: 'MyResource') do
|
||||
its('property') { should eq 'value' }
|
||||
end
|
||||
```
|
||||
|
||||
To define dependency on **inspec-gcp** resource pack use the instructions listed in [inspec-gcp README](https://github.com/inspec/inspec-gcp#use-the-resources)
|
||||
|
Loading…
Reference in a new issue