Skip to content

Commit

Permalink
refactor(infra): rename server-prod to server (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya authored Feb 4, 2024
1 parent c935960 commit 3c2d5be
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
8 changes: 4 additions & 4 deletions infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The repository is organized into the following directories, each corresponding t

- **[`/core`](./core/)** - This directory contains the Terraform configurations for the global/shared resources used across all environments. These may include VPCs, shared databases, IAM roles, etc.

- **[`/server-prod`](./server-prod/)** - Contains the Terraform configurations for the production web server. This workspace should be configured with production-grade settings, ensuring high availability and security.
- **[`/server`](./server/)** - Contains the Terraform configurations for the production web server. This workspace should be configured with production-grade settings, ensuring high availability and security.

- **[`/server-test`](./server-test/)** - Holds the configurations for the testing/QA web server. This environment mirrors production closely and is used for final testing before deploying to production.
- **[`/server-preview`](./server-preview/)** - This directory is for the preview web server, typically used for pull request reviews. It might contain configurations that are under testing or not yet approved for the testing environment.

- **[`/server-preview`](./server-preview/)** - This directory is for the preview web server, typically used for staging and pre-release reviews. It might contain configurations that are under testing or not yet approved for the testing environment.
- **[`/server-test`](./server-test/)** - Holds the configurations for the testing/QA web server. This environment mirrors production closely and is used for final testing before deploying to production.

## Usage

Expand All @@ -32,7 +32,7 @@ The repository is organized into the following directories, each corresponding t

To work with Terraform configurations:

1. Navigate to the appropriate directory (e.g., `cd server-prod`).
1. Navigate to the appropriate directory (e.g., `cd server`).
2. Initialize Terraform: `terraform init`.
3. Apply configurations: `terraform apply`.

Expand Down
2 changes: 1 addition & 1 deletion infra/core/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

resource "google_storage_bucket" "pkg" {
name = "pkg.${var.root_level_domain}"
location = "US"
location = var.gcp_region
force_destroy = false

uniform_bucket_level_access = true
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {

workspaces {
project = "default"
name = "server-prod"
name = "server"
}
}

Expand Down
File renamed without changes.

0 comments on commit 3c2d5be

Please sign in to comment.