hi everyone, how can I access the current env from...
# questions
j
hi everyone, how can I access the current env from python? is there a env_name variable somewhere? I want to use the env_name as a suffix for loading a file.
n
Can you clarify what you are trying to do? do you mean the Kedro environment?
If so, can you define your dataset in your
<env>/conf/catalog.yml
?
j
ok. I have three environments in kedro. local, dev, and prod. for each of those I have different aws credentials stored in different .env files: lets say: .env.local, .env.dev, and .env.prod. when I’m running the different environments locally, I will do: I simlink .env->.env.dev then: kedro run --env=dev for example and I use the template config loader in settings.py to load the corresponding .env file. now my question is regarding the deployment with docker. I want to have an image in ECR, and then create different enpoints with the same image in ECS. I will need to pass those different .env files to the image somehow
I hope this makes somehow sense. is there a better way of doing this?
any ideas?
n
Sorry I am not sure what’s the question here. It seems that you already have a way to do this?
Are you trying to avoid the step of doing simlink?
I assume your image didn’t contain the credentials, these configuration will then be passed as external configuration