My Account Log in

2 options

Mastering AWS CloudFormation : Build Resilient and Production-Ready Infrastructure in Amazon Web Services with CloudFormation / Karen Tovmasyan.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online
Format:
Book
Author/Creator:
Tovmasyan, Karen, author.
Language:
English
Subjects (All):
Cloud computing.
Web services.
Physical Description:
1 online resource (310 pages)
Edition:
Second edition.
Place of Publication:
Birmingham, England : Packt Publishing Ltd., [2023]
Summary:
Achieve operational excellence by running scalable, testable, modular, repeatable, extendable, and customizable infrastructure Key Features Leverage AWS CloudFormation to manage your entire infrastructure Get up and running with maintaining your infrastructure as code and automating your environment Simplify infrastructure management and increase productivity with AWS CloudFormation Purchase of the print or Kindle book includes a free PDF eBook Book Description The advent of DevOps and the cloud revolution has compelled software engineers and operations teams to rethink how to manage complex infrastructures and build resilient solutions. With this AWS book, you'll find out how you can use Infrastructure as Code (IaC) to simplify infrastructure operations and manage the modern cloud with AWS CloudFormation.This guide covers AWS CloudFormation comprehensively, from template structures to developing complex and reusable infrastructure stacks. It takes you through template validation, stack deployment, and handling deployment failures. It also demonstrates the use of AWS CodeBuild and CodePipeline for automating resource delivery and implementing continuous integration and continuous delivery (CI/CD) practices.As you advance, you'll learn how to modularize and unify your template on the fly using macros or by fixating the version using modules. You'll create resources outside of AWS with custom resources and catalog them with the CloudFormation registry. Finally, you'll improve the way you manage the modern cloud environment on AWS by extending CloudFormation through the AWS serverless application model (SAM) and the AWS cloud development kit (CDK).By the end of this book, you'll have mastered key AWS CloudFormation concepts and will be able to extend its capabilities for developing and deploying your own infrastructure. What you will learn Understand modern approaches to IaC Develop universal, modular, and reusable CloudFormation templates Discover ways of applying continuous delivery with CloudFormation Implement IaC best practices in the AWS cloud Provision massive applications across multiple regions and accounts Automate template generation and software provisioning for AWS Extend CloudFormation features with custom resources and the registry Modularize and unify templates using modules and macros Who this book is for If you are a developer who wants to learn how to write templates, a DevOps engineer or SRE interested in deployment and orchestration, or a solutions architect looking to understand the benefits of streamlined and scalable infrastructure management, this book is for you. Prior understanding of the AWS Cloud is necessary.
Contents:
Cover
Title Page
Copyright and Credits
Contributors
Table of Contents
Preface
Part 1: CloudFormation Internals
Chapter 1: Working with CloudFormation
Technical requirements
Understanding the internals of AWS CloudFormation
Creating and updating a CloudFormation stack
Managing CloudFormation IAM permissions
Drift detection
Summary
Questions
Further reading
Chapter 2: Advanced Template Development
Going through the internals of the template
AWSTemplateFormatVersion
Description
Metadata
Parameters
Mappings
Conditions
Transform
Resources
Outputs
Creating reusable templates
Using conditional elements
Deletion policies
Referring to existing stacks
AWS pseudo parameters
AWS::AccountId
AWS::NoValue
AWS::Region
AWS::StackId and AWS::StackName
AWS::URLSuffix
AWS::Partition
Dynamic references with Parameter Store and Secrets Manager
Using CloudFormation language extensions
Part 2: Provisioning and Deployment at Scale
Chapter 3: Validation, Linting, and Deploying the Stack
Validating the template
Using a linter for best practices on templates
Evaluating templates with cfn-lint
Using a policy-based linter
Choosing the right linter
Provisioning our stack
Deploying stacks using change sets
Handling errors
Working with drifts
Chapter 4: Continuous Integration and Deployment
Including a template in your application
Running smoke tests on your stack
Smoke testing for EC2 auto scaling groups
Smoke-testing VPC resources
Best practices for the release management of CloudFormation stacks
Always use version control systems.
Ensure that your dependencies can be easily retrieved
Keep your code base clean
Choose a proper branching model
Always perform a code review
Have full test coverage
Don't forget to use a CloudFormation IAM role
Always perform smoke testing
Use the correct CI/CD instruments
Keep up the good work
Creating a CI/CD pipeline with CloudFormation and CodePipeline
Scenario - core stack
Chapter 5: Deploying to Multiple Regions and Accounts Using StackSets
The legacy way of multi-regional and multi-account infrastructure management
Introducing StackSets
Permissions
Deploying to multiple regions
Using the AWS console
Using awscli
Best practices for StackSets
Deploying to multiple accounts
Preventing failures of multiple StackSet deployments using TAGs
Chapter 6: Configuration Management of EC2 Instances Using cfn-init
Introducing cfn-init
Deploying your application to EC2 during stack creation
Creating a "Hello, World!" application
Creating an LNMP stack
Using cfn-signal to inform CloudFormation about resource readiness
Part 3: Extending CloudFormation
Chapter 7: Creating Resources Outside AWS Using Custom Resources
Understanding CRs
The internals of the underlying Lambda function
Writing and managing your own CRs
Creating databases in RDS using CRs
Handling updates, deletions, and failures of CRs
Deleting resources
Updating resources
Extra features for the custom database function
Chapter 8: Creating Your Own Resource Registry for CloudFormation
Technical requirements.
Understanding the CloudFormation registry
Activating and using public extensions
Managing DynamoDB items with CloudFormation
Creating and using private extensions
Preparing database infrastructure
Modeling resource types for the CloudFormation registry
Chapter 9: Scale Your Templates Using Macros, Nested Stacks and Modules
Understanding the use cases of the template macro
Auto-filling resource property values
Adding extra resources
Making resource declaration easier for developers
Introducing the template macro
Considerations
Writing your own macro
AMI ID filler
Rendering the application template from a short declaration
Learning about the past of nested stacks
CloudFormation stack resource
The caveats of nested stacks
Building and using your own CloudFormation modules
Comparing Terraform and CloudFormation modules
Building CloudFormation modules
Deploying modular stacks
Chapter 10: Generating CloudFormation Templates Using AWS CDK
Introducing AWS CDK
Facilitating template development with AWS CDK
Writing your first template using AWS CDK and Python
Preparing constructs
Rendering core resources
Rendering the web tier
Rendering the storage tier
Deploying the CDK application
Testing CDK applications
Chapter 11: Deploying Serverless Applications Using AWS SAM
Introducing AWS SAM
Understanding the differences between AWS SAM and CloudFormation
Writing your first serverless application with AWS SAM
Prerequisites
Developing a Hello, World application
Running AWS SAM applications
Examining logs with AWS SAM.
Creating complex applications with AWS SAM
Chapter 12: What's Next?
The future of infrastructure as code
Understanding the difference between Terraform and CloudFormation
Provider support
Declaration syntax
Development and deployment methodologies
Understanding the value of Cloud Development Kit
Testing infrastructure
Adding artifacts
Assessments
Index
Other Books You May Enjoy.
Notes:
Includes bibliographical references and index.
Description based on print version record.
ISBN:
1-80512-669-5
OCLC:
1409811647

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account