https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

02/01/2023, 7:46 PM
Hello, What’s the mechanism to set and retrieve environment variables defined in Flyte?
Copy code
Use cases:
ENV = dev, beta, or prod
Custom constant e.g. PERSIST_BUCKET_PREFIX = 'hbomax-datascience-deployment', -> s3_bucket = f'{PERSIST_BUCKET_PREFIX}-{ENV}'
s

Samhita Alla

02/02/2023, 5:57 AM
You can set environment variables in the docker image. You can retrieve them using
os.environ.get
.
76 Views