Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
View states for Amazon EC2 High Availability for SQL Server
You can view the Amazon EC2 High Availability for SQL Server (SQL HA) current and historical states. Use one of the following
methods:
- Console
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation panel, choose Instances.
-
Select the instances in the High Availability deployment for which to view the SQL HA
states, then choose the SQL High Availability tab.
- Amazon CLI
-
To view the current SQL HA states for Amazon EC2 instances, use the describe-instance-sql-ha-states
command. This command only shows the current SQL HA status of your onboarded instances.
aws ec2 describe-instance-sql-ha-states \
--instance-ids instance_ids
To view the historical SQL HA states for instances, use the
describe-instance-sql-ha-history-states command. This command returns your SQL HA instance
state transitions in descending time order.
aws ec2 describe-instance-sql-ha-history-states \
--instance-ids instance_ids \
--start-time period_start_timestamp \
--end-time period_end_timestamp