(APP308) Chef on AWS: Deep Dive | AWS re:Invent 2014

Post on 27-Jun-2015

642 views 3 download

Tags:

description

"When your infrastructure scales, you need to have the tooling and knowledge to support that scale. Chef is one of the commonly used tools for deploying and managing all kinds of infrastructure at any scale. In this session, we focus on how you can get your existing infrastructure robustly represented in Chef. We dive deep on all the specifics that make deploying with Chef on AWS easy: authentication management, versioning, recipe testing, and leveraging AWS resources in your recipes. Whether you're building new infrastructure with no existing operations management software or deploying existing Chef recipes into AWS, this session will outline all the tips and tricks you need to be a master Chef in the cloud."

Transcript of (APP308) Chef on AWS: Deep Dive | AWS re:Invent 2014

Data_Bags Environments

Chef Building Blocks

Roles

Cookbooks

Recipes

Resources

https://flic.kr/p/4Ab3qP

https://flic.kr/p/4w7zdc

https://supermarket.getchef.com/cookbooks/users

https://www.getchef.com/blog/2014/07/10/managing-users-and-ssh-keys-in-a-hybrid-world/

http://semver.org/

https://flic.kr/p/5EGZV1

Attributes can be used for Application versioning

https://flic.kr/p/69hd1g

prod.json

{

“id”: “prod”,

"myapp": {

"version": "1.0.9”

},

"depapp" {

"version": "1.2.0”

}

}

TDD

RED

GREENREFACTOR

Set Up Dependencies

Import Keys (Optional)

Register Against the ELB

https://supermarket.getchef.com/cookbooks/aws

https://supermarket.getchef.com/cookbooks/aws_security

https://supermarket.getchef.com/cookbooks/aws-rds

https://supermarket.getchef.com/cookbooks/route53

user@machine$ knife ec2 server create -I ami-b06a98d8 -f t1.micro -x ec2-user /

-S default --identity-file $SSH_KEY --iam-profile createLB --user-data /

user_data.sh -r "role[base_centos]”

Instance ID: i-edc6330c

Flavor: t1.micro

Image: ami-b06a98d8

Region: us-east-1

Availability Zone: us-east-1e

Security Groups: default

Tags: Name: i-edc6330c

SSH Key: default

Waiting for instance.....

https://flic.kr/p/eycPj7

https://flic.kr/p/knDPjc

CODE

https://www.getchef.com/blog/2014/07/10/managing-users-and-ssh-keys-in-a-

hybrid-world/

https://supermarket.getchef.com/cookbooks/users

http://tcotav.github.io/chefdk_getting_started.html

https://micgo.net/automating-cookbook-testing-with-test-kitchen-berkshelf-vagrant-

and-guard/

https://supermarket.getchef.com/cookbooks/aws

supermarket.getchef.com

Please give us your feedback on this session.

Complete session evaluations and earn re:Invent swag.

http://bit.ly/awsevals