

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Monitoring
incomplete
2: Monitoring Targets
incomplete
3: External Monitoring
incomplete
4: Internal Monitoring
incomplete
5: CloudWatch Alarms
incomplete
6: CloudTrail
incomplete
7: Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
We can't get started with monitoring until we have something to monitor!
Let's set up our EC2 instance as a target that we can monitor with CloudWatch, AWS' built-in service for collecting metrics, logs, and events from various resources and applications.
Use your existing patientping-web-v2 EC2 instance as the monitoring target and make sure it's ready for this chapter.
Cost check: A t3.micro instance costs about $0.0104 per hour (~$7.60 per month). A public IPv4 address costs $0.005 per hour (~$3.60 per month).
# VPC
aws ec2 describe-vpcs --filters Name=tag:Name,Values=patientping
# Public subnet
aws ec2 describe-subnets --filters Name=tag:Name,Values=patientping-public-a
# EC2 instance
aws ec2 describe-instances --filters Name=tag:Name,Values=patientping-web-v2
# Public IP on instance
aws ec2 describe-instances --filters Name=tag:Name,Values=patientping-web-v2 --query 'Reservations[*].Instances[*].PublicIpAddress'
Run and submit the CLI tests.