start_instances: Start, Stop, Reboot, or Terminate EC2 Instance

Description Usage Arguments Value References See Also Examples

View source: R/start_instances.R

Description

Stop a running instance, terminate a stopped instance, start a stopped instance, or reboot an instance.

Usage

1
2
3
4
5
6
7
start_instances(instance, info = NULL, ...)

stop_instances(instance, force = FALSE, ...)

terminate_instances(instance, ...)

reboot_instances(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”.

info

...

...

Additional arguments passed to [ec2HTTP()].

force

...

Value

A list

References

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartInstances.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StopInstances.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TerminateInstances.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RebootInstances.html

See Also

describe_instances(), run_instances()

Examples

1
2
3
4
5
6
7
8
## Not run: 
i <- run_instances()
stop_instances(i[[1]])
start_instances(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.