Coder Social home page Coder Social logo

driftctl-newrelic-action's Introduction

GitHub Action to postpone on NewRelic Driftctl summary

driftctl-newrelic-action runs a full driftctl scan in your GitHub Actions workflow and create a custom event on Newrelic based on summary output

Input

Input Description
new_relic_licence_key {{ SECRET.NEW_RELIC_API_KEY}}
version driftctl version
env custom event type name
filter Is filter is required (true/false)
tag_key filter is based on a value from tag key
tag_value custom event type name
new_relic_licence_key New Relic Licence key
event_type_name DriftDeployEvent by default
tfstate_s3_path s3 tfstate path
aws_access_key_id AWS access key
aws_secret_access_key AWS Secret Access Key
aws_region AWS region
env environment
github_repository "{{ github.repository}}"
github_run_id "{{ github.run_id }}"

output

Output Description
total_resources driftctl total resources output
total_changed driftctl total changed resources output
total_unmanaged driftctl total unmanaged resources output
total_managed driftctl total managed resources output
total_missing driftctl total missing resources output

Example workflow

      - name: check drift and report on newrelic
        uses: maathor/driftctl-newrelic-action@main
        with:
          aws_access_key_id: ${{ secrets.TERRAFORM_BETA_ADS_AWS_ACCESS_KEY }}
          aws_secret_access_key: ${{ secrets.TERRAFORM_BETA_ADS_AWS_SECRET_ACCESS_KEY }}
          aws_region: eu-west-1
          filter: "true"
          tag_key: "SubDomain"
          tag_value: "Ads"
          tfstate_s3_path: "XXXXXX-beta-tf-state/terraform/xxxxxxxxx.tfstate"
          env: beta
          new_relic_licence_key: ${{ secrets.NEW_RELIC_LICENCE_KEY }}
          github_repository: ${{ github.repository }}
          github_run_id: ${{ github.run_id }}

driftctl-newrelic-action's People

Contributors

maathor avatar wbeuil avatar

Watchers

 avatar

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.