Course Hero Logo

Stephane maarek not for distribution stephane maarek

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 406 - 412 out of 819 pages.

© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekBenefits of AWS CloudFormation (1/2)Infrastructure as codeNo resources are manually created, which is excellent for controlThe code can be version controlled for example using gitChanges to the infrastructure are reviewed through codeCostEach resources within the stack is tagged with an identifier so you can easily see howmuch a stack costs youYou can estimate the costs of your resources using the CloudFormation templateSavings strategy: In Dev, you could automation deletion of templates at 5 PM andrecreated at 8 AM, safely
© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekBenefits of AWS CloudFormation (2/2)ProductivityAbility to destroy and re-create an infrastructure on the cloud on the flyAutomated generation of Diagram for your templates!Declarative programming (no need to figure out ordering and orchestration)Separation of concern: create many stacks for many apps, and many layers. Ex:VPC stacksNetwork stacksApp stacksDon’t re-invent the wheelLeverage existing templates on the web!Leverage the documentation
© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekHow CloudFormation WorksTemplates have to be uploaded in S3 and then referenced inCloudFormationTo update a template, we can’t edit previous ones. We have to re-upload a new version of the template to AWSStacks are identified by a nameDeleting a stack deletes every single artifact that was created byCloudFormation.
© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekDeploying CloudFormation templatesManual way:Editing templates in the CloudFormation DesignerUsing the console to input parameters, etcAutomated way:Editing templates in a YAML fileUsing the AWS CLI (Command Line Interface) to deploy the templatesRecommended way when you fully want to automate your flow
© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekCloudFormation Building BlocksTemplates components (one course section for each):1.Resources: your AWS resources declared in the template (MANDATORY)2.Parameters: the dynamic inputs for your template3.Mappings: the static variables for your template4.Outputs: References to what has been created5.Conditionals: List of conditions to perform resource creation6.MetadataTemplates helpers:1.References2.Functions
© Stephane MaarekNOT FOR DISTRIBUTION © Stephane MaarekNote:This is an introduction to CloudFormationIt can take over 3 hours to properly learn and master CloudFormationThis section is meant so you get a good idea of how it worksWe’ll be slightly less hands-on than in other sectionsWe’ll learn everything we need to answer questions for the examThe exam does not require you to actually write CloudFormationThe exam expects you to understand how to read CloudFormation

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 819 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
NoProfessor
Tags

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture