python-lambda
python-lambda copied to clipboard
Accessing config.yaml parameters
I want to access config.yaml parameters. For example "aws_access_key_id" or "description" or "timeout" etc.. I could not find any object for this.
Define your variables preferably under environment_variables e.g.
In config.yml
environment_variables:
timeout: 5
key: xxx
Then in your Python file
import os
timeout = os.environ.get("timeout")
@baturorkun Can you describe your problem a little more if getting it through "os.envrion.get(<config_parameter_name>)" does not fully solve the issue.