(ARC307) Infrastructure as Code | AWS re:Invent 2014

Post on 02-Jul-2015

1622 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

While many organizations have started to automate their software develop processes, many still engineer their infrastructure largely by hand. Treating your infrastructure just like any other piece of code creates a ''programmable infrastructure'' that allows you to take full advantage of the scalability and reliability of the AWS cloud. This session will walk through practical examples of how AWS customers have merged infrastructure configuration with application code to create application-specific infrastructure and a truly unified development lifecycle. You will learn how AWS customers have leveraged tools like CloudFormation, orchestration engines, and source control systems to enable their applications to take full advantage of the scalability and reliability of the AWS cloud, create self-reliant applications, and easily recover when things go seriously wrong with their infrastructure.

Transcript

November 12, 2014 | Las Vegas

David Winter, Alex Corley—Amazon Web Services

Tom Wanielista—Simple.com

echo "Bulding Instance"

echo "ec2run $ami -t m2.2xlarge -n 1 -k $ec2region -g $sec -s

$new_subnetID"

ec2run $ami -t $ec2type -n 1 -k $ec2region -g $sec -s $new_subnetID

| tee log/new_instance

cat log/new_instance

i=`cat log/new_instance | grep INSTANCE | cut -f2`

sleep 5

echo "Creating eth1 network interface for $i"

echo ec2-create-network-interface -d "$hostname - eth1" -g $sec

$new_subnetID

ec2-create-network-interface -d "$hostname - eth1" -g $sec

$new_subnetID | tee log/new_nic

nic=`cat log/new_nic | grep NETWORKINTERFACE| cut -f2`

#Main Instance

if wf and wf['workflow']['instance'] == 0:

try:

self.stacks.update({'guid':wf['guid']},

{'$set':{'workflow.instance':2}})

reservation =

self.ec2_master.run_instances(wf['stack']['ami'],

instance_type=wf['stack']['instance_type'],

security_group_ids=[wf['stack']['security_group']],

subnet_id=wf['stack']['subnet_id'])

aws.amazon.com/security/

Network

Compute

Storage

Dev

Stage

Prod

Tom Wanielista

Prehistory

PCI

What we needed

Security

Insight

Growth

Speed

AWS CloudFormation

Amazon Virtual Public Cloud,

Amazon Machine Images (AMIs),

AWS Identity and Access Management (IAM) roles,

Instances, Auto Scaling Groups (ASGs),

Security Groups …

cloudbank

Simple’s AMIs, IAM roles, instances,

ASGs, security groups …

Benefits?

You write code every day.

<my_app/>

http://bit.ly/awsevals

top related