Book Image

AWS Tools for PowerShell 6

By : Ramesh Waghmare
Book Image

AWS Tools for PowerShell 6

By: Ramesh Waghmare

Overview of this book

AWS Tools for PowerShell 6 shows you exactly how to automate all the aspects of AWS. You can take advantage of the amazing power of the cloud, yet add powerful scripts and mechanisms to perform common tasks faster than ever before. This book expands on the Amazon documentation with real-world, useful examples and production-ready scripts to automate all the aspects of your new cloud platform. It will cover topics such as managing Windows with PowerShell, setting up security services, administering database services, and deploying and managing networking. You will also explore advanced topics such as PowerShell authoring techniques, and configuring and managing storage and content delivery. By the end of this book, you will be able to use Amazon Web Services to automate and manage Windows servers. You will also have gained a good understanding of automating the AWS infrastructure using simple coding.
Table of Contents (17 chapters)

Use case - balancing traffic between read replicas

If your application is read-intensive and you have a single read replica, chances are that if your read replica CPU spikes up to 100 percent, your read replica may not respond at all. To address such a situation, the solution is to add multiple read replicas to your application stack; then you might want to balance the traffic between those read replicas.

This is where Route 53 can play a role. Route 53 is a scalable DNS service provided by AWS. In this example, we will create a private hosted zone for VPC and then make use of the Weighted Routing Policy to direct traffic across two read replicas. Let's create the domain for VPC as mydb.local.

To get a list of all the cmdlets related to Route 53, you can use the following command:

PS C:\> Get-Command *R53*

We created VPC vpc-a6bb60df to demonstrate concepts in this book...