I am trying a simple python shell job where I am trying to read a config file which is in S3 bucket folder. The Glue service role has bucket object read/write permission. I have set --extra-files special parameter to point it to the config file S3 location.
When I run a job, I still get FileNotFound exception. I also used listdir() to see the content and noticed that the config file is missing.
Any help is much appreciated. Thanks
import os
import yaml
print(os.listdir("."))
file_path = "config_aws.yaml"
with open(file_path, 'r') as configfile:
config = yaml.load(configfile, Loader=yaml.FullLoader)
for section in config:
print(section)
aws glue start-job-run --job-name "CSV to CSV" --arguments='--scriptLocation="s3://<bucket>/<prefix>/test_lib.py"--extra-files="s3://<bucket>/<prefix>/config-aws.yaml"'
. – Penknife