With Secure Defaults from Checkov
Terraform module -
It's 100% Open Source and licensed under the APACHE2.
This is a very basic example.
From an original example: https://techcommunity.microsoft.com/t5/microsoft-defender-for-cloud/deploy-microsoft-defender-for-cloud-via-terraform/ba-p/3563710
Include module.acr.tf this repository as a module in your existing Terraform code:
module "search" {
source = "JamesWoolfenden/search/azurerm"
version = "v0.1.1"
tags = var.common_tags
location = azurerm_resource_group.security_rg.location
rg_name = azurerm_resource_group.security_rg.name
mdc_contact = {
name = "James Woolfenden"
email = "james.woolfenden@gmail.com"
phone = var.phone
alert_notifications = true
alerts_to_admins = true
}
pricing = [{
resource_type = "VirtualMachines"
tier = "Standard"
},
{
resource_type = "Arm"
tier = "Standard"
}]
}
No requirements.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
MCAS_enabled | n/a | bool |
false |
no |
SENTINEL_enabled | n/a | bool |
false |
no |
WDATP_enabled | n/a | bool |
true |
no |
location | n/a | string |
n/a | yes |
mdc_contact | n/a | object({ |
n/a | yes |
pricing | n/a | list(object({ |
n/a | yes |
rg_name | n/a | string |
n/a | yes |
tags | This is to help you add tags to your cloud objects | map(any) |
n/a | yes |
Name | Description |
---|---|
solutions | n/a |
workspace | n/a |
This is the policy required to build this project:
The Terraform resource required is:
resource "azurerm_role_definition" "terraform_pike" {
role_definition_id = local.uuid
name = "terraform_pike"
scope = data.azurerm_subscription.primary.id
permissions {
actions = [
"Microsoft.OperationalInsights/workspaces/delete",
"Microsoft.OperationalInsights/workspaces/read",
"Microsoft.OperationalInsights/workspaces/write",
"Microsoft.Resources/subscriptions/providers/read"]
not_actions = []
}
assignable_scopes = [
data.azurerm_subscription.primary.id,
]
}
locals {
uuid = uuid()
}
data "azurerm_subscription" "primary" {
}
Check out these related projects.
- terraform-aws-s3 - S3 buckets
Got a question?
File a GitHub issue.
Please use the issue tracker to report any bugs or file feature requests.
Copyright © 2022 James Woolfenden
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.