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)

Monitoring EC2 instances

To monitor EC2 instances, it is good to monitor the status checks metrics in addition to default metrics or some custom metrics. AWS does not provide an in-built way to monitor memory utilization, swap utilization, or disk utilization, but they do provide the script so that you can create the required metrics and publish them to CloudWatch. Once you have the metric data available in CloudWatch, you can create an alarm and get notified. There are two types of system checks available for EC2 instances.

  • System status checks: Things that are outside of your control are indicated by this status check. These include:
    • Loss of system power
    • Hardware issues on the physical host
    • Software issues on the physical host
    • Loss of network connectivity

In order to solve this status check, you must stop and restart the EC instance. This way, AWS will launch an EC2 instance...