-
Notifications
You must be signed in to change notification settings - Fork 0
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
🔧 update cloudrun configuration #17
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shion1305
force-pushed
the
full-cloudrun-configration
branch
from
April 14, 2024 02:20
46ed3f5
to
4a15553
Compare
Plan Result (dev)
Change Result (Click me) # google_cloud_run_service.cloudrun-dev-main-backend will be updated in-place
~ resource "google_cloud_run_service" "cloudrun-dev-main-backend" {
id = "locations/asia-northeast1/namespaces/lgtmgen-project/services/dev-main-backend"
name = "dev-main-backend"
# (4 unchanged attributes hidden)
~ template {
~ spec {
# (4 unchanged attributes hidden)
~ containers {
~ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/backend:latest" -> "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/nginx:latest"
~ name = "backend-1" -> "nginx"
# (3 unchanged attributes hidden)
~ ports {
~ container_port = 8080 -> 80
name = "http1"
# (1 unchanged attribute hidden)
}
# (2 unchanged blocks hidden)
}
+ containers {
+ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/backend:latest"
+ name = "backend"
+ env {
+ name = "PORT"
+ value = "8080"
}
}
+ containers {
+ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/frontend:latest"
+ name = "frontend"
+ env {
+ name = "PORT"
+ value = "3000"
}
}
}
# (1 unchanged block hidden)
}
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy. |
❌ Apply Failed (dev)It failed to parse the result. Details (Click me)data.google_iam_policy.noauth: Reading...
google_project_service.vision_api: Refreshing state... [id=lgtmgen-project/vision.googleapis.com]
google_project_service.firestore_api: Refreshing state... [id=lgtmgen-project/firestore.googleapis.com]
google_firestore_database.datastore_mode_database: Refreshing state... [id=projects/lgtmgen-project/databases/(default)]
google_artifact_registry_repository.main-repo: Refreshing state... [id=projects/lgtmgen-project/locations/asia-northeast1/repositories/dev-main]
google_storage_bucket.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket]
data.google_iam_policy.noauth: Read complete after 0s [id=3450855414]
google_cloud_run_service.cloudrun-dev-main-backend: Refreshing state... [id=locations/asia-northeast1/namespaces/lgtmgen-project/services/dev-main-backend]
google_firebase_project.default: Refreshing state... [id=projects/lgtmgen-project]
google_project_service.firebase_database: Refreshing state... [id=lgtmgen-project/firebasedatabase.googleapis.com]
google_cloud_run_service_iam_policy.noauth: Refreshing state... [id=v1/projects/lgtmgen-project/locations/asia-northeast1/services/dev-main-backend]
google_firebase_database_instance.default: Refreshing state... [id=projects/lgtmgen-project/locations/asia-southeast1/instances/lgtmgen-project-default-rtdb]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# google_cloud_run_service.cloudrun-dev-main-backend will be updated in-place
~ resource "google_cloud_run_service" "cloudrun-dev-main-backend" {
id = "locations/asia-northeast1/namespaces/lgtmgen-project/services/dev-main-backend"
name = "dev-main-backend"
# (4 unchanged attributes hidden)
~ template {
~ spec {
# (4 unchanged attributes hidden)
~ containers {
~ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/backend:latest" -> "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/nginx:latest"
~ name = "backend-1" -> "nginx"
# (3 unchanged attributes hidden)
~ ports {
~ container_port = 8080 -> 80
name = "http1"
# (1 unchanged attribute hidden)
}
# (2 unchanged blocks hidden)
}
+ containers {
+ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/backend:latest"
+ name = "backend"
+ env {
+ name = "PORT"
+ value = "8080"
}
}
+ containers {
+ image = "asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/frontend:latest"
+ name = "frontend"
+ env {
+ name = "PORT"
+ value = "3000"
}
}
}
# (1 unchanged block hidden)
}
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
google_cloud_run_service.cloudrun-dev-main-backend: Modifying... [id=locations/asia-northeast1/namespaces/lgtmgen-project/services/dev-main-backend]
╷
│ Error: resource is in failed state "Ready:False", message: Revision 'dev-main-backend-00008-c58' is not ready and cannot serve traffic. Image 'asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/frontend:latest' not found.
│
│ with google_cloud_run_service.cloudrun-dev-main-backend,
│ on cloudrun.tf line 1, in resource "google_cloud_run_service" "cloudrun-dev-main-backend":
│ 1: resource "google_cloud_run_service" "cloudrun-dev-main-backend" {
│
╵
Releasing state lock. This may take a few moments...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.