I’m new to using Terraspace. I have a case where I’d like to define Terraform resources using Ruby DSL. From the docs, I see that I can define resource, variable and output. I also managed to define a provider and locals (not documented). However, I can’t seem to define a terraform module, is there any way to do this?
You need the ! because module is a Ruby keyword. So it cannot be used for the DSL.
It’s a bummer that I couldn’t use module vs module!. I remember at the time that I considered preprocessing the files but figure complexity was not worth it.
As you took interest, I’m using Ruby DSL to dynamically create terraform providers and resources for multiple account, since as you probably know - terraform doesn’t support dynamic provider creation.