Robin
09/07/2020, 12:50 PMUnexpected error: NoRegionError('You must specify a region.')
, although I added AWS_DEFAULT_REGION
(along with AWS_CREDENTIALS
) to the prefect secrets.
Do I miss anything?nicholas
~/.aws/config
like this:
[default]
region=us-east-1
Robin
09/07/2020, 3:53 PMnicholas
Robin
09/07/2020, 4:40 PMAWS_DEFAULT_REGION
.
Therefore, I set os.environ['AWS_DEFAULT_REGION'] = 'eu-central-1'
in the flow, but it did not work.
Do I need to set it in a task instead?
Is there a common way of setting environment variables in prefect flows?region_name='eu-central-1'
.
Does that approach make sense?nicholas
Robin
09/08/2020, 2:02 PM