'I am not able to import module from S3 in glue job

I have a Python file in my S3 bucket s3://pymod_import_testing/hello_world.py and I have a glue-job with the following special-parameters configured

--extra-py-files s3://pymod_import_testing/hello_world.py
--additional-python-modules s3://pymod_import_testing/hello_world.py

And when I do import hello_world in glue-job script I get ModuleNotFound error. What am I missing here?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source