Skip to content

maathor/driftctl-newrelic-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GitHub Action for driftctl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 50.9%
  • Shell 40.8%
  • Dockerfile 8.3%