Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
Created October 1, 2014 15:50
Show Gist options
  • Save cwebberOps/aa521f42abdd71259a82 to your computer and use it in GitHub Desktop.
Save cwebberOps/aa521f42abdd71259a82 to your computer and use it in GitHub Desktop.
aws cookbook test
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