diff --git a/live/common-infra/README.md b/live/common-infra/README.md index 8687044..aecd9aa 100644 --- a/live/common-infra/README.md +++ b/live/common-infra/README.md @@ -52,7 +52,7 @@ Initialize the working directory with the required providers and modules: ```sh - terraform init + terraform init -backend-config="./configs/prod-backend.tfvars" ``` 4. **Workspace Management:** @@ -60,8 +60,13 @@ Select or create a new workspace tailored to your deployment environment: ```sh - # Switch to the another workspace or create it if it doesn't exist - terraform workspace select -or-create prod + # Select an existing workspace + terraform workspace select prod + + # Create a new workspace if it doesn't exist + # and select it + terraform workspace new prod + terraform workspace select prod ``` ## Deploy diff --git a/live/core-networking/README.md b/live/core-networking/README.md index 22c4239..1967367 100644 --- a/live/core-networking/README.md +++ b/live/core-networking/README.md @@ -54,7 +54,7 @@ Initialize the working directory with the required providers and modules: ```sh - terraform init + terraform init -backend-config="./configs/prod-backend.tfvars" ``` 4. **Workspace Management:** @@ -62,8 +62,13 @@ Select or create a new workspace tailored to your deployment environment: ```sh - # Switch to another workspace or create it if it doesn't exist - terraform workspace select -or-create sandbox + # Select an existing workspace + terraform workspace select prod + + # Create a new workspace if it doesn't exist + # and select it + terraform workspace new prod + terraform workspace select prod ``` ## Deploy diff --git a/live/terraform-backend/README.md b/live/terraform-backend/README.md index 8dbc03e..0c2b569 100644 --- a/live/terraform-backend/README.md +++ b/live/terraform-backend/README.md @@ -17,19 +17,24 @@ 1. **Initialize Terraform:** - Initialize the Terraform working directory which will download the necessary providers and modules: + Initialize the working directory with the required providers and modules: ```sh terraform init -backend-config="./configs/prod-backend.tfvars" ``` -2. **Workspace Management:** +4. **Workspace Management:** Select or create a new workspace tailored to your deployment environment: ```sh - # Switch to the another workspace or create it if it doesn't exist - terraform workspace select -or-create prod + # Select an existing workspace + terraform workspace select prod + + # Create a new workspace if it doesn't exist + # and select it + terraform workspace new prod + terraform workspace select prod ``` ## Deploy