aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
MIT License
174 stars 93 forks source link

Add support for type - User Assigned Managed Identity #50

Closed LaurentLesle closed 3 years ago

LaurentLesle commented 3 years ago

Add support to name the User Assigned Managed Identity

slug can be 'msi'

Regex: The resource name must begin with a letter or a number and with a length between 3 to 128. Can contain '-' and '_'.

arnaudlh commented 3 years ago

hi @Nepomuceno @LaurentLesle , got the following error: on 1.1.3:

Error: Invalid name for CAF naming azurerm_user_assigned_identity landingzone-level2-msi, the pattern ^[0-9a-zA-Z]{3,128}$ doesn't match g317123862-msi-landingzone-level2-msi-esnpb

  on /home/vscode/.terraform.cache/modules/launchpad/modules/security/managed_identity/managed_identity.tf line 2, in resource "azurecaf_name" "msi":
   2: resource "azurecaf_name" "msi" {

Error: Invalid name for CAF naming azurerm_user_assigned_identity landingzone-level4-msi, the pattern ^[0-9a-zA-Z]{3,128}$ doesn't match g317123862-msi-landingzone-level4-msi-xwjyx

  on /home/vscode/.terraform.cache/modules/launchpad/modules/security/managed_identity/managed_identity.tf line 2, in resource "azurecaf_name" "msi":
   2: resource "azurecaf_name" "msi" {

the name g317123862-msi-landingzone-level2-msi-esnpb is a valid name as tried on the portal

Nepomuceno commented 3 years ago

Will fix this now thanks

On Tue, 20 Oct 2020 at 10:32, Arnaud Lheureux notifications@github.com wrote:

hi @Nepomuceno https://github.com/Nepomuceno @LaurentLesle https://github.com/LaurentLesle , got the following error: on 1.1.3:

Error: Invalid name for CAF naming azurerm_user_assigned_identity landingzone-level2-msi, the pattern ^[0-9a-zA-Z]{3,128}$ doesn't match g317123862-msi-landingzone-level2-msi-esnpb

on /home/vscode/.terraform.cache/modules/launchpad/modules/security/managed_identity/managed_identity.tf line 2, in resource "azurecaf_name" "msi": 2: resource "azurecaf_name" "msi" {

Error: Invalid name for CAF naming azurerm_user_assigned_identity landingzone-level4-msi, the pattern ^[0-9a-zA-Z]{3,128}$ doesn't match g317123862-msi-landingzone-level4-msi-xwjyx

on /home/vscode/.terraform.cache/modules/launchpad/modules/security/managed_identity/managed_identity.tf line 2, in resource "azurecaf_name" "msi": 2: resource "azurecaf_name" "msi" {

the name g317123862-msi-landingzone-level2-msi-esnpb is a valid name as tried on the portal

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/aztfmod/terraform-provider-azurecaf/issues/50#issuecomment-712722702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2AFJHHJKKHRAGGKCFWN3SLVKJVANCNFSM4SOH3K3A .