- From: Douglas Garstang <
>
- To:
- Subject: [chef] Chef Metal Destroying Instances - undefined local variable or method `iam_endpoint'
- Date: Thu, 16 Oct 2014 09:00:09 -0700
I'm trying to destroy (delete? some docs say it's 'destroy' while other say 'delete') EC2 instances started with chef-metal.
Here's the destroy recipe, pretty simple:
require 'chef_metal'
with_chef_server "https://chef01.prod.slicetest.com:443", {
:client_name => Chef::Config[:node_name],
:signing_key_filename => Chef::Config[:client_key]
}
machine "mongo-cfg01.dev-volatile.slicetest.com" do
action :destroy
endand here's what I get when I run it:
================================================================================
Error executing action `destroy` on resource 'machine[mongo-cfg01.dev-volatile.slicetest.com]'
================================================================================
NameError
---------
undefined local variable or method `iam_endpoint' for ChefMetalFog::Providers::AWS:Class
Resource Declaration:
---------------------
# In /Users/doug/git/chef/chef-metal/mongo-dev-volatile-down.rb
9: machine "mongo-cfg01.dev-volatile.slicetest.com" do
10: action :destroy
11: end
12: #endCan't get much simpler than that. What am I doing wrong?
Doug
- [chef] Chef Metal Destroying Instances - undefined local variable or method `iam_endpoint', Douglas Garstang, 10/16/2014
Archive powered by MHonArc 2.6.16.