layerform
layerform copied to clipboard
Where do we have our infrastructure defined as code
In the Getting Started section, it says
Once you have your infrastructure defined as code, you'll create the layer definitions that the CLI will use when spawning instances of each layer.
Does it mean having our infrastructure defined as code in a layerform.json?
Because I was wondering where will we put the code mentioned in the Getting Started section:
{ "layers": [ { "name": "base", "files": ["./layerform/eks.tf", "./layerform/eks/**"] }, { "name": "services", "files": ["./layerform/services.tf", "./layerform/services/**"], "dependencies": ["base"] } ] }
I think it might be helpful if we add some little notes there
--- Once you have your infrastructure defined as code, you'll create the layer
+++ Once you have your infrastructure defined as code in layerform.json, you'll create the layer