Skip to content

Commit

Permalink
Merge pull request #11 from vincentclaes/make-examples-work
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
vincentclaes authored Dec 13, 2020
2 parents 9565883 + ec52ed4 commit abe0bee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@ See the full example [here](https://github.com/vincentclaes/datajob/tree/main/ex
[task1, task2] >> task3


## Deploy example
## Deploy and destroy

Deploy your pipeline using a unique identifier `--stage` and point to the configuration of the pipeline using `--config`

export AWS_DEFAULT_ACCOUNT=my-account-number
export AWS_PROFILE=my-profile
cd examples/data_pipeline_simple
datajob deploy --stage dev --config datajob_stack.py
datajob destroy --stage dev --config datajob_stack.py

> Note: When using datajob cli to deploy your pipline, we shell out to aws cdk.

> Note: When using datajob cli to deploy a pipeline, we shell out to aws cdk.
> You can circumvent shelling out to aws cdk by running `cdk` explicitly.
> datajob cli prints out the commands it uses in the back to build the pipeline.
> If you want, you can use those.
cd examples/data_pipeline_simple
cdk deploy --app "python datajob_stack.py" -c stage=dev
cdk destroy --app "python datajob_stack.py" -c stage=dev

# Ideas

Expand Down

0 comments on commit abe0bee

Please sign in to comment.