BCDevOps / terraform-octk-tfc-workspace-set

A Terraform module for provisioning a set of Terraform Cloud workspaces for a team.
Apache License 2.0
0 stars 2 forks source link

Adds creation of extra workspaces #1

Closed wrnu closed 3 years ago

wrnu commented 3 years ago

Closes: bcgov/cloud-pathfinder#523

Extra workspaces are defined in the project.json on each environment using the extra_tfc_workspaces attribute as shown below:

{
    "identifier": "example",
    "name": "Cloud Pathfinder",
    "accounts": [
        {
            "name": "Test",
            "environment": "test",
            "alb": false
        },
        {
            "name": "Development",
            "environment": "dev",
            "alb": false,
            "extra_tfc_workspaces": [
                "example-workspace"
            ]
        },
        {
            "name": "Tools",
            "environment": "sandbox",
            "alb": false
        },
        {
            "name": "Unclassified",
            "environment": "unclass",
            "alb": false
        }
    ]
}