Coder Social home page Coder Social logo

terradrift's Issues

what if terraform version is not defined in tf files

Currently if terraform version is not defined in tf files, it throws an error.

ERRO[0000] no problems                                   stack=gcp-core-staging
ERRO[0000] running NewTerraform: no suitable terraform binary could be found: NewTerraform: please supply the path to a Terraform executable using execPath, e.g. using the github.com/hashicorp/hc-install module.  stack=gcp-core-staging

How to reproduce it:
remove the block and run terradrift against the example stacks

Possible Actions:

  • Enhance error handling to show what's actually wrong.
  • Validation if terraform version is not defined.
  • Defaulting to the latest version is possible, however, it might cause an issue for the user by upgrading the remote state which is out of terradrift scoop by running terraform init with a later tf version

[terradrift-server] Add metrics for failed stacks

Description

if a stack drift scan fails to run for any reason, it fails silently and only reports in the logs

Possible Actions:

Add metrics for stack failure to be able to monitor failures.
Type: gauge
Unit: bool
Description: Has a value of 1 when failure is detected, and 0 when it's not.

Example:

# HELP terradrift_plan_failure Status of the latest scan run
# TYPE terradrift_plan_failure gauge
terradrift_plan_failure{stack="api-staging"} 0

S3 backend support?

I could be missing something but it appears from the examples that there is no S3 backend support. Is that the case?

I feel it's a common use case and would be a great addition here.
There is really not any competition in this area besides driftctl and it's a fantastic area to improve on Terraform.

no suitable terraform binary could be found

Getting the following error when I run terradrift-cli

OS: MacOS 13.2 - M1

terraform path:

which terraform
/opt/homebrew/bin/terraform

terradrift-cli --workdir="./stacks"

ERRO[0000] running NewTerraform: no suitable terraform binary could be found: NewTerraform: please supply the path to a Terraform executable using execPath, e.g. using the github.com/hashicorp/hc-install module.

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.