Skip to content

Commit

Permalink
fix: add default value for parameter containerName (#22)
Browse files Browse the repository at this point in the history
* fix: add default value for parameter `containerName`

Forgot to add default value `tfstate` in commit 137ef2a, breaking compatability with previous versions of the template where value `tfstate` was hard coded.

* Build Bicep file

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
hknutsen and github-actions[bot] authored Jan 10, 2025
1 parent 0aa944d commit 771e7e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "8688306575345230913"
"templateHash": "16091004168660921865"
}
},
"parameters": {
Expand All @@ -17,6 +17,7 @@
},
"containerName": {
"type": "string",
"defaultValue": "tfstate",
"metadata": {
"description": "The name of the blob container to create."
}
Expand Down
2 changes: 1 addition & 1 deletion main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
param storageAccountName string

@description('The name of the blob container to create.')
param containerName string
param containerName string = 'tfstate'

@description('An array of IP addresses or IP ranges that should be allowed to bypass the firewall of the Terraform backend. If empty, the firewall will be disabled.')
param ipRules array = []
Expand Down

0 comments on commit 771e7e6

Please sign in to comment.