Skip to content

pnetwork/marvin.automation.script.sample.20201201

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marvin.automation.script.sample.20201201

Marvin automation script sample: describe AWS instances with Boto3

Create a Trek Project from zero

Steps

  1. pip3 install trek==0.0.0a0 blcks -i https://package.pentium.network/repository/pypi-group/simple --trusted-host=package.pentium.network
  2. Create a trek project: trek createproject marvin.automation.script.sample.20201201
  3. cd marvin.automation.script.sample.20201201
  4. Add scripts you need in packages.json: “notification”: “>=0.5.0”
  5. Install scripts in package.json: trek install
  6. Create your scripts in project: trek createblcks blcksdescribeinstances
  7. Develop your scripts in project: develop blcks in src/blcks/blcksdescribeinstances
  8. Develop your workflow in project: develop workflow in src/graph.yml
  9. Setup variables used in workflow: set variables in inputs/data.yml
  10. Update JWT: trek login
  11. Run your workflow and scripts: trek run --auto
  12. Pack and deploy project to Marvin: trek deploy -a --autobuildpush --autopack
  13. End of local test: trek shutdownenv --all

Setup a Trek Project

Steps

  1. pip3 install trek==0.0.0a0 blcks -i https://package.pentium.network/repository/pypi-group/simple --trusted-host=package.pentium.network
  2. chdir to trek project
  3. Update marvin_url to yours: .trek/config.json, src/blcks/*/.trek/config. json
  4. Update PN_GLOBAL_ROUTER for all Blcks in project: src/blcks/*/tox.ini
  5. Update variables used in workflow: set variables in inputs/data.yml
  6. Install scripts in package.json: trek install
  7. Update JWT: trek login
  8. Run your workflow and scripts: trek run --auto
  9. Pack and deploy project to Marvin: trek deploy -a --autobuildpush --autopack
  10. End of local test: trek shutdownenv --all

About

Marvin automation script sample: describe AWS instances with Boto3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published