Skip to content

data-platform-hq/terraform-azurerm-automation-account

Repository files navigation

Azure Automation Account Terraform module

Terraform module for creation Azure Automation Account

Usage

data "azurerm_resource_group" "example" {
  name = "datahq"
}

data "azurerm_log_analytics_workspace" "example" {
  name                = "example"
  resource_group_name = data.azurerm_resource_group.example.name
}

module "automation_account" {
  source = "data-platform-hq/automation-account/azurerm"
  version = "~> 1.0"

  location = "eastus"
  automation_account_name    = "example-name-datahq"
  resource_group             = data.azurerm_resource_group.example.name
  enable_diagnostic_setting  = true
  log_analytics_workspace_id = data.azurerm_log_analytics_workspace.example.id
}

Requirements

Name Version
terraform >= 1.0.0
azurerm >= 4.0.1

Providers

Name Version
azurerm >= 4.0.1

Modules

No modules.

Resources

Name Type
azurerm_automation_account.this resource
azurerm_automation_module.this resource
azurerm_monitor_diagnostic_setting.this resource
azurerm_monitor_diagnostic_categories.this data source

Inputs

Name Description Type Default Required
analytics_destination_type Log analytics destination type string "Dedicated" no
automation_account_name Specifies the name of the Automation account resource string n/a yes
automation_modules Map of automation modules
list(object({
name = string
uri = string
}))
[] no
diagnostic_settings_name Name for Diagnostic Settings that monitors Automation Account string null no
enable_diagnostic_setting Enable diagnostic setting; var.analytics_workspace_id have to be provided bool false no
location Azure location string n/a yes
log_analytics_workspace_id Log Analytics Workspace ID string null no
public_network_access_enabled Whether public network access is allowed for the automation account bool false no
resource_group The name of the resource group string n/a yes
sku The SKU of the account. Possible values are Basic and Free string "Basic" no
tags A mapping of tags to assign to the resource map(string) {} no

Outputs

Name Description
id The ID of the Automation Account.
identity The identity of the Automation Account.
name The Name of the Automation Account.
resource_group Resource group of Automation Account.

License

Apache 2 Licensed. For more information please see LICENSE