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
Required argument access_key is missing #5
Comments
Seems like maybe chef-handler-sns is not reading the IAM credentials from ohai correctly. Could you share you Ohai version and output of |
Ohai version: |
Ah yep. directory '/etc/chef/ohai/hints' do
action :nothing
recursive true
end.run_action(:create)
file '/etc/chef/ohai/hints/iam.json' do
content '{}'
action :nothing
end.run_action(:create)
ohai "reload" do
action :nothing
end.run_action(:reload) threw that into the recipe and I was good. Thanks for your help! Want me to add a section in the readme explaining that this must be enabled? |
Thanks for your feedback! 😄 I'm thinking that maybe we should add that code directly to the cookbook. What do you think? Another possibility is to use the ohai_hint 'iam' |
chef_handler_sns-cookbook
version3.0.0
I have taken the
aws-opsworks-service-role
andaws-opsworks-ec2-role
roles and added the following policies to themfor
aws-opsworks-service-role
:At the stack level:
the IAM role is :
aws-opsworks-service-role
and the Default IAM instance profile is:
aws-opsworks-ec2-role
with
SNSPublish
containing the following:I am running this recipe in my own recipe in the following way:
chef_handler_sns 'arn:aws:sns:us-west-1:123412341234:opsworks-handler-notifications
All the default values are left as provided in
chef_handler_sns/attributes/default.rb
But I keep getting the following:
Required argument access_key is missing!
Is there a way to not have to provide an
access_key
andsecret_key
? Is there something else I should checkThe text was updated successfully, but these errors were encountered: