Created
October 1, 2014 15:50
-
-
Save cwebberOps/aa521f42abdd71259a82 to your computer and use it in GitHub Desktop.
aws cookbook test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe 'aws' | |
file '/etc/chef/ohai/hints/ec2.json' do | |
content '{}' | |
action :create | |
end | |
ohai 'reload' do | |
action :reload | |
end | |
aws_resource_tag node['ec2']['instance_id'] do | |
aws_access_key node['aws_test']['key_id'] | |
aws_secret_access_key node['aws_test']['access_key'] | |
tags({"Name" => "AWS Cookbook Test Node", | |
"Environment" => node.chef_environment}) | |
action :update | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment