Marvin automation script sample: describe AWS instances with Boto3
- pip3 install trek==0.0.0a0 blcks -i https://package.pentium.network/repository/pypi-group/simple --trusted-host=package.pentium.network
- Create a trek project: trek createproject marvin.automation.script.sample.20201201
- cd marvin.automation.script.sample.20201201
- Add scripts you need in packages.json: “notification”: “>=0.5.0”
- Install scripts in package.json: trek install
- Create your scripts in project: trek createblcks blcksdescribeinstances
- Develop your scripts in project: develop blcks in src/blcks/blcksdescribeinstances
- Develop your workflow in project: develop workflow in src/graph.yml
- Setup variables used in workflow: set variables in inputs/data.yml
- Update JWT: trek login
- Run your workflow and scripts: trek run --auto
- Pack and deploy project to Marvin: trek deploy -a --autobuildpush --autopack
- End of local test: trek shutdownenv --all
- pip3 install trek==0.0.0a0 blcks -i https://package.pentium.network/repository/pypi-group/simple --trusted-host=package.pentium.network
- chdir to trek project
- Update marvin_url to yours: .trek/config.json, src/blcks/*/.trek/config. json
- Update PN_GLOBAL_ROUTER for all Blcks in project: src/blcks/*/tox.ini
- Update variables used in workflow: set variables in inputs/data.yml
- Install scripts in package.json: trek install
- Update JWT: trek login
- Run your workflow and scripts: trek run --auto
- Pack and deploy project to Marvin: trek deploy -a --autobuildpush --autopack
- End of local test: trek shutdownenv --all