GithubHelp home page GithubHelp logo

setup-cloud-custodian's Introduction

setup-cloud-custodian

This action installs cloud custodian and adds it to the $PATH.

It also supports installing the c7n_azure and c7n_gcp extensions via action inputs.

Inputs

name type default description
include-gcp boolean false set to true to install the c7n_gcp extension
include-azure boolean false set to true to install the c7n_azure extension
include-c7n-org boolean false set to true to install c7n-org and add it to the $PATH

Supported Platforms

This action is tested and working with Ubuntu GitHub Hosted runners. It requires python3.

Usage

Running a policy from within a repo

name: My workflow
on:
  schedule:
    - cron: "00,30 * * * *"
jobs:
  run-my-policy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: gscho/setup-cloud-custodian@v1
    - run: custodian run -s out path/to/my-policy.yml

Installing Azure and GCP extensions

name: My workflow
on:
  schedule:
    - cron: "00,30 * * * *"
jobs:
  run-my-policy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: gscho/setup-cloud-custodian@v1
      with:
        include-azure: true
        include-gcp: true
    - run: custodian run -s out path/to/my-policy.yml

Installing c7n-org

name: My workflow
on:
  schedule:
    - cron: "00,30 * * * *"
jobs:
  run-my-policy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: gscho/setup-cloud-custodian@v1
      with:
        include-c7n-org: true
    - run: c7n-org run -c accounts-all.yaml -u my-policy -s output-dir -r us-east-1

Installing a specific version

name: My workflow
on:
  workflow_dispatch:
jobs:
  print-version:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: gscho/setup-cloud-custodian@v1
      with:
        custodian-version: '0.9.7.0'
    - run: custodian version

setup-cloud-custodian's People

Contributors

gscho avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aliciasteen

setup-cloud-custodian's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.