Skip to main content

Chef InSpec Troubleshooting

[edit on GitHub]

Undefined Local Variable or Method Error for Cloud Resource

This error is a result of invoking a resource from one of the cloud resource packs without initializing an InSpec profile with that resource pack (AWS, Azure, or GCP) as a dependency.

InSpec profiles that use any cloud resource must have the resource pack defined as a dependency.

See the relevant resource pack readme for instructions:

Was this page helpful?

×









Search Results