Storing your Credentials

Storing your Amazon S3 credentials to access data in the Data Connector.

Your credentials should all be treated as sensitive information as they allow access to your learning data, which includes personally identifiable information. That means that for security reasons, rather than including the credentials in your application code, it is better to store them in a secure way (such as environment variables). This reduces the risk of the credentials accidentally being viewed by someone else or checked into an online code repository.

In order for our utility packages dcdcpy and dcdcr to connect to the Data Connector you'll need to store the following environment variables. Check the Your Credentials article where to find these credentials.

AWS_BUCKET=data-connector-123456-production 
AWS_ACCESS_KEY_ID=XGTWTIPVHZXSOZFGDOAL 
AWS_SECRET_ACCESS_KEY="UbCtK9sUDmWXB5/cRDwwckoB6PYGhE/vIdkhg3oV"
AWS_DEFAULT_REGION=us-east-1

Here are guides to set environment variables on different platforms.

Last updated