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

🔧 update cloudrun configuration #17

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Conversation

Shion1305
Copy link
Member

No description provided.

Copy link

Plan Result (dev)

CI link

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • google_cloud_run_service.cloudrun-dev-main-backend
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.

@Shion1305 Shion1305 merged commit 46ead6a into main Apr 14, 2024
1 check passed
@Shion1305 Shion1305 deleted the full-cloudrun-configration branch April 14, 2024 02:22
Copy link

❌ Apply Failed (dev)

CI link

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant