Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AWS Administration Cookbook

You're reading from   AWS Administration Cookbook Harness the full capability of AWS

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781787127630
Length 394 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Lucas Chan Lucas Chan
Author Profile Icon Lucas Chan
Lucas Chan
Rowan Udell Rowan Udell
Author Profile Icon Rowan Udell
Rowan Udell
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. AWS Fundamentals FREE CHAPTER 2. Managing AWS Accounts 3. Storage and Content Delivery 4. Using AWS Compute 5. Management Tools 6. Database Services 7. Networking 8. Security and Identity 9. Estimating Costs

Creating a database with automatic failover


In this recipe, we're going to create a MySQL RDS database instance configured in multi-AZ mode to facilitate automatic failover.

Database with automatic failover

Getting ready

The default VPC will work fine for this example. Once you are comfortable with creating databases, you may want to consider a VPC containing private subnets that you can use to segment your database away from the Internet and other resources (in the style of a three tier application). Either way, you'll need to note down the following:

  • The ID of the VPC
  • The CIDR range of the VPC
  • The IDs of at least two subnets in your VPC. These subnets need to be in different Availability Zones, for example, us-east-1a and us-east-1b

How to do it...

Create a new CloudFormation template. We're going to add a total of 12 parameters to it:

  1. The first three parameters will contain the values we mentioned in the Getting ready section:
      VPCId: 
        Type: AWS::EC2::VPC::Id 
        Description:...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image