Skip to content

This terraform module is designed to create Azure Monitor Private Link Scope (AMPLS) resources. Image result for ampls An Azure Monitor private link connects a private endpoint to a set of Azure Monitor resources to define the boundaries of your monitoring network.

License

Notifications You must be signed in to change notification settings

clouddrove/terraform-azure-monitor

Terraform AZURE Monitor

This terraform module is designed to create Azure Monitor Private Link Scope (AMPLS) resources. Image result for ampls An Azure Monitor private link connects a private endpoint to a set of Azure Monitor resources to define the boundaries of your monitoring network.

Terraform Licence


We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure.

This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.

We have fifty plus terraform modules. A few of them are comepleted and are available for open source usage while a few others are in progress.

Prerequisites

This module has a few dependencies:

Examples

IMPORTANT: Since the master branch used in source varies based on new modifications, we suggest that you use the release versions here.

Simple Example

Here is an example of how you can use this module in your inventory structure:

module "key_vault" {
  source                      = "clouddrove/monitor/azure"
  name                        = "app"
  environment                 = "test"
  label_order                 = ["name", "environment"]
  resource_group_name         = module.resource_group.resource_group_name
  location                    = module.resource_group.resource_group_location
  linked_resource_ids         = [module.log-analytics.workspace_id]
  subnet_id                   = module.subnet.default_subnet_id[0]
  private_dns_zones_names = [
    "privatelink.agentsvc.azure-automation.net",
    "privatelink.blob.core.windows.net",
    "privatelink.monitor.azure.com",
    "privatelink.ods.opinsights.azure.com",
    "privatelink.oms.opinsights.azure.com",
  ]
 }

Inputs

Name Description Type Default Required
alias_sub Different subscription id for local provider(id of diff sub in which DNS zone is present). string null no
ampls_enabled Set to false to prevent the module from creating ampls resource. bool true no
attributes Additional attributes (e.g. 1). list(any) [] no
azurerm_monitor_private_link_scope_id The id of the monitor private link scope from which private dns will be created for it string null no
delimiter Delimiter to be used between organization, environment, name and attributes. string "-" no
diff_sub Flag to tell whether dns zone is in different sub or not. bool false no
diff_sub_location Location where different subscription resource should be created. string "" no
diff_sub_resource_group_name A container that holds related different subscription resources for an Azure solution string "" no
enable_private_endpoint enable or disable private endpoint to storage account bool true no
enabled Set to false to prevent the module from creating any resources. bool true no
environment Environment (e.g. prod, dev, staging). string "" no
label_order Label order, e.g. name,application. list(any) [] no
linked_resource_ids (Required) The name of the Azure Monitor Private Link Scoped Service. Changing this forces a new resource to be created. list(string)
[
""
]
no
location Location where resource should be created. string "" no
managedby ManagedBy, eg 'CloudDrove'. string "hello@clouddrove.com" no
name Name (e.g. app or cluster). string "" no
private_dns_zones_names The name of the private dns zones from which private dns will be created for AMPLS list(string)
[
""
]
no
repository Terraform current module repo string "https://github.com/clouddrove/terraform-azure-subnet.git" no
resource_group_name A container that holds related resources for an Azure solution string "" no
subnet_id (Required) The ID of the Subnet from which Private IP Addresses will be allocated for this Private Endpoint. Changing this forces a new resource to be created. string "" no
subscription_id (Optional) Specifies the ID of the subscription. If this argument is omitted, the subscription ID of the current Azure Resource Manager provider is used. string "" no
tags Additional tags (e.g. map(BusinessUnit,XYZ). map(any) {} no

Outputs

No output.

Testing

In this module testing is performed with terratest and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a GO environment in your system.

You need to run the following command in the testing folder:

  go test -run Test

Feedback

If you come accross a bug or have any feedback, please log it in our issue tracker, or feel free to drop us an email at hello@clouddrove.com.

If you have found it worth your time, go ahead and give us a ★ on our GitHub!

About us

At CloudDrove, we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.

We are The Cloud Experts!


We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.

About

This terraform module is designed to create Azure Monitor Private Link Scope (AMPLS) resources. Image result for ampls An Azure Monitor private link connects a private endpoint to a set of Azure Monitor resources to define the boundaries of your monitoring network.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published