Closed jorseng closed 3 years ago
Can you post the actual value that it is in your state file for windows_computer_name_prefix this will make easier for me to debug and check the problem You can use the state show command to capture the state file values https://www.terraform.io/docs/cli/commands/state/show.html
Hi @Nepomuceno , requested value as below:
"module": "module.example.module.virtual_machine_scale_sets[\"vmss2\"]",
"mode": "managed",
"type": "azurecaf_name",
"name": "windows_computer_name_prefix",
"provider": "provider[\"registry.terraform.io/aztfmod/azurecaf\"]",
"instances": [
{
"index_key": "windows",
"schema_version": 3,
"attributes": {
"clean_input": true,
"id": "dmpwvrkrldsdbida",
"name": "win",
"passthrough": false,
"prefixes": [
"test"
],
"random_length": 0,
"random_seed": null,
"resource_type": "azurerm_virtual_machine_scale_set",
"resource_types": null,
"result": "test-vmss-win",
"results": {},
"separator": "-",
"suffixes": null,
"use_slug": true
},
I hit the above character limit error when defining computer_prefix for azurerm_windows_virtual_machine_scale_set in the module.
The following is the azurecaf_name code used.
and here is the segment of the code which is raising the error