Skip to content

Commit

Permalink
chore: Update Terraform initialization and workspace management in RE…
Browse files Browse the repository at this point in the history
…ADME files
  • Loading branch information
ulises-jeremias committed Jul 8, 2024
1 parent f07fc85 commit 81c1a0b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
11 changes: 8 additions & 3 deletions live/common-infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,21 @@
Initialize the working directory with the required providers and modules:

```sh
terraform init
terraform init -backend-config="./configs/prod-backend.tfvars"
```

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
Expand Down
11 changes: 8 additions & 3 deletions live/core-networking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,21 @@
Initialize the working directory with the required providers and modules:

```sh
terraform init
terraform init -backend-config="./configs/prod-backend.tfvars"
```

4. **Workspace Management:**

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
Expand Down
13 changes: 9 additions & 4 deletions live/terraform-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81c1a0b

Please sign in to comment.