Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. aws_pipeline = client.create_pipeline(name: pipeline_name,
  2. unique_id: pipeline_uid,
  3. description: 'Automatic')
  4. begin
  5. # AWS uses different JSON formats for CLI and ruby sdk.
  6. tempjson = Tempfile.new('tempjson')
  7. tempjson.write(JSON.dump(pipeline_schema))
  8. tempjson.rewind
  9. `aws datapipeline put-pipeline-definition --pipeline-id #{aws_pipeline.pipeline_id} --pipeline-definition file://#{tempjson.path}`
  10. ensure
  11. tempjson.close; tempjson.unlink
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement