describe_instances: EC2 Instance Status

Description Usage Arguments Value References Examples

View source: R/describe_instances.R

Description

Describe or check status of an EC2 instance

Usage

1
2
3
4
5
6
7
8
9
describe_instances(instance = NULL, filter = NULL, n = NULL,
  token = NULL, ...)

instance_status(instance = NULL, filter = NULL, runningonly = NULL,
  n = NULL, token = NULL, ...)

get_instance_public_ip(instance, ...)

get_instance_private_ip(instance, ...)

Arguments

instance

A character string containing an EC2 instance ID or an object of class “ec2_instance”. Or, actions can be taken on multiple instances in one call by passing a character vector of instance IDs, or a list of objects of class “ec2_instance”.

filter

...

n

...

token

A (max 64-character) string containing a unique user-defined token. This can be used to ensure idempotency of requests in the event of a user-side failure. See http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html for details.

...

Additional arguments passed to [ec2HTTP()].

runningonly

...

Value

For describe_instances, a list containing several lists of elements, including one or more “instancesSet” elements that lists various instances. For instance_status, a possibly empty list.

References

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceStatus.html

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
i <- run_instances()
describe_instances(i[[1]])
instance_status(i[[1]])

stop_instances(i[[1]])
terminate_instances(i[[1]])

## End(Not run)

HanjoStudy/awsR documentation built on May 6, 2019, 9:06 a.m.