Still playing with Terraspace
No issue to apply Resources Tags on Azure but I need to respected some naming convention on the tags
This is my azurerm config:
config/plugins/azurerm.rb
TerraspacePluginAzurerm.configure do |config|
config.auto_create = true # set false to disable auto creation
config.resource_group.update_existing = true
config.tags = {
:TS_ENV => Terraspace.env,
:Terraspace => true,
"Created?\u{5F}_By" => "fffff",
:_Supported__By => "vasd",
:_Environment => ENV['TAG_BACKEND_ENVIRONMENT'],
:_Owner => "C",
:_Application__Code => "A",
:_Application_Name => "IASD",
}
end
I tried a bunch of syntax (as you can see on my config) but I cannot have my keys correctly inputted in my Azure Tags
I notice that if I put an underscore before a letter, the letter become an uppercase
I try to escape the underscore character, with slash or double the underscore, nothing works.
I would like to have something like this:
Upper case for each word and each word are separated by an underscore
config.tags = {
:TS_ENV => Terraspace.env,
:Terraspace => true,
"Created_By" => "fffff",
:Supported_By => "vm",
:Environment => ENV['TAG_BACKEND_ENVIRONMENT'],
:Owner => "C",
:Application_Code => "A",
:Application_Name => "IE",
}
Instead I always got all my keys in lowercase and the first letter in upper case if I have a underscore right before the letter.
[IMAGE REMOVED as I’m a new user … i cannot insert :/]
I tried to find any article related to this issue but my only clue was this github issue for Pulumi
Tag name is converted to lowercase · Issue #430 · pulumi/pulumi-terraform (github.com)
Thanks