Also I have passed an Alias azurerm provider requirement, but after synthesis, it's not taking the alias name, instead just taking the name of the provider.
let azurermProvider = new ProviderRequirement(this, "azurerm", "~> 3.70.0", "hashicorp/azurerm");
let providerAlias = new TFModuleVariable(this, "providerAlias", {
type: "string",
default: ""
});
azurermProvider.alias = providerAlias.value;
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
I have created a cdktf construct where ResourceGroup resource is created with name having conditional statement as follows:
But after synthesizing it removes conditional statement and generates following output:
Also I have passed an Alias azurerm provider requirement, but after synthesis, it's not taking the alias name, instead just taking the name of the provider.
Synthesized output:
Versions
language: null cdktf-cli: 0.18.0 node: v18.17.1 terraform: 1.5.2 arch: x64 os: win32 10.0.19045
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note