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

CloudRunのサービスアカウント変更 #37

Merged
merged 4 commits into from
Aug 18, 2024

Conversation

Shion1305
Copy link
Owner

CloudRun専用アカウントでの動作に変更

Copy link

github-actions bot commented Aug 18, 2024

Plan Result

CI link

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • google_cloud_run_v2_service.release
Change Result (Click me)
  # google_cloud_run_v2_service.release will be updated in-place
  ~ resource "google_cloud_run_v2_service" "release" {
        id                      = "projects/lumos-profile-management/locations/asia-northeast1/services/release"
        name                    = "release"
        # (30 unchanged attributes hidden)

      ~ template {
          ~ service_account                  = "938038185918-compute@developer.gserviceaccount.com" -> "cloudrun-svc@lumos-profile-management.iam.gserviceaccount.com"
            # (8 unchanged attributes hidden)

            # (2 unchanged blocks hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@Shion1305 Shion1305 merged commit 9a67037 into main Aug 18, 2024
3 checks passed
@Shion1305 Shion1305 deleted the change-svc-account-cloudrun branch August 18, 2024 14:47
Copy link

❌ Apply Failed

CI link

It failed to parse the result.

Details (Click me)
Acquiring state lock. This may take a few moments...
data.google_secret_manager_secret.discord_callback_uri: Reading...
data.google_secret_manager_secret.discord_bot_token: Reading...
data.google_secret_manager_secret.jwt_secret: Reading...
data.google_secret_manager_secret.discord_auth_url: Reading...
data.google_secret_manager_secret.discord_member_role_id: Reading...
data.google_secret_manager_secret.line_client_secret: Reading...
data.google_secret_manager_secret.discord_client_secret: Reading...
data.google_secret_manager_secret.discord_client_id: Reading...
data.google_secret_manager_secret.line_callback_uri: Reading...
google_artifact_registry_repository.main-repo: Refreshing state... [id=projects/lumos-profile-management/locations/asia-northeast1/repositories/main]
data.google_secret_manager_secret.discord_auth_url: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_AUTH_URL]
data.google_secret_manager_secret.line_client_id: Reading...
data.google_secret_manager_secret.discord_callback_uri: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CALLBACK_URI]
data.google_secret_manager_secret.line_auth_url: Reading...
data.google_secret_manager_secret.jwt_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/JWT_SECRET]
data.google_secret_manager_secret.discord_guild_id: Reading...
data.google_secret_manager_secret.discord_bot_token: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_BOT_TOKEN]
data.google_secret_manager_secret.line_client_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CLIENT_SECRET]
data.google_secret_manager_secret.discord_client_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CLIENT_SECRET]
data.google_secret_manager_secret.firebase_admin_cert_path: Reading...
data.google_secret_manager_secret.discord_member_role_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_MEMBER_ROLE_ID]
data.google_secret_manager_secret.discord_client_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CLIENT_ID]
data.google_secret_manager_secret.line_callback_uri: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CALLBACK_URI]
data.google_secret_manager_secret.line_client_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CLIENT_ID]
data.google_secret_manager_secret.firebase_admin_cert_path: Read complete after 0s [id=projects/lumos-profile-management/secrets/FIREBASE_ADMIN_CERT_PATH]
data.google_secret_manager_secret.discord_guild_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_GUILD_ID]
data.google_secret_manager_secret.line_auth_url: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_AUTH_URL]
google_cloud_run_v2_service.release: Refreshing state... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release]

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_v2_service.release will be updated in-place
  ~ resource "google_cloud_run_v2_service" "release" {
        id                      = "projects/lumos-profile-management/locations/asia-northeast1/services/release"
        name                    = "release"
        # (30 unchanged attributes hidden)

      ~ template {
          ~ service_account                  = "938038185918-compute@developer.gserviceaccount.com" -> "cloudrun-svc@lumos-profile-management.iam.gserviceaccount.com"
            # (8 unchanged attributes hidden)

            # (2 unchanged blocks hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
google_cloud_run_v2_service.release: Modifying... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release]
google_cloud_run_v2_service.release: Still modifying... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release, 10s elapsed]
╷
│ Error: Error waiting for Updating Service: Error code 13, message: Revision 'release-00025-98z' is not ready and cannot serve traffic. spec.template.spec.containers[0].env[3].value_from.secret_key_ref.name: Secret projects/938038185918/secrets/DISCORD_CLIENT_ID/versions/latest was not found
│ spec.template.spec.containers[0].env[7].value_from.secret_key_ref.name: Secret projects/938038185918/secrets/FIREBASE_ADMIN_CERT_PATH/versions/latest was not found
│ 
│   with google_cloud_run_v2_service.release,
│   on cloud-run.tf line 1, in resource "google_cloud_run_v2_service" "release":
│    1: resource "google_cloud_run_v2_service" "release" {
│ 
╵

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