Skip to content

Commit

Permalink
Merge pull request #4 from dodevops/feature/dpr/arm4
Browse files Browse the repository at this point in the history
feat: BREAKING CHANGE Support ARM >=4
  • Loading branch information
dploeger authored Dec 2, 2024
2 parents 1331cea + 37d5e32 commit 0ed97d8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ module "state" {
<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.
The following requirements are needed by this module:

- terraform (>=1.9.0)

- azurerm (>=4.0.0)

## Providers

The following providers are used by this module:

- azurerm
- azurerm (>=4.0.0)

## Modules

Expand Down Expand Up @@ -93,7 +97,6 @@ No outputs.

## Development

Use [terraform-docs](https://terraform-docs.io/) to generate the API documentation by running
Use [the terraform module tools](https://github.com/dodevops/terraform-module-tools) to check and generate the documentation by running

terraform fmt .
terraform-docs .
docker run -v "$PWD":/terraform ghcr.io/dodevops/terraform-module-tools:latest
19 changes: 9 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
resource "azurerm_storage_account" "storage-account" {
name = "${lower(var.project)}${lower(var.stage)}stateacc"
resource_group_name = var.resource_group
location = var.location
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
enable_https_traffic_only = true
allow_nested_items_to_be_public = false
min_tls_version = "TLS1_2"
tags = var.tags
name = "${lower(var.project)}${lower(var.stage)}stateacc"
resource_group_name = var.resource_group
location = var.location
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
https_traffic_only_enabled = true
min_tls_version = "TLS1_2"
tags = var.tags

queue_properties {
logging {
Expand Down
9 changes: 9 additions & 0 deletions terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_version = ">=1.9.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=4.0.0"
}
}
}

0 comments on commit 0ed97d8

Please sign in to comment.