Last active
June 29, 2017 20:23
-
-
Save ssudharsan/e5941195f79074e46f3c to your computer and use it in GitHub Desktop.
Running chef manually in a opsworks instance
This file contains 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
# put the cookbook path in solo.rb file. | |
echo 'cookbook_path ["/opt/aws/opsworks/current/site-cookbooks"]' > solo.rb | |
# create json file incase if you want use the attributes from opsworks. | |
opsworks-agent-cli get_json > attributes.json | |
#run chef-solo | |
/opt/aws/opsworks/current/bin/chef-solo -c solo.rb -o cookbook_name::default -j attributes.json |
📦
🌮 🥇 🍔
If you use berkshelf use this instead:
echo 'cookbook_path ["/opt/aws/opsworks/current/berkshelf-cookbooks"]' > solo.rb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much. Was digging through AWS docs forever until I found this. So much easier to iterate now.