Skip to main content
Top

2019 | Book

Pro PowerShell for Amazon Web Services

Authors: Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris

Publisher: Apress

insite
SEARCH

About this book

Amazon Web Services (AWS) is the leading public cloud platform. In this book you will learn to use Microsoft PowerShell to create, host, manage, and administer workloads using Amazon Web Services. You will learn how to create virtual machines, provision storage, configure networks, and more—all using your preferred Windows scripting language.

CIOs everywhere are leading their organizations to the cloud, but there are few books available to help. This book focuses on moving Microsoft Windows workloads to the cloud using technologies familiar to enterprise Microsoft-based professionals.

The completely revised and expanded Pro PowerShell for Amazon Web Services is written specifically for Windows professionals who already know PowerShell and want to learn to host Windows workloads on Amazon Web Services. The cloud offers information technology workers significant cost savings and agility unimaginable even just a few years ago. Tasks that traditionally took weeks of work, costing thousands of dollars, can be completed in minutes for a fraction of a penny.

New chapters in this second edition cover: AWS Lambda, Amazon WorkSpaces, Amazon AppStream 2.0, AWS Directory Service, Amazon WorkDocs, and AWS System Manager.

What You'll Learn

Create and manage Windows servers on Elastic Compute Cloud (EC2)

Configure and secure networks with Virtual Private Cloud (VPC)

Leverage autoscaling to adjust resources as load changes

Deploy and manage SQL Server using the Relational Database Service (RDS)

Manage virtual desktops using WorkSpaces and AppStream

Leverage AWS Systems Manager to manage Windows at scale

Who This Book Is For

Windows professionals who want to learn more about Amazon Web Services, with a focus on running Windows workloads and automated management at scale using PowerShell tools for AWS. The book assumes you have knowledge of Windows and PowerShell, but are new to AWS.

Table of Contents

Frontmatter
Chapter 1. AWS Architecture Overview
Abstract
If you are anything like us, you cannot wait to get started and launch an application in the cloud. But, before we dive in and start launching servers, let’s take a step back and look at the big picture. Amazon Web Services (AWS) is a global platform with data centers around the globe. A little time spent on the architecture will help you understand why, and not just what, we are doing with AWS.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 2. Getting Started
Abstract
In the previous chapter, we described cloud computing and then discussed the benefits of scripting your AWS configuration. Before we get started writing these scripts, we need to create an AWS account and prepare our PowerShell environment.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 3. Basic Instance Management
Abstract
Now that we’re done configuring our environment, we’ll jump right in and get started by creating an instance. An EC2 instance is, simply, a server running in the cloud. With a few quick clicks, we will have our first server up and running.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 4. Elastic Block Storage
Abstract
In the last chapter, we learned how to launch and manage instances. In this chapter, we will focus on the volumes, or disks, attached to the instance. We will learn how to customize and add additional volumes at launch. Then we will look at modifying the volumes after launch. This chapter will also cover snapshots. Snapshots are a point-in-time copy of a volume, often used for backups. Snapshots can be used to create copies of volumes or to recover from a disaster. We will talk about using snapshots to create a backup of a volume and how to restore a volume when a disaster occurs.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 5. Virtual Private Cloud
Abstract
In this chapter we are going to discuss Virtual Private Cloud (VPC). VPC allows you to configure a custom network topology, as well as manage IP routing and security. A network topology is the structure of the network and controls how data flows between nodes.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 6. Advanced Instance Management
Abstract
In the last chapter, we learned how to create a Virtual Private Cloud (VPC) and specify our network topology. In this chapter, we are going to build on the VPC concepts, discussing how we can configure our instances in a VPC.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 7. Amazon Machine Images
Abstract
In the last few chapters, we have focused on creating and managing instances. This chapter is about the templates we use to create those instances. Amazon refers to these templates as Amazon Machine Images (AMIs). In this chapter we will explore the AMIs that already exist, and we will discuss how to create your own AMI and share it with others. Finally, we learn how to import a VM from VMware or Hyper-V into AWS.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 8. Monitoring and High Availability
Abstract
This chapter is about architecting your application for high availability. We have covered almost all of the PowerShell commands for EC2, but EC2 is only one of many services that AWS offers. In this chapter, we will examine a few of the services that you can use in concert with EC2 to build a highly available application. These services include Elastic Load Balancers (ELBs), Simple Notification Service (SNS), CloudWatch, Auto Scaling, and Route 53.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 9. Identity and Access Management
Abstract
If you have been following along from the beginning, we have completed all of the examples in this book while signed in as a user with administrator privileges. While this is a convenient way to learn a new technology, you should never run a production system with administrator privileges. If part of the system were compromised, you want to ensure you limit access as much as possible.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 10. Relational Database Service
Abstract
Relational Database Service (RDS) is a service that makes it easy to create and manage a database in the cloud. RDS supports MySQL, MariaDB, PostgreSQL, Oracle, and SQL Server. While you could install and run any of these on an EC2 instance, RDS greatly simplifies the effort. RDS instances are managed by AWS, eliminating time-consuming activities, such as patching and backups, and allowing you to focus on your application.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 11. Simple Storage Service
Abstract
Simple Storage Service (S3) is used to store in the cloud. S3 can scale to enormous size. You can store an unlimited number of objects and access them from anywhere. You access S3 over HTTP or HTTPS using a REST API.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 12. AWS Directory Service
Abstract
In this chapter, we will cover the AWS Directory Service, which is a highly scalable and managed multi-directory store; it can be used for authentication and Single Sign-On services. As mentioned, there are multiple directories supported by AWS Directory Service, each one helping solve a unique business problem, including authentication services for traditional applications, support for SaaS application developers, and cloud applications with complex authentication relationships. The directories available include Amazon Cloud Directory, AD Connector, Amazon Cognito, Simple AD, and Microsoft AD. As one can imagine, each of these directories has enough depth, nuance, and complexity to warrant a dedicated chapter in this book. However, in this section we will focus on the services that are most frequently used with Microsoft Workloads and managed with PowerShell; these are Microsoft AD, AD Connector, and Simple AD.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 13. Amazon WorkSpaces and Amazon AppStream 2.0
Abstract
An important area in which cloud can add value to your organization is in End-User Computing; this is because you are able to quickly and easily provision virtual desktops, streaming applications, without the need of purchasing expensive hardware and making a long-term financial commitment. There are two specific End-User Computing AWS services which we will focus on, Amazon WorkSpaces and Amazon AppStream 2.0. These services provide users access to their documents, applications, and other resources, from anywhere and anytime, as long as they, users, are on a supported device. These services both provide a pay-as-you-go model and also give you the flexibility to always have the resources running or run them when you need them.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 14. Amazon WorkDocs
Abstract
In the last couple of decades, collaboration platforms have become a necessity to organizations that want to increase productivity with their workforce, by using services that foster collaboration. Amazon WorkDocs is a managed, enterprise storage and sharing service that allows organizations to collaborate on content in a secure and safe fashion, both internally and outside of the organization.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 15. Systems Manager Basics
Abstract
Now that you’ve been creating resources in the cloud with PowerShell, you’ll need a simple and secure way to manage all those resources. AWS Systems Manager is a convenient set of management tools that lets you configure and manage your AWS resources at scale.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 16. Systems Manager: Run Command, Automation, and State Manager
Abstract
AWS Systems Manager includes several powerful features which can help you manage fleets of Amazon EC2 instances. In this chapter, we'll take a look at AWS Systems Manager Run Command, Automation, and State Manager which all use a shared object known as Systems Manager (SSM) Documents. Since SSM Documents are a common thread between all these features, it makes sense to dive into them first. So we’ll look at what documents are and how to work with them, and then we’ll see how they are used with Run Command, Automation, and State Manager.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 17. Systems Manager: Inventory and Patch Manager
Abstract
Two exciting AWS Systems Manager features that help manage your fleet at scale are Systems Manager Inventory and Systems Manager Patch Manager. With Systems Manager Inventory, you can specify the type of metadata you want to collect from your instances, which instances to collect it from, and when to collect it. AWS Systems Manager Patch Manager gives you the tools you need to automate the process of scanning or installing patches on your instances.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Chapter 18. Lambda with PowerShell
Abstract
With AWS Lambda you can deploy and execute code that can be triggered from a multitude of event sources without provisioning or the need to maintain any host servers. Lambda functions can run a number of different languages to include PowerShell Core. In this chapter, I’ll explain how to set up AWS Lambda using PowerShell and to execute PowerShell code as a Lambda function.
Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
Backmatter
Metadata
Title
Pro PowerShell for Amazon Web Services
Authors
Brian Beach
Steven Armentrout
Rodney Bozo
Emmanuel Tsouris
Copyright Year
2019
Publisher
Apress
Electronic ISBN
978-1-4842-4850-8
Print ISBN
978-1-4842-4849-2
DOI
https://doi.org/10.1007/978-1-4842-4850-8

Premium Partner