Skip to content

POps-Rox/terraform-az-overlays-azmaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CI License: MIT PRs Welcome Maintained Terraform

Azure Maps Overlay Terraform Module

Changelog MIT License TF Registry

This Overlay terraform module can create a an Azure Maps account with Azure Maps Creator and Azure Maps Data Reader roles to be used in a SCCA compliant Network.

SCCA Compliance

This module can be SCCA compliant and can be used in a SCCA compliant Network. Enable private endpoints and SCCA compliant network rules to make it SCCA compliant.

For more information, please read the SCCA documentation.

Contributing

If you want to contribute to this repository, feel free to to contribute to our Terraform module.

More details are available in the CONTRIBUTING.md file.

Resources Used

Limitations

  • Make sure to enable azure service map creator

Overlay Module Usage for basic azure maps account

module "mod_azmaps" {
  source  = "POps-Rox/tf-az-overlays-azmaps/azurerm"
  version = "x.x.x"

  create_maps_resource_group = true
  location                   = module.mod_azure_region_lookup.location_cli
  environment                = "public"
  deploy_environment         = "dev"
  org_name                   = "anoa"
  workload_name              = "dev-maps"

  sku = "S0"
  storage_units = 1

  # Tags for Azure Resources
  add_tags = {
    type = "basic_maps"
  }
}

Requirements

Name Version
terraform >= 1.9
popsrox-utils ~> 1.0.4
azurerm ~> 3.116

Providers

Name Version
popsrox-utils ~> 1.0.4
azurerm ~> 3.116

Modules

Name Source Version
mod_azure_region_lookup POps-Rox/overlays-azregions-lookup/azurerm ~> 1.0.0
mod_maps_rg POps-Rox/overlays-resource-group/azurerm ~> 1.0.1

Resources

Name Type
azurerm_maps_account.maps_account resource
azurerm_maps_creator.maps_creator resource
popsrox_resource_name.maps_account data source
popsrox_resource_name.maps_creator data source
azurerm_resource_group.rgrp data source

Inputs

Name Description Type Default Required
add_tags Map of custom tags. map(string) {} no
create_maps_resource_group Controls if the resource group should be created. If set to false, the resource group name must be provided. Default is false. bool false no
custom_resource_group_name The name of the custom resource group to create. If not set, the name will be generated using the org_name, workload_name, deploy_environment and environment variables. string null no
default_tags_enabled Option to enable or disable default tags. bool true no
deploy_environment The environment to deploy. It defaults to dev. string "dev" no
enable_resource_locks (Optional) Enable resource locks bool false no
environment The Terraform backend environment e.g. public or usgovernment string null no
existing_resource_group_name The name of the existing resource group to use. If not set, the name will be generated using the org_name, workload_name, deploy_environment and environment variables. string null no
location The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table' string n/a yes
lock_level (Optional) id locks are enabled, Specifies the Level to be used for this Lock. string "CanNotDelete" no
maps_account_custom_name Name of the Azure Maps Account, generated if not set string "" no
maps_creator_custom_name Name of the Azure Maps Creator, generated if not set. string "" no
name_prefix Optional prefix for the generated name string "" no
name_suffix Optional suffix for the generated name string "" no
org_name A name for the organization. It defaults to anoa. string "anoa" no
sku (Required) The SKU of the Azure Maps Account. Possible values are S0, S1 and G2. Changing this forces a new resource to be created. string "G2" no
storage_units (Required) The storage units to be allocated for the Azure Maps Creator. Integer values from 1 to 100, inclusive. number 10 no
use_location_short_name Use short location name for resources naming (ie eastus -> eus). Default is true. If set to false, the full cli location name will be used. if custom naming is set, this variable will be ignored. bool true no
use_naming Use the Azure NoOps naming provider to generate default resource name. custom_name override this if set. Legacy default name is used if this is set to false. bool false no
workload_name A name for the workload. It defaults to acr. string "acr" no

Outputs

Name Description
maps_account_id n/a
maps_account_name n/a
maps_account_sku n/a
maps_creator_id n/a
maps_creator_name n/a