Learn CloudFormation - Agus Kurniawan - E-Book

Learn CloudFormation E-Book

Agus Kurniawan

0,0
33,59 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.
Mehr erfahren.
Beschreibung

Get up and running with AWS automation using CloudFormation

Key Features



  • Explore the fundamentals of AWS CloudFormation
  • Get acquainted with concepts such as CloudFormation templates and mappings
  • Learn to implement Infrastructure as a Code (IaC) on AWS

Book Description



As the Amazon Web Services (AWS) infrastructure is gradually moving towards cloud, managing cloud-related tasks efficiently continues to be a challenge for system administrators. CloudFormation is a language developed for managing infrastructure-related services efficiently on AWS and its features help secure the AWS resource deployment process.



Learn CloudFormation serves as a fundamental guide to kick-start your journey on CloudFormation. We will introduce you to the basic concepts on IaC and the AWS services required for implementing automation and infrastructure management. Then, we deep dive into concepts such as CloudFormation mapping, conditions, limit, and output and EC2. In the concluding chapters, you will manage the entire AWS infrastructure using CloudFormation templates.



By the end of this book, you will get up and running with IaC with CloudFormation.

What you will learn



  • Understand AWS CloudFormation
  • Develop AWS CloudFormation templates
  • Deploy AWS CloudFormation for AWS resources
  • Build your first AWS CloudFormation project
  • Explore AWS Security features
  • Deploy testing and production stages using CloudFormation

Who this book is for



Learn CloudFormation is for cloud engineers, system administrators, cloud architects, or any stakeholders working in the field of cloud development or cloud administration. Basic knowledge of AWS is necessary.

Agus Kurniawan is a lecturer, researcher, IT consultant, and author. He has more than 16 years of experience in various software and hardware development projects for various companies. He also has been delivering materials in training and workshops, and delivering technical writing. He has been awarded the Microsoft Most Valuable Professional (MVP) award for 13 years in a row. He is currently doing some research related to software engineering, machine learning, networking, and security systems at the Faculty of Computer Science, University of Indonesia.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 122

Veröffentlichungsjahr: 2018

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Learn CloudFormation

 

 

 

 

 

 

 

 

 

 

 

Write, deploy, and maintain your AWS infrastructure

 

 

 

 

 

 

 

 

 

 

 

 

Agus Kurniawan

 

 

 

 

 

 

 

 

 

 

 

BIRMINGHAM - MUMBAI

Learn CloudFormation

Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Gebin GeorgeAcquisition Editor: Heramb BhavsarContent Development Editor: Abhishek JadhavTechnical Editor: Swathy MohanCopy Editor:Safis EditingProject Coordinator:Kinjal BariProofreader: Safis EditingIndexer: Priyanka DhadkeGraphics: Tom ScariaProduction Coordinator: Deepika Naik

First published: July 2018

Production reference: 1310718

Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.

ISBN 978-1-78913-432-2

www.packtpub.com

 
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?

Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

Improve your learning with Skill Plans built especially for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content

PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. 

Contributors

About the author

Agus Kurniawan is a lecturer, researcher, IT consultant, and author. He has more than 16 years of experience in various software and hardware development projects for various companies. He also has been delivering materials in training and workshops, and delivering technical writing. He has been awarded the Microsoft Most Valuable Professional (MVP) award for 13 years in a row. He is currently doing some research related to software engineering, machine learning, networking, and security systems at the Faculty of Computer Science, University of Indonesia.

I would like to thank the Amazon AWS and IoT communities everywhere in the world for contributing and making learning AWS IoT easy. Last, a thank you to my wife, Ela, and my children, Thariq and Zahra, for their great support while I was completing this book.

About the reviewer

Gajanan Chandgadkar has more than 12 years of IT experience. He has spent more than 6 years in the USA, helping large enterprises architect, migrate, and deploy applications in AWS. He is an AWS-certified solutions architect professional and a certified DevOps professional with more than seven certifications in trending technologies. He is also a technology enthusiast who has vast experience in different topics, such as application development, container technology, and continuous delivery.

Currently, he is working with Happiest Minds Technologies as an associate DevOps architect.

 

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Table of Contents

Title Page

Copyright and Credits

Learn CloudFormation

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Introducing AWS CloudFormation

Introducing IaC

AWS CloudFormation

How does it work?

Controlling IaC source scripts

CloudFormation templates

CloudFormation stacks

CloudFormation StackSets

Exploring the AWS CloudFormation management console

Managing CloudFormation using the AWS CLI

Summary

Questions

Building Your First AWS CloudFormation Project

CloudFormation project scenario

Preparation

Implementing a CloudFormation project using the management console

Implementing a CloudFormation project using the AWS CLI

Setting up the AWS Command Line Interface (CLI)

Configuring security access for CloudFormation

Building and deploying CloudFormation

Editing a CloudFormation project

Editing CloudFormation using the management console

Editing CloudFormation using the AWS CLI

Deleting a CloudFormation project

Deleting CloudFormation using the management console

Deleting CloudFormation Stack using the AWS CLI

Summary

Questions

Developing AWS CloudFormation Templates

Reviewing the AWS CloudFormation template format

Reviewing JSON and YAML programming

JSON programming

YAML programming

The programming model for AWS CloudFormation templates

Writing JSON and YAML to create AWS CloudFormation templates

Getting input from the CloudFormation template

Introducing AWS CloudFormation Designer

Giving a template description

Selecting the input from options

Mapping parameters

Working with intrinsic functions

Working with Metadata on the CloudFormation template

CloudFormation resources

CloudFormation output

Demo – building Amazon EC2 using AWS CloudFormation

Preparing

Developing a CloudFormation template

Deploying the template

Summary

Questions

AWS CloudFormation StackSets

Introduction to AWS CloudFormation StackSets

Preparing CloudFormation StackSets

Getting the user ID from the IAM user

Creating the AWSCloudFormationStackSetAdministrationRole IAM role

Creating a service role – AWSCloudFormationStackSetExecutionRole

Implementing StackSets using management console

Creating a new StackSet

Adding a new CloudFormation Stack

Deleting CloudFormation stacks

Creating StackSets using the AWS CLI

Editing CloudFormation StackSets

Deleting CloudFormation StackSets

Summary

Questions

Building Lambda Functions Using AWS CloudFormation

Introducing AWS Lambda

Building AWS Lambda 

Creating the IAM role

Developing AWS Lambda using Web Management Console (WMC)

Testing AWS Lambda

CloudFormation template for AWS Lambda functions

Deploying Lambda functions using AWS CloudFormation

Creating a CloudFormation template for the Lambda function

Deploying AWS Lambda to CloudFormation

CloudFormation for AWS Lambda and DynamoDB

Creating the CloudFormation template for AWS DynamoDB

Building a CloudFormation template for Lambda and DynamoDB

Accessing DynamoDB from Lambda functions

Creating the CloudFormation template

Deploying the CloudFormation template

Configuring the Lambda invocation policy

Testing our Lambda function

Deploying the Lambda function to multiple regions

Preparation

Developing a CloudFormation template for the Lambda function

Deploying the Lambda function to multiple regions

Invoking the Lambda function

Summary

Questions

AWS CloudFormation Security

Security threats and models for AWS CloudFormation

Best practices for AWS security

Managing all AWS resource securities

Reducing security access to CloudFormation stacks

Stack policies

IAM conditions for CloudFormation

AWS security checklist

Summary

Assessment

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Other Books You May Enjoy

Leave a review - let other readers know what you think

Preface

As the Amazon Web Services (AWS) infrastructure is gradually moving towards the cloud, managing cloud-related tasks efficiently continues to be a challenge for system administrators. CloudFormation is a language that was developed for managing infrastructure-related services efficiently on AWS, and its features help secure the AWS resource deployment process. Learn CloudFormation serves as a fundamental guide that will kick-start your journey with CloudFormation. We will introduce you to the basic concepts of infrastructure as code (IaC) and the AWS services required to implement automation and infrastructure management. Then, we deep dive into concepts such as CloudFormation mapping, conditions, limits, output, and EC2. In the concluding chapters, you will manage the entire AWS infrastructure using CloudFormation templates.

By the end of this book, you will be up and running with IaC with CloudFormation.

Who this book is for

Learn CloudFormation is for cloud engineers, system administrators, cloud architects, or any stakeholders working in the field of cloud development or cloud administration. Basic knowledge of AWS is necessary.

What this book covers

Chapter 1, Introducing AWS CloudFormation, will introduce AWS CloudFormation and explain how to get started with AWS CloudFormation.

Chapter 2, Building Your First AWS CloudFormation Project, will explain how to get started building your first AWS CloudFormation project. The project will be implemented with a step-by-step practical approach.

Chapter 3, Developing AWS CloudFormation Templates, will explore how to develop AWS CloudFormation templates. Readers will learn how to create AWS CloudFormation templates using JSON and YAML. Readers also will be introduced to using AWS CloudFormation Designer to develop AWS CloudFormation templates in GUI mode.

Chapter 4, AWS CloudFormation StackSets, will explore the basics of AWS CloudFormation StackSets. By the end of this chapter, readers will know how to build and manage AWS CloudFormation StackSets.

Chapter 5, Building Lambda Functions Using AWS CloudFormation, will take readers through the process of deploying Lambda Functions using AWS CloudFormation.

Chapter 6, AWS CloudFormation Security, will deal with securing resources that are deployed using AWS CloudFormation.

Chapter 7, Managing and Testing Production Infrastructure for AWS CloudFormation, will explain how to manage and deploy testing and production infrastructure using AWS CloudFormation. The chapter is not present in the book, but it is available for the download in the following link: https://www.packtpub.com/sites/default/files/downloads/Managing_and_Testing_Production_Infrastructure_for_AWS_CloudFormation.pdf.

To get the most out of this book

As the practical examples involve the use of AWS, an AWS account is required.

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

Log in or register at

www.packtpub.com

.

Select the

SUPPORT

tab.

Click on

Code Downloads & Errata

.

Enter the name of the book in the

Search

box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

WinRAR/7-Zip for Windows

Zipeg/iZip/UnRarX for Mac

7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Learn-CloudFormation. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/LearnCloudFormation_ColorImages.pdf.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email [email protected] and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected].

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.

Introducing AWS CloudFormation