Giter Site home page Giter Site logo

infracost / infracost-azure-devops Goto Github PK

View Code? Open in Web Editor NEW
29.0 6.0 11.0 5.12 MB

Azure DevOps integration for Infracost. Shows cloud cost estimates for Terraform in pull requests for Azure DevOps repos and GitHub repos.

Home Page: https://infracost.io

License: Apache License 2.0

JavaScript 24.45% TypeScript 75.55%
aws google-cloud gcp azure terraform terragrunt cost-estimation terraform-cost-estimation cost-estimates cloud-cost

infracost-azure-devops's People

Contributors

alikhajeh1 avatar aliscott avatar hugorut avatar stopthatastronaut avatar swateek avatar tim775 avatar vdmgolub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

infracost-azure-devops's Issues

Pipeline breakdown & diff task issue

Hi, it seems to me that part of the template pipeline about preparing to perform diff operation is somewhat wrong as it looks like that pipeline is firstly performing the breakdown againts TF_ROOT path and outputting it to .json file which is followed by diff operation using again TF_ROOT path and same .json file from the previous step. This is causing the report to say there is no change.

Suggestion could be to use 2 separate variables, TF_ROOT_OLD and TF_ROOT_NEW like in the screenshot below. TF_ROOT_OLD will be targeting the tmp/base path that contains the clone of the main branch that was done before the breakdown task (git clone task) and TF_ROOT_NEW will have the root of the already downloaded dev branch in the first steps of the pipeline (automatic).

image

image

InfracostSetup fails with error releases.filter is not a function in YAML pipeline

For a project in Azure Repos, in an Azure DevOps YAML pipeline:

  # Install the Infracost CLI, see https://github.com/infracost/infracost-azure-devops#infracostsetup
  - task: InfracostSetup@1
    displayName: Setup Infracost
    inputs:
      apiKey: $(infracostApiKey)

I'm (sometimes) seeing the following error:

Starting: Setup Infracost
==============================================================================
Task         : Infracost Setup Task
Description  : Sets up Infracost CLI in Azure Pipelines. Show cloud cost estimates for Terraform in pull requests.
Version      : 1.0.6
Author       : Infracost
Help         : 
==============================================================================
##[error]releases.filter is not a function
Finishing: Setup Infracost

Presumably this is due to some sort of API rate limiting for https://api.github.com/repos/${user}/${name}/releases.

Workaround is to set the version in the inputs parameter of the setup task, e.g.,:

  # Install the Infracost CLI, see https://github.com/infracost/infracost-azure-devops#infracostsetup
  - task: InfracostSetup@1
    displayName: Setup Infracost
    inputs:
      version: 0.10.17
      apiKey: $(infracostApiKey)

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.