From 916a2ac7a5071e9e338e7244f0d946697283e7ca Mon Sep 17 00:00:00 2001 From: Arnaud Lheureux Date: Mon, 3 Jun 2019 16:57:30 +0800 Subject: [PATCH] Upgrade to 0.12 --- securitycenter.tf | 10 +++++----- variables.tf | 9 +++++---- versions.tf | 4 ++++ 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 versions.tf diff --git a/securitycenter.tf b/securitycenter.tf index 3c8ab78..f219b8f 100644 --- a/securitycenter.tf +++ b/securitycenter.tf @@ -1,6 +1,6 @@ resource "azurerm_security_center_contact" "contact" { - email = "${var.contact_email}" - phone = "${var.contact_phone}" + email = var.contact_email + phone = var.contact_phone alert_notifications = true alerts_to_admins = true @@ -11,9 +11,9 @@ resource "azurerm_security_center_subscription_pricing" "sc" { } resource "azurerm_security_center_workspace" "sc" { - scope = "${var.scope_id}" - workspace_id = "${var.workspace_id}" + scope = var.scope_id + workspace_id = var.workspace_id - depends_on = ["azurerm_security_center_subscription_pricing.sc"] + depends_on = [azurerm_security_center_subscription_pricing.sc] } diff --git a/variables.tf b/variables.tf index 4125e0b..ae31866 100644 --- a/variables.tf +++ b/variables.tf @@ -1,15 +1,16 @@ variable "contact_email" { - description = "(Required) Email address of the distribution list" + description = "(Required) Email address of the distribution list" } variable "contact_phone" { - description = "(Required) Phone number of the security team" + description = "(Required) Phone number of the security team" } variable "scope_id" { - description = "(Required) The scope at which the Role Assignment applies too, such as /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup, or /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM." + description = "(Required) The scope at which the Role Assignment applies too, such as /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup, or /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM." } variable "workspace_id" { - description = "(Required) Azure Monitor workspace ID" + description = "(Required) Azure Monitor workspace ID" } + diff --git a/versions.tf b/versions.tf new file mode 100644 index 0000000..ac97c6a --- /dev/null +++ b/versions.tf @@ -0,0 +1,4 @@ + +terraform { + required_version = ">= 0.12" +}