Chef infra OpsWorks厨师AWS食谱未初始化常量AWS
我正在尝试使用chef cookbooks/aws()中的s3_文件。我尝试了以下几种变体,但都失败了:Chef infra OpsWorks厨师AWS食谱未初始化常量AWS,chef-infra,aws-sdk,cookbook,aws-opsworks,Chef Infra,Aws Sdk,Cookbook,Aws Opsworks,我正在尝试使用chef cookbooks/aws()中的s3_文件。我尝试了以下几种变体,但都失败了: include_recipe 'aws' include_recipe 's3_file' aws_s3_file '/usr/local/file.tar.gz' do bucket 'my-bucket' remote_path 'file.tar.gz' owner 'user' group 'user' aws_access_key_id 'secret'
include_recipe 'aws'
include_recipe 's3_file'
aws_s3_file '/usr/local/file.tar.gz' do
bucket 'my-bucket'
remote_path 'file.tar.gz'
owner 'user'
group 'user'
aws_access_key_id 'secret'
aws_secret_access_key 'secret'
end
这是我的错误:
名称错误---------
未初始化常数Aws
几周来,我一直在关注两个相关问题: [1]
[2] 第183期参考了aws食谱中的以下内容: 我确实看到正在安装所需的gems。我还看到aws和s3_文件cookbooks安装在berkshelf cookbooks中的实例上 我不明白如何将aws配方添加到OpsWorks中的run_列表中。我尝试过直接执行aws::default,但没有成功。有人能给我提供一个例子或线索,告诉我如何在OpsWorks中的run_列表中添加食谱吗
我怀疑我的问题与新手有关。我很可能在基于烹饪的术语(双关语)和OpsWorks提供的抽象之间遇到了混淆。如果我没有提供任何详细信息,请告诉我。关于它的价值,这是aws Chef Cookbook新版的一个持续问题。最近的错误报告进一步证实了这一点: 降级到v2.5.0解决了我的所有问题
The default recipe installs the aws-sdk Ruby Gem, which this cookbook requires
in order to work with the EC2 API. Make sure that the aws recipe is in the
node or role run_list before any resources from this cookbook are used.
"run_list": [
"recipe[aws]"
]