Skip to content

Commit

Permalink
fix: tfsec violations
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-stewart committed Mar 27, 2023
1 parent acf7be4 commit a0021bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,18 @@ resource "azurerm_storage_account" "lacework" {
location = var.location
resource_group_name = azurerm_resource_group.lacework[0].name
tags = azurerm_resource_group.lacework[0].tags
min_tls_version = "TLS1_2"
#enable_blob_encryption = true

allow_nested_items_to_be_public = false
queue_properties {
logging {
delete = true
read = true
write = true
version = "1.0"
retention_policy_days = 10
}
}
}

resource "azurerm_storage_queue" "lacework" {
Expand Down
6 changes: 6 additions & 0 deletions scripts/ci_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ lint_tests() {
terraform fmt -check
}

sec_tests() {
# TODO: replace with `lacework iac tf-scan tfsec -m MEDIUM`
tfsec -m MEDIUM
}

main() {
lint_tests
integration_tests
sec_tests
}

main || exit 99

0 comments on commit a0021bf

Please sign in to comment.