Skip to main content

Chef InSpec Troubleshooting

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:

Edit this page on GitHub.

Thank you for your feedback!


Search Results