ec2-monitor-instances
Description
Enables monitoring for a running instance. For more information, refer to the Amazon CloudWatch Developer Guide.
Syntax
ec2-monitor-instances
instance_id
[instance_id
...]
Options
Name | Description | Required |
---|---|---|
|
Instance ID. Type: String Default: None Example: i-43a4412a |
Yes |
Output
The command returns a table that contains the following information:
-
Instance ID
-
Monitoring state
Amazon EC2 displays errors on stderr.
Examples
Example Request
This example enables monitoring for i-43a4412a and i-23a3397d.
PROMPT>ec2-monitor-instances i-43a4412a i-23a3397d
i-43a4412a monitoring-pending
i-23a3397d monitoring-pending