1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hello,
We do offer the action to create a Glue Job utilising the Glue API as well as downloading the JSON code from the Glue studio.
These actions require a few steps:
In AWS CLI: Creating the Glue Job: [1]
Downloading the JSON code from the Glue Studio to (e.g. Downloads folder):
- Run [2] “aws glue get-job —job-name glue-job-name” to retrieve script location then insert to next command
- Run [3] “aws s3 cp s3://script location/glue-job.py ./Downloads/glue-job-name.py” These following steps will help you utilise the Glue API in which you can create a Glue job as well as download the JSON code from the Glue Studio Editor from AWS CLI.
References:
[1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/create-job.html
[2] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-job.html
[3] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html
답변함 한 달 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
I'm looking for cross-account Glue job migration solution.
I think the steps is like below.
Creating a Glue job in Glue Studio in account A(job a).
Getting a code of the job a(b). (I thought getting the code by using 'Download' in Glue Studio, but 'get-job' API also can be used; We don't have a Git repository compatible with Git integration in Glue Studio.)
Migrating a job by using the code(b) to account B. <- How to do this other than 'Upload' manually?