View source: R/creds_set_aws.R
creds_set_aws | R Documentation |
Build a data frame that contains all of the credentials needed to connect to an s3 bucket pin board. Additionally, it ensures the minimum requirement that either a named profile or a set of AWS key and secret are provided. If a named profile is provided, the key and secret will be ignored.
creds_set_aws(
profile_name = character(0),
key = character(0),
secret = character(0)
)
profile_name |
The name of an AWS credentials profile for the s3 bucket where the data product is stored. This is a name associated with a set of credentials within the .aws/credentials files in your home directory. See the AWS CLI credentials file documentation for more information. |
key |
The AWS Access Key ID associated with your access to the s3 bucket where the data product is stored. |
secret |
The AWS Secret Access Key associated with your access to the s3 bucket where the data product is stored. |
A data.frame with class "aws_creds" and a column for each param.
## Not run:
aws_creds <- creds_set_aws(
key = Sys.getenv("AWS_KEY"),
secret = Sys.getenv("AWS_SECRET")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.