Jitam
Jitam

Reputation: 33

How to create AWS glue job using CLI commands?

How can we create a glue job using CLI commands? Can I have one sample code?Thanks!

Upvotes: 1

Views: 4943

Answers (2)

Prabhakar Reddy
Prabhakar Reddy

Reputation: 5124

Refer to this link which talks about creating AWS Glue resources using CLI. This blog is in Japanese. Following is the sample to create a Glue job using CLI.

aws glue create-job \
    --name ${GLUE_JOB_NAME} \
    --role ${ROLE_NAME} \
    --command "Name=glueetl,ScriptLocation=s3://${SCRIPT_BUCKET_NAME}/${ETL_SCRIPT_FILE}" \
    --connections Connections=${GLUE_CONN_NAME} \
    --default-arguments file://${DEFAULT_ARGUMENT_FILE}

Upvotes: 4

Shubham Jain
Shubham Jain

Reputation: 5526

Follow documentation and post error if any Link to docs https://docs.aws.amazon.com/cli/latest/reference/glue/create-job.html

Upvotes: 0

Related Questions