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/
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