Irfan Umar
Irfan Umar

Reputation: 197

Set custom environment variables in AWS

I am using AWS sagemaker, I have some secret keys and access keys to access some APIs that I don't want to expose directly in code.

What are the ways like environment variables etc., that can be used to hide these keys and I can use them securely, and how to set them.

Upvotes: 0

Views: 1066

Answers (1)

emma ray
emma ray

Reputation: 13620

AWS System Manager (SSM) is designed to store keys and tokens securely.

Depending on how your notebook is defined, you could use the 'env' property directly or in training data, or you could access SSM directly from sagemaker. For example this Snowflake KB article explains how to fetch auth info from ssm: https://community.snowflake.com/s/article/Connecting-a-Jupyter-Notebook-Part-3

Upvotes: 1

Related Questions