aws_profile: User profile configuration

Description Usage Arguments Examples

Description

Functions to configure and visualize the user credentials. You can see a profile settings using profile_settings() and vizualise all profiles created using list_profiles(). The AWS CLI saves your credentials in ~/.aws folder, so, for security reasons, delete your credentials when you finish your work using delete_all_profiles().

Usage

1
2
3
4
create_profile(profile = "default", access_key, secret_key,
  region = "us-east-1")

profile_settings(profile = "default")

Arguments

profile

The profile-name. If profile was not supplied create_profile() will create a default profile.

access_key

The access key create by AWS.

secret_key

The secret key create by AWS.

region

The default region

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
# To run these examples you need the AWS CLI, use
# aws_cli_install() if it is not installed.

# create a default user
create_profile(access_key = "my_access_key_1",
               secret_key = "123456789",
               region = "us-east-1")

# verify if the user was created
profile_settings()

# you can also create a user with a profile name
create_profile(profile = "profile_name",
               access_key = "my_access_key_2",
               secret_key = "987654321",
               region = "us-west-1")

# verify if the user was created
profile_settings(profile = "profile_name")

# remove your credentials from this computer
delete_all_profiles()

## End(Not run)

samuelmacedo83/raws.profile documentation built on May 4, 2019, 6:31 a.m.