Skip to content

Commit

Permalink
Upgrade to 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlh committed Jun 3, 2019
1 parent 703e706 commit 916a2ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
10 changes: 5 additions & 5 deletions securitycenter.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
}

9 changes: 5 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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"
}

4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

terraform {
required_version = ">= 0.12"
}

0 comments on commit 916a2ac

Please sign in to comment.