Leanpub Header

Skip to main content

AWS CloudFormation - The Easy Way

CloudFormation is the best tool to provision and manage your AWS resources.

This book will help you to become acquainted quickly with AWS CloudFormation.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
135
Readers
362
Pages
About

About

About the Book

AWS CloudFormation is a service that helps you model and set up your Amazon Web Services resources. With CloudFormation you create a template that describes all the AWS resources you need (like Amazon EC2 instances or Amazon RDS DB instances), and AWS CloudFormation takes care of provisioning and configuring those resources for you. You don't need to individually create and configure AWS resources and figure out what's dependent on what; AWS CloudFormation handles all of that. 

This book provides you with an overview of AWS CloudFormation and shows you how to use CloudFormation templates and stacks. The example project will help you grasp the concepts quickly. You will master the AWS CloudFormation in no time!

Any feedback, suggestion, and correction that can help making this book better is highly appreciated. Use this link to contact me: https://leanpub.com/aws-cloudformation/email_author/new.

Share this book

Price

Pick Your Price...

Minimum price

$19.99

$29.99

You pay

$29.99

Author earns

$23.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Yan Kurniawan

Yan Kurniawan is a freelance Cloud/DevOps Engineer. Yan has worked on many AWS projects and he has helped companies from startups to Fortune 100 companies. He is an AWS Certified Solutions Architect Professional and a Puppet Certified Professional.

Based in Sydney, Australia, he enjoys the laid-back lifestyle in one of the world’s best cities to live in. He loves taking beautiful cityscape and landscape pictures with his camera. You can find his works here.

You can hire him through Upwork.

Contents

Table of Contents

About the Author

Preface

  1. What this book covers
  2. Who this book is for
  3. What you need for this book
  4. Conventions
  5. This is an information box
  6. This is a warning box
  7. Tips and tricks
  8. Example Code Files

Chapter 1: Getting Started with AWS

  1. What is Amazon Web Services (AWS)?
  2. AWS Global Infrastructure
  3. Setting Up Your AWS Account
  4. AWS Management Console
  5. Create Your First EC2 Instance
  6. Connect to Your Instance
  7. Terminate Your Instance

Chapter 2: Getting Started with CloudFormation

  1. What is AWS CloudFormation
  2. AWS CloudFormation Concepts
  3. How Does AWS CloudFormation Work?
  4. Template Anatomy
  5. Format Version
  6. Description
  7. Metadata
  8. Parameters
  9. Parameter’s Properties
  10. Type Property
  11. AWS-specific Parameter Types
  12. Mappings
  13. Conditions
  14. Resources
  15. Outputs
  16. Your First Template
  17. Updating Stack
  18. Canceling a Stack Update
  19. Deleting Stack

Chapter 3: The IAM Stack

  1. Introduction to IAM
  2. Getting Started with IAM
  3. IAM Best Practices
  4. Creating Your First IAM Admin User and Group
  5. IAM Stack
  6. AWS::IAM::Role
  7. AWS::IAM::Policy
  8. AWS::IAM::InstanceProfile

Chapter 4: The Network Stack

  1. Introduction to VPC
  2. The Default VPC
  3. VPC and Subnet Basics
  4. Getting Started with VPCs and Subnets
  5. NAT Gateways
  6. Security Groups for Your VPC
  7. Network Stack
  8. Route53 Hosted Zones
  9. AWS::EC2::VPC
  10. AWS::EC2::Subnet
  11. AWS::EC2::RouteTable
  12. AWS::EC2::Route
  13. AWS::EC2::SubnetRouteTableAssociation
  14. AWS::EC2::InternetGateway
  15. AWS::EC2::VPCGatewayAttachment
  16. AWS::EC2::NatGateway

Chapter 5: The Application Stack

  1. Introduction to Auto Scaling
  2. How Auto Scaling Works
  3. The Architecture
  4. Getting Started with Auto Scaling
  5. Scaling the Size of Your Auto Scaling Group
  6. Load Balance Your Auto Scaling Group
  7. Getting Started with ELB
  8. Attaching Load Balancer to ASG
  9. Scheduled Scaling
  10. Dynamic Scaling
  11. Scaling Based on Metrics
  12. Application Stack
  13. AWS::AutoScaling::LaunchConfiguration
  14. AWS::AutoScaling::AutoScalingGroup
  15. AWS::AutoScaling::ScalingPolicy
  16. AWS::CloudWatch::Alarm
  17. AWS::ElasticLoadBalancing::LoadBalancer
  18. AWS::RDS::DBSubnetGroup
  19. AWS::RDS::DBInstance
  20. AWS::EC2::Instance

Chapter 6: Stack Policy

  1. Example Stack Policy
  2. Defining a Stack Policy
  3. Setting a Stack Policy
  4. Updating Protected Resources
  5. More Example Stack Policies

Appendix A: Converting JSON to YAML

  1. JSON to YAML
  2. YAML to JSON

Appendix B: CLI Commands

  1. Creating a Stack
  2. Describing and Listing Your Stacks
  3. Viewing Stack Event History
  4. Listing Resources
  5. Retrieving a Template
  6. Validating a Template
  7. Uploading Local Artifacts to an S3 Bucket
  8. Quickly Deploying Templates with Transforms
  9. Deleting a Stack

Appendix C: Intrinsic Function

  1. Fn::Base64
  2. Condition Functions
  3. Fn::FindInMap
  4. Fn::GetAtt
  5. Fn::GetAZs
  6. Fn::ImportValue
  7. Fn::Join
  8. Fn::Select
  9. Fn::Sub
  10. Ref

Appendix D: Resource Attribute

  1. CreationPolicy Attribute
  2. DeletionPolicy Attribute
  3. DependsOn Attribute
  4. Metadata Attribute
  5. UpdatePolicy Attribute

Appendix E: Pseudo Parameters

  1. AWS::AccountId
  2. AWS::NotificationARNs
  3. AWS::NoValue
  4. AWS::Region
  5. AWS::StackId
  6. AWS::StackName

Appendix F: Helper Scripts

  1. cfn-init
  2. cfn-signal
  3. cfn-get-metadata
  4. cfn-hup

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub