Slide 1

Slide 1 text

AWS USER GROUP BELGIUM BY NILS DE MOOR @NDEMOOR KICK-OFF MEETUP #1

Slide 2

Slide 2 text

YOU REVISION YOUR CODE IN REPOSITORIES... ...SO WHY NOT YOUR INFRASTRUCTURE

Slide 3

Slide 3 text

CLOUDFORMATION ONE FILE TO RULE THEM ALL

Slide 4

Slide 4 text

CLOUDFORMATION “MAKE IT EASIER TO DEPLOY THE COLLECTION OF AWS RESOURCES YOU NEED TO RUN YOUR APPLICATION REPEATEDLY AND PREDICATBLY USING A DECLARATIVE TEMPLATE” - CHRIS WHITACKER, AWS

Slide 5

Slide 5 text

BENEFITS - WRITE ONCE, DEPLOY EVERYWHERE - UPDATE - DOCUMENTED - CONTINUOUS

Slide 6

Slide 6 text

DEMO APP - CREATE A BUCKET - ADD PHOTOS TO BUCKET - START INSTANCE - PROVISION INSTANCE AND DEPLOY APP SOURCE: GIT CLONE HTTPS://GITHUB.COM/NDEMOOR/AWS-UGB-PHOTOAPP

Slide 7

Slide 7 text

PHASE 1 CREATE PRIVATE S3 BUCKET ADD POLICY: PHOTOS/ FOLDER PUBLIC git checkout phase1

Slide 8

Slide 8 text

PHASE 2 ADD USER WITH PASSWORD GENERATE ACCESS KEYS TO USE IN APP git checkout phase2

Slide 9

Slide 9 text

PHASE 3 ADD INSTANCE ADD SECURITY GROUP git checkout phase3

Slide 10

Slide 10 text

PHASE 4 PROVISION NEW INSTANCE WITH CFN-INIT ADD WAIT CONDITION INSTALL + RUN APPLICATION git checkout phase4

Slide 11

Slide 11 text

ADVANCED - DELETE / UPDATE POLICIES - SUBSTACKS - CUSTOM RESOURCES

Slide 12

Slide 12 text

PITFALLS - NO SANDBOX TO ‘TRY’ CHANGES - BASIC ERROR CHECKING - NOT EVERYTHING CAN BE ‘UPDATED’ - LEARNING CURVE - BULKY JSON - SINGLE REGION

Slide 13

Slide 13 text

HOMEWORK - ELASTIC IP - ROUTE53 DNS RECORD POINTING TO INSTANCE - CLOUDFRONT DISTRIBUTION FOR BUCKET CONTENT - AUTO-SCALING GROUP + ELB - PROVISION INSTANCE WITH CHEF/PUPPET/ANSIBLE

Slide 14

Slide 14 text

RESOURCES - AWS CLOUDFORMATION DOCS: HTTP://DOCS.AWS.AMAZON.COM/AWSCLOUDFORMATION/LATEST/USERGUIDE/WELCOME.HTML - SAMPLE TEMPLATES: HTTP://AWS.AMAZON.COM/CLOUDFORMATION/AWS-CLOUDFORMATION-TEMPLATES/

Slide 15

Slide 15 text

QUESTIONS? LEAVE FEEDBACK IN THE USER GROUP PAGE @NDEMOOR