Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 2.68 KB

README.rst

File metadata and controls

92 lines (62 loc) · 2.68 KB

Examples of using the pypyr task-runner

pypyr task runner for automation pipelines

pypyr is a cli & api to run pipelines defined in yaml. These examples show you how to code your own custom steps for the pipeline processor. It also shows you some example pipeline definition yaml files.

$ pip install pypyr

In the repo root, run:

# run the pipelines/simple.yaml pipeline with INFO log level.
$ pypyr simple

# run the pipelines/simple.yaml pipeline with the default DEBUG log level.
# this will give you all the gory details.
$ pypyr simple --log 10

You need to have the pypyr aws plug-in installed to run the aws samples.

$ pip install pypyraws

For authentication, get full details here

You're probably running this on a dev box. Seriously, don't run this anywhere close to production, or anything you actually care about.

Since you're on a dev box, the easiest way to configure aws authentication is by just using the aws configure cli command. pypyr will automatically use these authentication credentials in lieu of any other authentication config.

$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: ENTER

Obligatory tiresome note:

WARNING: Using aws costs money. These examples are for quick and dirty demo purposes and do not neccesarily delete resources they create. If you don't want surprise bills, you need to delete these yourself.

You need to have the pypyr slack plug-in installed to run the slack samples.

$ pip install pypyrslack

Check ./pipelines/slack.yaml for details.

You will need a slack API token. I generally create a bot: create a bot. You don't care particularly about responding to events, just the bot api key so you can send as the bot user. Maybe set a nice profile picture and bot name so your notifications look pretty.

Remember to invite and add the bot you create to the slack channel(s) to which you want to post. You invite the bot to the channel like you would a normal user.