Skip to content

Commit

Permalink
Merge pull request #35 from Shion1305/shion/add-cloudrun-terraform
Browse files Browse the repository at this point in the history
🔧 add cloud run under terraform
  • Loading branch information
Shion1305 authored Aug 12, 2024
2 parents edb2df9 + c548779 commit 723c7bd
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions terraform/cloud-run.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import {
id = "asia-northeast1/release"
to = google_cloud_run_v2_service.release
}

resource "google_cloud_run_v2_service" "release" {
annotations = {}
client = "cloud-console"
client_version = null
custom_audiences = []
description = null
ingress = "INGRESS_TRAFFIC_ALL"
labels = {}
launch_stage = "GA"
location = "asia-northeast1"
name = "release"
project = "lumos-profile-management"
template {
annotations = {}
encryption_key = null
execution_environment = null
labels = {
commit-sha = "51388093213b127735a6253af62a08fcfb1276f8"
github_sha = "edb2df9aa77a4294d8c4475cc2e733fc38edc011"
managed-by = "github-actions"
}
max_instance_request_concurrency = 80
revision = null
service_account = "[email protected]"
session_affinity = false
timeout = "300s"
containers {
args = []
command = []
depends_on = []
image = "asia-northeast1-docker.pkg.dev/lumos-profile-management/main/nuxt3-release:latest"
name = "nuxt3-release-1"
working_dir = null
ports {
container_port = 8080
name = "http1"
}
resources {
cpu_idle = true
limits = {
cpu = "1000m"
memory = "512Mi"
}
startup_cpu_boost = true
}
startup_probe {
failure_threshold = 1
initial_delay_seconds = 0
period_seconds = 240
timeout_seconds = 240
tcp_socket {
port = 8080
}
}
}
scaling {
max_instance_count = 100
min_instance_count = 0
}
}
traffic {
percent = 100
revision = null
tag = null
type = "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST"
}
}

0 comments on commit 723c7bd

Please sign in to comment.