Learn how to run AWS CLI scripts for elasticity scenarios.
- [Instructor] In this next section we're going to…look at scripting for elasticity scenarios.…And as we've been learning in this course,…it's very common to not only gather…the existing state of a property of a service,…like we just did with the elastic load balancer;…it's also common to gather metrics over time.…And that's done with CloudWatch alarms.…We set up an alarm earlier, on an EC2 instance,…you might remember.…I'm in CloudWatch, in the dashboard here.…And you can see that this is the alarm name.…And I've set this up on the CPU utilization…on an instance with the intent,…from an elasticity point, of being able to…then react to the threshold being met…or exceeded for a certain period of time.…
So I could scale up or scale down…my instances, based on this.…So how do we interact with this programatically?…It's really following the same patterns.…Let's jump over into our sample code.…And you can see we use aws cloudwatch…describe-alarms --alarm-name and the we have to…put the long number for the name; the self generated.…
Author
Released
7/13/2017- Simplifying HA with services
- Metrics, tools, and levels of monitoring
- Self-healing architectures
- Scaling S3, EC2, ECS, Lambda, ElastiCache, and more
- Script and code tools
- Setting up the AWS CLI and SDK
- Using third-party tools
Skill Level Advanced
Duration
Views
Related Courses
-
Amazon Web Services for Data Science
with Lynn Langit3h 56m Intermediate -
Amazon Web Services: High Availability
with Sharif Nijim2h 17m Intermediate
-
Introduction
-
Welcome30s
-
Exercise files14s
-
-
1. Availability and Elasticity Approaches
-
Simplifying HA with services7m 14s
-
2. Availability and Elasticity for Services
-
Scaling containers with ECS8m 25s
-
3. AWS Tools for Availability and Elasticity
-
Setting up AWS CLI3m 10s
-
Script tools for elasticity4m 43s
-
Setting up the AWS SDK3m 6s
-
Code tools for elasticity4m 59s
-
AWS code best practices2m 8s
-
-
4. Advanced and Third-Party Tools
-
Conclusion
-
Next steps1m 58s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Script tools for elasticity