Skip to content

Commit

Permalink
feat- test tf check
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlovely committed Jan 18, 2024
1 parent 2018f6b commit 9256cb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@1.2.1
secrets: inherit
with:
working_directory: ./
working_directory: '_example/basic/'
2 changes: 1 addition & 1 deletion _example/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "storage" {
account_replication_type = "GRS"

## Encryption is not enabled for this Storage account
cmk_encryption_enabled = false
cmk_encryption_enabled = false

## Storage Container
containers_list = [
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "labels" {
## To create storage account with cmk(customer managed key) encryption set 'var.default_enabled = false'.
##-----------------------------------------------------------------------------
resource "azurerm_storage_account" "storage" {
count = var.enabled ? 1 : 0
count = var.enabled ? 1 : 0
# depends_on = [azurerm_role_assignment.identity_assigned]
name = var.storage_account_name
resource_group_name = var.resource_group_name
Expand Down Expand Up @@ -574,7 +574,7 @@ resource "azurerm_private_dns_a_record" "arecord1" {
resource "azurerm_monitor_diagnostic_setting" "storage" {
count = var.enabled && var.enable_diagnostic ? 1 : 0
name = format("storage-diagnostic-log")
target_resource_id = join("", azurerm_storage_account.storage.*.id)
target_resource_id = join("", azurerm_storage_account.storage.*.id)
storage_account_id = var.storage_account_id
eventhub_name = var.eventhub_name
eventhub_authorization_rule_id = var.eventhub_authorization_rule_id
Expand Down

0 comments on commit 9256cb3

Please sign in to comment.