Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Chef Provisioning

You're reading from   Mastering Chef Provisioning Render your entire infrastructure as code with Chef

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781785888915
Length 262 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Earl Waud Earl Waud
Author Profile Icon Earl Waud
Earl Waud
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Setting Up a Development Environment on Your Workstation FREE CHAPTER 2. Knife Tooling and Plugins 3. Leveraging Roles, Environments, and Policies 4. Custom Resources 5. Provisioning in the Traditional Data Center 6. Provisioning in the Cloud 7. Test-Driven Development 8. Using Chef Provisioning Index

Provisioning AWS EC2 instances


In Chapter 2, Knife Tooling and Plugins, you explored installing the knife-ec2 plugin and learned the knife configuration settings required to provision AWS EC2 instances. Now you are going to expand on this base of knowledge and learn more about AWS authentication. Then, we are going to see how easy it is to set up a Chef Server in an EC2 instance.

Note

Remember that you can set up an AWS account on Amazon and use the service for free, as long as you stay within the "Free Tier Eligible" guidelines. I will note where any of the examples go outside of the free services.

Understanding EC2 authentication

As we saw in Chapter 2, Knife Tooling and Plugins, you need to configure knife to allow it to use the EC2 plugin to create AWS EC2 instances. You can either add the credentials directly to your knife.rb file, or better, create an AWS configuration file with the account credentials in it and point your knife.rb file to that credentials file. The contents of the credentials...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image