layerform icon indicating copy to clipboard operation
layerform copied to clipboard

Where do we have our infrastructure defined as code

Open rafiramadhana opened this issue 9 months ago • 0 comments

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

rafiramadhana avatar Sep 13 '23 15:09 rafiramadhana