Skip to content

Commit

Permalink
Ensure data sources always output HCL instead of JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed May 30, 2024
1 parent ebff3f8 commit 7d730d1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 51 deletions.
92 changes: 41 additions & 51 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ If everything looks good, answer `yes` and wait for the new infrastructure to be
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_azapi"></a> [azapi](#requirement\_azapi) | >= 1.13.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >= 3.67.0 |
| <a name="requirement_statuscake"></a> [statuscake](#requirement\_statuscake) | >= 2.1.0 |

Expand Down
4 changes: 4 additions & 0 deletions terraform/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ provider "azurerm" {
skip_provider_registration = true
}

provider "azapi" {
enable_hcl_output_for_data_source = true
}

provider "statuscake" {
api_token = var.statuscake_api_token
}
4 changes: 4 additions & 0 deletions terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ terraform {
source = "StatusCakeDev/statuscake"
version = ">= 2.1.0"
}
azapi = {
source = "Azure/azapi"
version = ">= 1.13.0"
}
}
}

0 comments on commit 7d730d1

Please sign in to comment.