Buildingblocks azure virtual network configuration

Source code & Installation

The source code of this kit module can be found hereopen in new window

Run the following command to install the kit module:

collie kit import azure/buildingblocks/standard-vnet-configuration
1

This module, will creates a new Service Principal and a Storage Account's Container which then will be leveraged for generating Terraform's Backend and Provider values.

How to use

  • Take the "generated-backend.tf" and "generated-provider.tf" inside of "outputs" folder and drop them as encrypted inputs in your buildingblock definition.

Requirements

NameVersion
terraform>= 1.0
azapi~>1.10.0
azuread~> 2.45.0
azurerm>= 3.79.0

Modules

No modules.

Resources

NameType
azapi_resource.containeropen in new windowresource
azuread_application.building_blocksopen in new windowresource
azuread_application_password.building_blocks_application_pwopen in new windowresource
azuread_service_principal.building_blocks_spnopen in new windowresource
azurerm_role_assignment.building_blocksopen in new windowresource
local_file.backendopen in new windowresource
local_file.provideropen in new windowresource
time_rotating.building_blocks_secret_rotationopen in new windowresource
azurerm_role_definition.builtinopen in new windowdata source
azurerm_storage_account.tfstatesopen in new windowdata source
azurerm_subscription.currentopen in new windowdata source
azurerm_subscription.sta_subscriptionopen in new windowdata source

Inputs

NameDescriptionTypeDefaultRequired
backend_tf_config_pathn/astringn/ayes
deployment_scopeThe scope where this service principal have access on. Usually in the format of '/providers/Microsoft.Management/managementGroups/0000-0000-0000'stringn/ayes
provider_tf_config_pathn/astringn/ayes
storage_account_resource_idThis is the ID of the storage account resource and it retrievable via panel. It is in the format of '/subscription/<sub_id>/resourcegroups/<rg_name>/...stringn/ayes

Outputs

NameDescription
backend_tfGenerates a config.tf that can be dropped into meshStack's BuildingBlock Definition as an encrypted file input to configure this building block.
provider_tfGenerates a config.tf that can be dropped into meshStack's BuildingBlockDefinition as an encrypted file input to configure this building block.