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)

Creating a base network using CloudFormation

In this section, let's plan to create a similar base network to what we created in Chapter 5, AWS Virtual Private Cloud. In that chapter, we learnt how to make use of several individual cmdlets to create the network. In this chapter, we will focus on creating and automating those individual actions using CloudFormation. The business case is, we want to input CIDR Block for VPC and create four individual subnets (two public and two private) inside that VPC, based on the range that you specify as an input to the CloudFormation stack. This means, overall, we will be inputting five parameters to the stack. As an output, we want to get a VPC ID, four subnet IDs, and a Security Group ID. In addition, you want to export those output parameters so that other stacks can reference it.

Creating a template is not that scary, though it sounds...