maathor_driftctl-newrelic-action

command module
v0.0.0-...-2e6575c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 7 Imported by: 0

README

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 }}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL