From the course: AWS for DevOps: High Availability and Elasticity

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Script tools for high availability

Script tools for high availability - Amazon Web Services (AWS) Tutorial

From the course: AWS for DevOps: High Availability and Elasticity

Start my 1-month free trial

Script tools for high availability

- Now that we've got our script tools set up, what can we do with it around HA or high availability scenarios? Well, to get us started, I've written a couple sample scripts and I'll show you where they are. So, the first script we're going to run is running on the EC2 services and we're going to describe the availability zones. So, I'm going to copy and paste that into our terminal. And we get a JSON output. We could also get this as text if we wanted to. And you can see that for our default region, which we set in the AWS configure command when we set up the AWS CLI. The default region is us-east-1. Notice, our availability zones are showing all available. Now, why might we want to see this information programmatically? And I'll just scroll down to show all of them here. Go, we've got five of them and the reason for this is if an availability zone, entire zone, basically a data center, became unavailable or was degraded, we might want to then further program an alarm state against…

Contents