Skip to content

Instantly share code, notes, and snippets.

@mikahanninen
Last active March 23, 2021 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikahanninen/c31656305ecc66d17d58c93e8059ccd0 to your computer and use it in GitHub Desktop.
Save mikahanninen/c31656305ecc66d17d58c93e8059ccd0 to your computer and use it in GitHub Desktop.
Using Robocorp Vault from Lab

Using Robocorp Vault from Lab

View credentials

rcc configure credentials

Add new Cloud Access Credential entry (if account has not been added before)

All user's Access Credentials are visible at https://cloud.robocorp.com

rcc configure credentials <ACCESS_CREDENTIAL> -a <ACCOUNT_NAME>

Delete Access Credential entry (optional)

NOTE. This will remove Access Credential also from Cloud!

rcc configure credentials --delete -a <ACCOUNT_NAME>

List workspaces (to see workspace id)

Workspace ID is visible also at https://cloud.robocorp.com

rcc cloud workspace 

Authorize <ACCOUNT_NAME> to access <WORKSPACE_ID> for 24 hours (max token validity time)

Parameter -m gives validity time in minutes

rcc cloud authorize -a <ACCOUNT_NAME> -w <WORKSPACE_ID> -m 1440

devdata/env.json

{
    "RC_API_SECRET_HOST": "https://api.eu1.robocloud.eu",
    "RC_WORKSPACE_ID": "<WORKSPACE_ID>",
    "RC_API_SECRET_TOKEN": "<COPY TOKEN FROM THE ABOVE COMMAND OUTPUT"
}

Running from command line (optional)

rcc run --account <ACCOUNT_NAME> -e .\devdata\env.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment