I'm looking at automating the creation of my glue job (including the python script) in an AWS SAM app. I understand it's possible to reference a glue script in S3, I'm looking for a way to include the creation of the S3 zip containing the python code in the sam app too, without having to create it outside of SAM. From what I've been reading it looks like the only way is to create the zip separately from the SAM app?
Ideally everything would update at once on sam deploy, like it would when creating a lambda function.
To answer my own question, I'm going to create a python script to:
That way it's still only one command to run to deploy sam, and have all the latest glue scripts in place.