Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glue Job Edge #119

Open
wants to merge 2 commits into
base: v1.2.0-dev
Choose a base branch
from
Open

Conversation

wdahlenburg
Copy link

Glue Jobs are missed edges currently.

The glue:CreateJob privilege can be used to create a new job with an associated role. Similarly the glue:UpdateJob privilege can be used to update existing jobs.

This technique is a bit quicker to abuse than dev endpoints as the dev endpoints take a few minutes to spin up.

Create a Job

# Copy the job code into an S3 bucket
$ aws s3 cp job.py s3://bucket/job.py

# Create the job
$ aws glue create-job --name glue-job --role arn:aws:iam::000000000000:role/Glue-Admin --command Name=pythonshell,ScriptLocation=s3://bucket/job.py,PythonVersion=3

# Run the job
$ aws glue start-job-run --job-name glue-job

Update an existing job

$ aws glue update-job --job-name glue-job --job-update 'Role=arn:aws:iam::000000000000:role/Glue-Admin,Command={Name=pythonshell,ScriptLocation=s3://bucket/job.py,PythonVersion=3}'

wdahlenburg pushed a commit to wdahlenburg/PMapper that referenced this pull request Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant