infracost:
  image: infracost/infracost:latest
  script:
    - cd terraform
    - terraform init
    - terraform plan -out=tfplan.binary
    - infracost breakdown --path tfplan.binary --format gitlab-comment --out-file infracost.json
  artifacts:
    paths:
      - infracost.json