continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/partner web...

Post on 21-May-2020

1 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Continuous delivery best practices with a Case Study of a technology-driven media company

Petri Kallberg Cloud Architect, Nordcloud

www.nordcloud.com 2

Established operations Expansion ongoing

Nordcloud: European Footprint. Market leader in the Nordics.

www.nordcloud.com 3

CONTACT US we'll get back to you as soon as possible

Leopoldstr. 23 5. OG München, Deutschland

hm@nordcloud.com

www.nordcloud.com

/company/nordcloud-ltd

@NordcloudTweets

+49 152 31 92 06 51

www.nordcloud.com 4

Nordcloud introduction

Nordcloud Nordcloud is the cloud services specialist based in Helsinki, Stockholm, London, Munich, Oslo & Copenhagen. We are AWS Premier Consulting partner proving cloud strategy consultancy, migration services, 24x7 support, systems automation and official AWS training.

www.nordcloud.com 5

Continuous delivery best practices with a Case Study of a technology-driven media company

“Continuous Delivery (CD) is a software engineering approach in which teams keep producing valuable software in short cycles and ensure that the software can be reliably released at any time.” - Wikipedia

www.nordcloud.com 6

Continuous delivery best practices with a Case Study of a technology-driven media company

Sanoma is a leading media group in the Nordic countries with operations in over 10 European countries and yearly revenue of 2000M€.

www.nordcloud.com 7

Continuous delivery best practices with a Case Study of a technology-driven media company

Starting point

•  Multiple independent products & teams •  Varying level of build automation •  No configuration management tools •  Traditional “in-house” hosting, DIY-mentality

Then IT was out-sourced …

www.nordcloud.com 8

Build Automation is a must!

Continuous delivery best practices with a Case Study of a technology-driven media company

www.nordcloud.com 9

Use SaaS vs. re-invent your own if “vendor lock” becomes a problem solve it later

Continuous delivery best practices with a Case Study of a technology-driven media company

www.nordcloud.com 10

Continuous delivery best practices with a Case Study of a technology-driven media company

www.nordcloud.com 11

Infrastructure as a Code

Continuous delivery best practices with a Case Study of a technology-driven media company

www.nordcloud.com 12

What goes into Cloudformation stack? (and what is left outside of it)

Continuous delivery best practices with a Case Study of a technology-driven media company

Statefull, Slow to deploy, Shared resources …

Stateless, Fast to deploy, Utilized inside single stack …

www.nordcloud.com 13

Who/What does configure your instances? (and how it knows about the infrastructure)

Continuous delivery best practices with a Case Study of a technology-driven media company

•  Auto scaling & launch configuration •  AMI vs. Install •  Parameters from cloudformation stack

to Chef via instance metadata. •  Cookbooks for common build formats. •  Cfn-hup will trigger re-config for

changes.

www.nordcloud.com 14

Don’t Update – Rebuild It! Current production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

www.nordcloud.com 15

Don’t Update – Rebuild It! Testing new production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

www.nordcloud.com 16

Don’t Update – Rebuild It! Deploy new production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

www.nordcloud.com 17

Don’t Update – Rebuild It! Discard old production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

www.nordcloud.com 18

Continuous delivery best practices with a Case Study of a technology-driven media company

“Thanks to new deployment process we can deploy builds into production in the middle of the day and have to sweat if it is going to work” - Lead developer of the busiest website in Finland

www.nordcloud.com 19

Continuous delivery best practices with a Case Study of a technology-driven media company

“But rebuilds are taking too long! We need to build every commit and deploy every build!” - Anonymous developer

www.nordcloud.com 20

Continuous delivery best practices with a Case Study of a technology-driven media company

Cloudformation Production vs. Development & Testing •  Use same template for all

environments! •  Customize with

•  Parameters •  Mappings •  Conditions

•  Allow code deployment to development using stack updates to avoid re-builds.

•  Enable/disable features by stack update.

www.nordcloud.com 21

Continuous delivery best practices with a Case Study of a technology-driven media company

“TODO” … improvements and new features •  Individual teams should be self sufficient

while maintaining centralized “sanity checks”. •  Create AWS account for each search/product.

Connect via central account using VPC peering. •  Manage Cloudformation stacks with Service Catalog. •  Replace custom code with AWS services;

CodeDeploy, CodeCommit & CodePipeline

Thank You + Q&A petri.kallberg@nordcloud.fi

www.nordcloud.com 23

CONTACT US we'll get back to you as soon as possible

Leopoldstr. 23 5. OG München, Deutschland

hm@nordcloud.com

www.nordcloud.com

/company/nordcloud-ltd

@NordcloudTweets

+49 152 31 92 06 51

top related