Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Add Cloud Run resources requests (#67)
Browse files Browse the repository at this point in the history
Signed-off-by: Yu ISHIKAWA <yuu.ishikawa+github@gmail.com>
  • Loading branch information
yu-iskw authored May 9, 2023
1 parent 853f6be commit acc056a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/module/google_cloud_run_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ resource "google_cloud_run_service" "dbt_artifact_loader" {
containers {
image = var.docker_image

resources {
requests = var.cloud_run_resources_requests
}

env {
name = "ENV_FILE"
value = ".env/.env.prod"
Expand Down
12 changes: 12 additions & 0 deletions terraform/module/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,15 @@ variable "cloud_run_service_name" {
type = string
default = "dbt-artifacts-loader"
}

variable "cloud_run_resources_requests" {
description = "The resources of Cloud Run"
type = object({
cpu = string
memory = string
})
default = {
cpu = "1"
memory = "512Mi"
}
}

0 comments on commit acc056a

Please sign in to comment.