Querying AWS

Status

Displaying the status of AWS services

The following command will display a dropdown list of all AWS services. After selecting an element from the list, Opsidian will display the status of the AWS service.

/ops status
Displaying the status of an AWS service
The following command will display the status of an AWS service.
/ops status <service>

For example, to view the status of the EC2 service, run:

/ops status ec2

API Gateway

Displaying the list of APIs
/ops apigateway list apis [filter <filter>]
Displaying details of an API
/ops apigateway show api <api_id>
Displaying resources in an API
/ops apigateway list resources api <api_id>
Displaying stages of an API
/ops apigateway list stages api <api_id>

Auto Scaling

Displaying a list of Auto Scaling groups
/ops autoscaling list groups [filter <filter>]
Displaying details of an Auto Scaling group
/ops autoscaling show group <group_name>
Displaying activities of an Auto Scaling group
/ops autoscaling list activities group <group_name> [last <1-50>]
Displaying instances in an Auto Scaling group
/ops autoscaling list instances group <group_name>

CloudFormation

Displaying a list of CloudFormation stacks
/ops cloudformation list stacks [<complete|failed|deleted|inprogress>] [filter <filter>]
Displaying details of a CloudFormation stack
/ops cloudformation show stack <stack_name>

CloudWatch

Displaying a list of CloudWatch alarms
/ops cloudwatch list alarms [state <ALARM|OK|INSUFFICIENT_DATA>] [last <1-50>] [filter <filter>]
Displaying details of an alarm
/ops cloudwatch show alarm <alarm_name>
Displaying a plot of metrics associated with an alarm
/ops cloudwatch plot alarm <alarm_name>

DynamoDB

Displaying a list of DynamoDB tables
/ops dynamodb list tables [filter <filter>]
Displaying the total read and write throughput of all DynamoDB tables
/ops dynamodb show throughput total
Displaying the throughput of a table
/ops dynamodb show throughput table <table_name>
Displaying the number of decreases of a table
/ops dynamodb show throughput decreases table <table_name>
Displaying the status of a table
/ops dynamodb show status table <table_name>
Displaying the size in bytes of a table
/ops dynamodb show size table <table_name>
Displaying the item count of a table
/ops dynamodb show item count table <table_name>
Displaying when was the table created
/ops dynamodb show created table <table_name>
Displaying a list of alarms defined for a table
/ops dynamodb show alarms table <table_name>
Displaying the average consumed capacity of a table in a given time range

If no time range is specified, 1h will be used by default.

/ops dynamodb show consumed capacity table <table_name> [range <1h|3h|6h|12h|24h>]

EBS

Displaying a list of EBS volumes
/ops ebs list volumes [filter <filter>]
Displaying details of an EBS volume
/ops ebs show volume <volume_id>

EC2

Displaying a list of EC2 instances
/ops ec2 list instances [filter <filter>]
/ops ec2 list instances filter <name_tag>
/ops ec2 list instances filter <instance_id>
/ops ec2 list instances filter state:<pending|running|shutting-down|terminated|stopping|stopped>
/ops ec2 list instances filter tag:<tag_name>=<tag_value>
Examples
/ops ec2 list instances
/ops ec2 list instances filter nameTag
/ops ec2 list instances filter state:stopped
/ops ec2 list instances filter tag:Name="myApp Prod"
Displaying details of an EC2 instance
/ops ec2 show instance <instance_id>
Starting an EC2 instance
/ops ec2 start instance <instance_id>
Stopping an EC2 instance
/ops ec2 stop instance <instance_id>
Rebooting an EC2 instance
/ops ec2 reboot instance <instance_id>

ECS

Displaying a list of ECS clusters
/ops ecs list clusters [filter <filter>]
Displaying a list of services in a cluster
/ops ecs list services cluster <cluster_name>
Displaying a list of instances in a cluster
/ops ecs list instances cluster <cluster_name>
Displaying the resources of a service
/ops ecs show resources service <service_name> cluster <cluster_name>
Displaying details of a service
/ops ecs show tasks service <service_name> cluster <cluster_name>

ElastiCache

Displaying a list of ElastiCache clusters
/ops elasticache list clusters [filter <filter>]
Displaying details of a cluster
/ops elasticache show cluster <cluster_name>

ELB

Displaying a list of load balancers
/ops elb list balancers [filter <filter>]
Displaying details of a load balancer
/ops elb show balancer <balancer_name>
Displaying information about the health of a load balancer
/ops elb show health balancer <balancer_name>

EMR

Displaying a list of EMR clusters
/ops emr list clusters [filter <filter>]
Displaying a list of EMR clusters in a given state

The following command displays the list of the last <number> EMR clusters with a given state. The maximum value of <number> is 50.

/ops emr list clusters [<active/terminated/failed>] [last <number>] [filter <filter>]
Displaying a list of instances in a cluster
/ops emr list instances cluster <cluster_id>
Displaying details of a cluster
/ops emr show cluster <cluster_id>

Kinesis

Displaying a list of Kinesis streams
/ops kinesis list streams [filter <filter>]
Displaying details of a Kinesis stream
/ops kinesis show stream <stream_name>

Lambda

Displaying a list of Lambda functions
/ops lambda list functions [filter <filter>]
Displaying details of a Lambda function
/ops lambda show function <function_name>

RDS

Displaying a list of RDS instances
/ops rds list instances [filter <filter>]
Displaying a list of RDS events
/ops rds list events [filter <filter>]
Displaying details of an RDS instance
/ops rds show instance <instance_name>

Route 53

Displaying a list of Route 53 zones
/ops list zones [filter <filter>]
Displaying details of a Route 53 zone
/ops route53 show zone <zone_name>

S3

Displaying a list of buckets
/ops s3 list buckets [filter <filter>]
Displaying details of a specified bucket
/ops s3 show bucket <bucket_name>

SQS

Displaying a list of SQS queues
/ops sqs list queues [filter <filter>]
Displaying details of an SQS queue
/ops sqs show queue url <queue_url>

Powered by PrettyDocs.

Address

Antinkatu 1 A
00100 Helsinki, Finland
Business ID: 2670712-7
© Opsidian 2018