Skip to content

Commit

Permalink
making file reference perrenial
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws committed Apr 24, 2024
1 parent 596149e commit 204de8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ruby/example_code/glue/spec/getting_started_scenario_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@

it "Creates a job definition that runs an ETL script", integ: true do
puts "Uploading Python ETL script to S3..."
wrapper.upload_job_script(job_script, glue_bucket)
script_directory = File.dirname(__FILE__)
file_path = File.join(script_directory, job_script)
wrapper.upload_job_script(file_path, glue_bucket)
puts "Creating job definition #{job_name}:\n"
response = wrapper.create_job(job_name, "Getting started example job.", glue_service_role.arn, "s3://#{glue_bucket.name}/#{job_script}")
puts JSON.pretty_generate(response).yellow
Expand Down

0 comments on commit 204de8a

Please sign in to comment.