Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(infra): rename server-prod to server #390

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading