Commit ca7a4090 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

doc: refactor links

parent c93d183c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ Set `INFRACOST_CURRENCY` variable to set currency [ISO 4217](https://en.wikipedi

### `tf fmt` job

The terraform [`fmt` command](https://www.terraform.io/cli/commands/fmt) is usually used to format Terraform source files to a canonical format and style.
The terraform [`fmt` command](https://developer.hashicorp.com/terraform/cli/commands/fmt) is usually used to format Terraform source files to a canonical format and style.

This job uses the _check_ mode, and fails if any file appears not being properly formatted. It uses the following variables:

@@ -473,7 +473,7 @@ This job uses the _check_ mode, and fails if any file appears not being properly
| Name                 | description                                                                                | default value        |
| -------------------- | ------------------------------------------------------------------------------------------ | -------------------- |
| `TF_FMT_ENABLED`     | Set to `true` to enable terraform fmt                                                      | _none_ (disabled)    |
| `TF_FMT_ARGS`        | terraform fmt [options](https://www.terraform.io/cli/commands/fmt#usage)                   | `-diff -recursive`   |
| `TF_FMT_ARGS`        | terraform fmt [options](https://developer.hashicorp.com/terraform/cli/commands/fmt#usage)                   | `-diff -recursive`   |

## Variants

+22 −22
Original line number Diff line number Diff line
@@ -40,22 +40,22 @@
    },
    {
      "name": "TF_INIT_OPTS",
      "description": "Default Terraform extra [init options](https://www.terraform.io/docs/cli/commands/init.html)",
      "description": "Default Terraform extra [init options](https://developer.hashicorp.com/terraform/cli/commands/init)",
      "advanced": true
    },
    {
      "name": "TF_PLAN_OPTS",
      "description": "Default Terraform extra [plan options](https://www.terraform.io/docs/cli/commands/plan.html)",
      "description": "Default Terraform extra [plan options](https://developer.hashicorp.com/terraform/cli/commands/plan)",
      "advanced": true
    },
    {
      "name": "TF_APPLY_OPTS",
      "description": "Default Terraform extra [apply options](https://www.terraform.io/docs/cli/commands/apply.html)",
      "description": "Default Terraform extra [apply options](https://developer.hashicorp.com/terraform/cli/commands/apply)",
      "advanced": true
    },
    {
      "name": "TF_DESTROY_OPTS",
      "description": "Default Terraform extra [destroy options](https://www.terraform.io/docs/cli/commands/destroy.html)",
      "description": "Default Terraform extra [destroy options](https://developer.hashicorp.com/terraform/cli/commands/destroy)",
      "advanced": true
    }
  ],
@@ -149,12 +149,12 @@
    {
      "id": "tffmt",
      "name": "tffmt",
      "description": "Check your Terraform code with [tffmt](https://www.terraform.io/cli/commands/fmt#usage)",
      "description": "Check your Terraform code with [tffmt](https://developer.hashicorp.com/terraform/cli/commands/fmt#usage)",
      "enable_with": "TF_FMT_ENABLED",
      "variables": [
        {
          "name": "TF_FMT_ARGS",
          "description": "terraform fmt extra [options](https://www.terraform.io/cli/commands/fmt#usage)",
          "description": "terraform fmt extra [options](https://developer.hashicorp.com/terraform/cli/commands/fmt#usage)",
          "default": "-diff -recursive"
        }
      ]
@@ -173,7 +173,7 @@
        },
        {
          "name": "TF_REVIEW_INIT_OPTS",
          "description": "Terraform extra [init options](https://www.terraform.io/docs/cli/commands/init.html) for `review` env",
          "description": "Terraform extra [init options](https://developer.hashicorp.com/terraform/cli/commands/init) for `review` env",
          "default": "$TF_INIT_OPTS",
          "advanced": true
        },
@@ -185,19 +185,19 @@
        },
        {
          "name": "TF_REVIEW_PLAN_OPTS",
          "description": "Terraform extra [plan options](https://www.terraform.io/docs/cli/commands/plan.html) for `review` env",
          "description": "Terraform extra [plan options](https://developer.hashicorp.com/terraform/cli/commands/plan) for `review` env",
          "default": "$TF_PLAN_OPTS",
          "advanced": true
        },
        {
          "name": "TF_REVIEW_APPLY_OPTS",
          "description": "Terraform extra [apply options](https://www.terraform.io/docs/cli/commands/apply.html) for `review` env",
          "description": "Terraform extra [apply options](https://developer.hashicorp.com/terraform/cli/commands/apply) for `review` env",
          "default": "$TF_APPLY_OPTS",
          "advanced": true
        },
        {
          "name": "TF_REVIEW_DESTROY_OPTS",
          "description": "Terraform extra [destroy options](https://www.terraform.io/docs/cli/commands/destroy.html) for `review` env",
          "description": "Terraform extra [destroy options](https://developer.hashicorp.com/terraform/cli/commands/destroy) for `review` env",
          "default": "$TF_DESTROY_OPTS",
          "advanced": true
        }
@@ -217,7 +217,7 @@
        },
        {
          "name": "TF_INTEG_INIT_OPTS",
          "description": "Terraform extra [init options](https://www.terraform.io/docs/cli/commands/init.html) for `integration` env",
          "description": "Terraform extra [init options](https://developer.hashicorp.com/terraform/cli/commands/init) for `integration` env",
          "default": "$TF_INIT_OPTS",
          "advanced": true
        },
@@ -229,19 +229,19 @@
        },
        {
          "name": "TF_INTEG_PLAN_OPTS",
          "description": "Terraform extra [plan options](https://www.terraform.io/docs/cli/commands/plan.html) for `integration` env",
          "description": "Terraform extra [plan options](https://developer.hashicorp.com/terraform/cli/commands/plan) for `integration` env",
          "default": "$TF_PLAN_OPTS",
          "advanced": true
        },
        {
          "name": "TF_INTEG_APPLY_OPTS",
          "description": "Terraform extra [apply options](https://www.terraform.io/docs/cli/commands/apply.html) for `integration` env",
          "description": "Terraform extra [apply options](https://developer.hashicorp.com/terraform/cli/commands/apply) for `integration` env",
          "default": "$TF_APPLY_OPTS",
          "advanced": true
        },
        {
          "name": "TF_INTEG_DESTROY_OPTS",
          "description": "Terraform extra [destroy options](https://www.terraform.io/docs/cli/commands/destroy.html) for `integration` env",
          "description": "Terraform extra [destroy options](https://developer.hashicorp.com/terraform/cli/commands/destroy) for `integration` env",
          "default": "$TF_DESTROY_OPTS",
          "advanced": true
        }
@@ -261,7 +261,7 @@
        },
        {
          "name": "TF_STAGING_INIT_OPTS",
          "description": "Terraform extra [init options](https://www.terraform.io/docs/cli/commands/init.html) for `staging` env",
          "description": "Terraform extra [init options](https://developer.hashicorp.com/terraform/cli/commands/init) for `staging` env",
          "default": "$TF_INIT_OPTS",
          "advanced": true
        },
@@ -273,19 +273,19 @@
        },
        {
          "name": "TF_STAGING_PLAN_OPTS",
          "description": "Terraform extra [plan options](https://www.terraform.io/docs/cli/commands/plan.html) for `staging` env",
          "description": "Terraform extra [plan options](https://developer.hashicorp.com/terraform/cli/commands/plan) for `staging` env",
          "default": "$TF_PLAN_OPTS",
          "advanced": true
        },
        {
          "name": "TF_STAGING_APPLY_OPTS",
          "description": "Terraform extra [apply options](https://www.terraform.io/docs/cli/commands/apply.html) for `staging` env",
          "description": "Terraform extra [apply options](https://developer.hashicorp.com/terraform/cli/commands/apply) for `staging` env",
          "default": "$TF_APPLY_OPTS",
          "advanced": true
        },
        {
          "name": "TF_STAGING_DESTROY_OPTS",
          "description": "Terraform extra [destroy options](https://www.terraform.io/docs/cli/commands/destroy.html) for `staging` env",
          "description": "Terraform extra [destroy options](https://developer.hashicorp.com/terraform/cli/commands/destroy) for `staging` env",
          "default": "$TF_DESTROY_OPTS",
          "advanced": true
        }
@@ -305,7 +305,7 @@
        },
        {
          "name": "TF_PROD_INIT_OPTS",
          "description": "Terraform extra [init options](https://www.terraform.io/docs/cli/commands/init.html) for `production` env",
          "description": "Terraform extra [init options](https://developer.hashicorp.com/terraform/cli/commands/init) for `production` env",
          "default": "$TF_INIT_OPTS",
          "advanced": true
        },
@@ -318,19 +318,19 @@
        },
        {
          "name": "TF_PROD_PLAN_OPTS",
          "description": "Terraform extra [plan options](https://www.terraform.io/docs/cli/commands/plan.html) for `production` env",
          "description": "Terraform extra [plan options](https://developer.hashicorp.com/terraform/cli/commands/plan) for `production` env",
          "default": "$TF_PLAN_OPTS",
          "advanced": true
        },
        {
          "name": "TF_PROD_APPLY_OPTS",
          "description": "Terraform extra [apply options](https://www.terraform.io/docs/cli/commands/apply.html) for `production` env",
          "description": "Terraform extra [apply options](https://developer.hashicorp.com/terraform/cli/commands/apply) for `production` env",
          "default": "$TF_APPLY_OPTS",
          "advanced": true
        },
        {
          "name": "TF_PROD_DESTROY_OPTS",
          "description": "Terraform extra [destroy options](https://www.terraform.io/docs/cli/commands/destroy.html) for `production` env",
          "description": "Terraform extra [destroy options](https://developer.hashicorp.com/terraform/cli/commands/destroy) for `production` env",
          "default": "$TF_DESTROY_OPTS",
          "advanced": true
        }