Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `aws_vpc' for cookbook: aws, recipe: default :Chef::Recipe #583

Open
Tamilvananb opened this issue Nov 27, 2019 · 0 comments

Comments

@Tamilvananb
Copy link

Cookbook Trace:

/opt/chef-repo/.chef/local-mode-cache/cache/cookbooks/aws/recipes/default.rb:8:in `from_file'

Relevant File Content:

/opt/chef-repo/.chef/local-mode-cache/cache/cookbooks/aws/recipes/default.rb:

1: # This cookbook is no longer needed to load the aws-sdk and can be removed
2: # from node run_lists without any impact
3:
4: Chef::Log.warn('The default aws recipe does nothing. See the readme for information on using the aws resources')
5:
6: require 'aws-sdk-core'
7:
8>> aws_vpc 'my_vpc' do
9: cidr_block '10.0.0.0/24'
10: # main_routes '0.0.0.0/0' => :internet_gateway
11: internet_gateway true
12: end
13:
14:

System Info:

chef_version=15.5.16
platform=centos
platform_version=7.6.1810
ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
program_name=/usr/bin/chef-client
executable=/opt/chef-workstation/bin/chef-client

Running handlers:
[2019-11-27T17:26:11+05:30] ERROR: Running exception handlers
Running handlers complete
[2019-11-27T17:26:11+05:30] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 24 seconds
[2019-11-27T17:26:11+05:30] FATAL: Stacktrace dumped to /opt/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out
[2019-11-27T17:26:11+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-11-27T17:26:11+05:30] FATAL: NoMethodError: undefined method `aws_vpc' for cookbook: aws, recipe: default :Chef::Recipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant