Skip to content

Instantly share code, notes, and snippets.

@karlschriek
Last active December 10, 2020 13:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save karlschriek/851a3d41285ae6004f4c6d70bf6d7b96 to your computer and use it in GitHub Desktop.
write_data.yaml
name: JSON S3 Writer
description: Takes three values and writes them to S3 as JSON file
inputs:
- {name: s3_uri, type: String, description: 'Where to write JSON to'}
- {name: max_val, type: Integer, description: 'A value to add to JSON'}
- {name: min_val, type: Integer, description: 'A value to add to JSON'}
- {name: sum_val, type: Integer, description: 'A value to add to JSON'}
implementation:
container:
image: 863518836478.dkr.ecr.eu-central-1.amazonaws.com/dev/kubeflow-120/boto3
command: [python3, write_data.py]
args: [
--max_val, {inputValue: max_val},
--min_val, {inputValue: min_val},
--sum_val, {inputValue: sum_val},
--s3_uri, {inputValue: s3_uri}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment