connect_aws: Connect to Amazon Web Services (AWS) for instances (EC2),...

Description Usage Arguments Details Value See Also Examples

View source: R/connect.R

Description

Connect to AWS to set up instances (EC2), databases (RDS), and storage (S3). Only necessary if you want to orchestrate instances through R. Requires IAM account (in credentials_file/credentials_section) to have permissions for "AmazonEC2FullAccess," "AmazonRDSFullAccess, and "AmazonS3FullAccess." In order not to use credentials here, you need to set up an INI file containing your AWS IAM credentials. You can do this by hand (see write_aws_credentials()) or use the write_aws_credentials() function.

Usage

1
2
3
4
5
connect_aws(
  region = "eu-central-1",
  credentials_section = "AWS",
  credentials_file = "~/.scrapebot.ini"
)

Arguments

region

The AWS region to connect to (e.g., "eu-central-1" for Frankfurt) as character.

credentials_section

The section within your INI file holding the credentials. If write_aws_credentials() was used to create the INI file, then the section is called "AWS".

credentials_file

The INI file to use. If write_aws_credentials() was used to create the INI file, then it is called ~/.scrapebot.ini (the default).

Details

AWS works in regions. As such, you need to specify the region here in which all subsequent actions will take place. You AWS user might not have all regions enabled. Find out more about it in your account settings (https://console.aws.amazon.com/billing/home?#/account).

Value

An AWS connection object (i.e., a specified list), ready to be passed to other ScrapeBotR functions.

See Also

write_aws_credentials() to help create the credentials file

Examples

1
2
3
4
5
6
7
## Not run: 

connect_aws()
connect_aws('us-east-2')
connect_aws(NULL, 'my AWS creds', '~/my_own_credentials_file.ini')

## End(Not run)

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