aws_terminate_instance: Terminate an AWS EC2 instance

Description Usage Arguments Value See Also Examples

View source: R/aws.R

Description

Terminating an EC2 instance translates to shutting down and deleting it. That means, all data stored on that machine is gone. This does not affect a central database, given that the central database is located on a different machine. Note that AWS lists an instance after shutting it down for some 10-20 minutes longer. You won't be charged for such instances, though.

Usage

1
aws_terminate_instance(aws_connection, instance_aws_uid)

Arguments

aws_connection

AWS connection object, as retrieved from connect_aws(). This also specifies the region.

instance_aws_uid

Character string with the instance to be terminated. This has been put into the aws_connection$ec2_instances tibble.

Value

The updated AWS connection object.

See Also

connect_aws(), aws_launch_instance()

Examples

1
2
3
4
5
6
## Not run: 

aws_connection <- connect_aws()
aws_terminate_instance(aws_connection, 'i-0a1b2c3d4e5f6g7h8i9j')

## End(Not run)

MarHai/ScrapeBotR documentation built on March 10, 2021, 10:10 a.m.