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

Artifact Registry dev-mainの作成 #6

Merged
merged 4 commits into from
Apr 13, 2024
Merged

Artifact Registry dev-mainの作成 #6

merged 4 commits into from
Apr 13, 2024

Conversation

Shion1305
Copy link
Member

  • 🔧 enable firestore
  • ✨ Artifact Registry definition

Copy link

github-actions bot commented Apr 13, 2024

Plan Result (dev)

CI link

Plan: 4 to add, 1 to change, 0 to destroy.
  • Create
    • google_artifact_registry_repository.main-repo
    • google_firestore_database.datastore_mode_database
    • google_project_service.firestore_api
    • google_project_service.vision_api
  • Update
    • google_storage_bucket.public_image_bucket
Change Result (Click me)
  # google_artifact_registry_repository.main-repo will be created
  + resource "google_artifact_registry_repository" "main-repo" {
      + create_time      = (known after apply)
      + description      = "main repo for dev"
      + effective_labels = (known after apply)
      + format           = "DOCKER"
      + id               = (known after apply)
      + location         = "asia-northeast1"
      + mode             = "STANDARD_REPOSITORY"
      + name             = (known after apply)
      + project          = "lgtmgen-project"
      + repository_id    = "dev-main"
      + terraform_labels = (known after apply)
      + update_time      = (known after apply)
    }

  # google_firestore_database.datastore_mode_database will be created
  + resource "google_firestore_database" "datastore_mode_database" {
      + app_engine_integration_mode       = (known after apply)
      + concurrency_mode                  = (known after apply)
      + create_time                       = (known after apply)
      + delete_protection_state           = (known after apply)
      + deletion_policy                   = "ABANDON"
      + earliest_version_time             = (known after apply)
      + etag                              = (known after apply)
      + id                                = (known after apply)
      + key_prefix                        = (known after apply)
      + location_id                       = "asia-northeast1"
      + name                              = "(default)"
      + point_in_time_recovery_enablement = "POINT_IN_TIME_RECOVERY_DISABLED"
      + project                           = "lgtmgen-project"
      + type                              = "DATASTORE_MODE"
      + uid                               = (known after apply)
      + update_time                       = (known after apply)
      + version_retention_period          = (known after apply)
    }

  # google_project_service.firestore_api will be created
  + resource "google_project_service" "firestore_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "firestore.googleapis.com"
    }

  # google_project_service.vision_api will be created
  + resource "google_project_service" "vision_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "vision.googleapis.com"
    }

  # google_storage_bucket.public_image_bucket will be updated in-place
  ~ resource "google_storage_bucket" "public_image_bucket" {
        id                          = "lgtm-public-image-bucket"
        name                        = "lgtm-public-image-bucket"
        # (14 unchanged attributes hidden)

      ~ cors {
          ~ origin          = [
              + null,
            ]
            # (3 unchanged attributes hidden)
        }
    }

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

@Shion1305 Shion1305 merged commit f9af06a into main Apr 13, 2024
1 check passed
@Shion1305 Shion1305 deleted the gar-dev-main branch April 13, 2024 04:52
Copy link

❌ Apply Failed (dev)

CI link

It failed to parse the result.

Details (Click me)
Acquiring state lock. This may take a few moments...
google_storage_bucket.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket]
google_storage_bucket_access_control.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # google_artifact_registry_repository.main-repo will be created
  + resource "google_artifact_registry_repository" "main-repo" {
      + create_time      = (known after apply)
      + description      = "main repo for dev"
      + effective_labels = (known after apply)
      + format           = "DOCKER"
      + id               = (known after apply)
      + location         = "asia-northeast1"
      + mode             = "STANDARD_REPOSITORY"
      + name             = (known after apply)
      + project          = "lgtmgen-project"
      + repository_id    = "dev-main"
      + terraform_labels = (known after apply)
      + update_time      = (known after apply)
    }

  # google_firestore_database.datastore_mode_database will be created
  + resource "google_firestore_database" "datastore_mode_database" {
      + app_engine_integration_mode       = (known after apply)
      + concurrency_mode                  = (known after apply)
      + create_time                       = (known after apply)
      + delete_protection_state           = (known after apply)
      + deletion_policy                   = "ABANDON"
      + earliest_version_time             = (known after apply)
      + etag                              = (known after apply)
      + id                                = (known after apply)
      + key_prefix                        = (known after apply)
      + location_id                       = "asia-northeast1"
      + name                              = "(default)"
      + point_in_time_recovery_enablement = "POINT_IN_TIME_RECOVERY_DISABLED"
      + project                           = "lgtmgen-project"
      + type                              = "DATASTORE_MODE"
      + uid                               = (known after apply)
      + update_time                       = (known after apply)
      + version_retention_period          = (known after apply)
    }

  # google_project_service.firestore_api will be created
  + resource "google_project_service" "firestore_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "firestore.googleapis.com"
    }

  # google_project_service.vision_api will be created
  + resource "google_project_service" "vision_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "vision.googleapis.com"
    }

  # google_storage_bucket.public_image_bucket will be updated in-place
  ~ resource "google_storage_bucket" "public_image_bucket" {
        id                          = "lgtm-public-image-bucket"
        name                        = "lgtm-public-image-bucket"
        # (14 unchanged attributes hidden)

      ~ cors {
          ~ origin          = [
              + null,
            ]
            # (3 unchanged attributes hidden)
        }
    }

Plan: 4 to add, 1 to change, 0 to destroy.
google_project_service.vision_api: Creating...
google_project_service.firestore_api: Creating...
google_firestore_database.datastore_mode_database: Creating...
google_artifact_registry_repository.main-repo: Creating...
google_storage_bucket.public_image_bucket: Modifying... [id=lgtm-public-image-bucket]
google_storage_bucket.public_image_bucket: Modifications complete after 1s [id=lgtm-public-image-bucket]
╷
│ Error: Error creating Repository: googleapi: Error 403: Artifact Registry API has not been used in project lgtmgen-project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/artifactregistry.googleapis.com/overview?project=lgtmgen-project then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
│ Details:
│ [
│   {
│     "@type": "type.googleapis.com/google.rpc.Help",
│     "links": [
│       {
│         "description": "Google developers console API activation",
│         "url": "https://console.developers.google.com/apis/api/artifactregistry.googleapis.com/overview?project=lgtmgen-project"
│       }
│     ]
│   },
│   {
│     "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│     "domain": "googleapis.com",
│     "metadata": {
│       "consumer": "projects/lgtmgen-project",
│       "service": "artifactregistry.googleapis.com"
│     },
│     "reason": "SERVICE_DISABLED"
│   }
│ ]
│ 
│   with google_artifact_registry_repository.main-repo,
│   on artifact-registry.tf line 1, in resource "google_artifact_registry_repository" "main-repo":
│    1: resource "google_artifact_registry_repository" "main-repo" {
│ 
╵
╷
│ Error: Error when reading or editing Project Service : Request `List Project Services lgtmgen-project` returned error: Batch request and retried single request "List Project Services lgtmgen-project" both failed. Final error: Failed to list enabled services for project lgtmgen-project: googleapi: Error 403: Service Usage API has not been used in project 228944830644 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=228944830644 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
│ Details:
│ [
│   {
│     "@type": "type.googleapis.com/google.rpc.Help",
│     "links": [
│       {
│         "description": "Google developers console API activation",
│         "url": "https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=228944830644"
│       }
│     ]
│   },
│   {
│     "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│     "domain": "googleapis.com",
│     "metadata": {
│       "consumer": "projects/228944830644",
│       "service": "serviceusage.googleapis.com"
│     },
│     "reason": "SERVICE_DISABLED"
│   }
│ ]
│ , accessNotConfigured
│ 
│   with google_project_service.firestore_api,
│   on firestore.tf line 1, in resource "google_project_service" "firestore_api":1: resource "google_project_service" "firestore_api" {
│ 
╵
╷
│ Error: Error creating Database: googleapi: Error 403: The caller does not have permission
│ 
│   with google_firestore_database.datastore_mode_database,
│   on firestore.tf line 5, in resource "google_firestore_database" "datastore_mode_database":5: resource "google_firestore_database" "datastore_mode_database" {
│ 
╵
╷
│ Error: Error when reading or editing Project Service : Request `List Project Services lgtmgen-project` returned error: Batch request and retried single request "List Project Services lgtmgen-project" both failed. Final error: Failed to list enabled services for project lgtmgen-project: googleapi: Error 403: Service Usage API has not been used in project 228944830644 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=228944830644 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
│ Details:
│ [
│   {
│     "@type": "type.googleapis.com/google.rpc.Help",
│     "links": [
│       {
│         "description": "Google developers console API activation",
│         "url": "https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=228944830644"
│       }
│     ]
│   },
│   {
│     "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│     "domain": "googleapis.com",
│     "metadata": {
│       "consumer": "projects/228944830644",
│       "service": "serviceusage.googleapis.com"
│     },
│     "reason": "SERVICE_DISABLED"
│   }
│ ]
│ , accessNotConfigured
│ 
│   with google_project_service.vision_api,
│   on vision.tf line 1, in resource "google_project_service" "vision_api":1: resource "google_project_service" "vision_api" {
│ 
╵

Copy link

❌ Apply Failed (dev)

CI link

It failed to parse the result.

Details (Click me)
google_storage_bucket.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket]
google_storage_bucket_access_control.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # google_artifact_registry_repository.main-repo will be created
  + resource "google_artifact_registry_repository" "main-repo" {
      + create_time      = (known after apply)
      + description      = "main repo for dev"
      + effective_labels = (known after apply)
      + format           = "DOCKER"
      + id               = (known after apply)
      + location         = "asia-northeast1"
      + mode             = "STANDARD_REPOSITORY"
      + name             = (known after apply)
      + project          = "lgtmgen-project"
      + repository_id    = "dev-main"
      + terraform_labels = (known after apply)
      + update_time      = (known after apply)
    }

  # google_firestore_database.datastore_mode_database will be created
  + resource "google_firestore_database" "datastore_mode_database" {
      + app_engine_integration_mode       = (known after apply)
      + concurrency_mode                  = (known after apply)
      + create_time                       = (known after apply)
      + delete_protection_state           = (known after apply)
      + deletion_policy                   = "ABANDON"
      + earliest_version_time             = (known after apply)
      + etag                              = (known after apply)
      + id                                = (known after apply)
      + key_prefix                        = (known after apply)
      + location_id                       = "asia-northeast1"
      + name                              = "(default)"
      + point_in_time_recovery_enablement = "POINT_IN_TIME_RECOVERY_DISABLED"
      + project                           = "lgtmgen-project"
      + type                              = "DATASTORE_MODE"
      + uid                               = (known after apply)
      + update_time                       = (known after apply)
      + version_retention_period          = (known after apply)
    }

  # google_project_service.firestore_api will be created
  + resource "google_project_service" "firestore_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "firestore.googleapis.com"
    }

  # google_project_service.vision_api will be created
  + resource "google_project_service" "vision_api" {
      + disable_on_destroy = true
      + id                 = (known after apply)
      + project            = "lgtmgen-project"
      + service            = "vision.googleapis.com"
    }

  # google_storage_bucket.public_image_bucket will be updated in-place
  ~ resource "google_storage_bucket" "public_image_bucket" {
        id                          = "lgtm-public-image-bucket"
        name                        = "lgtm-public-image-bucket"
        # (14 unchanged attributes hidden)

      ~ cors {
          ~ origin          = [
              + null,
            ]
            # (3 unchanged attributes hidden)
        }
    }

Plan: 4 to add, 1 to change, 0 to destroy.
google_project_service.vision_api: Creating...
google_project_service.firestore_api: Creating...
google_firestore_database.datastore_mode_database: Creating...
google_artifact_registry_repository.main-repo: Creating...
google_storage_bucket.public_image_bucket: Modifying... [id=lgtm-public-image-bucket]
google_storage_bucket.public_image_bucket: Modifications complete after 1s [id=lgtm-public-image-bucket]
google_project_service.firestore_api: Creation complete after 4s [id=lgtmgen-project/firestore.googleapis.com]
google_project_service.vision_api: Still creating... [10s elapsed]
google_project_service.vision_api: Still creating... [20s elapsed]
google_project_service.vision_api: Creation complete after 21s [id=lgtmgen-project/vision.googleapis.com]
╷
│ Error: Error creating Repository: googleapi: Error 403: Artifact Registry API has not been used in project lgtmgen-project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/artifactregistry.googleapis.com/overview?project=lgtmgen-project then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
│ Details:
│ [
│   {
│     "@type": "type.googleapis.com/google.rpc.Help",
│     "links": [
│       {
│         "description": "Google developers console API activation",
│         "url": "https://console.developers.google.com/apis/api/artifactregistry.googleapis.com/overview?project=lgtmgen-project"
│       }
│     ]
│   },
│   {
│     "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│     "domain": "googleapis.com",
│     "metadata": {
│       "consumer": "projects/lgtmgen-project",
│       "service": "artifactregistry.googleapis.com"
│     },
│     "reason": "SERVICE_DISABLED"
│   }
│ ]
│ 
│   with google_artifact_registry_repository.main-repo,
│   on artifact-registry.tf line 1, in resource "google_artifact_registry_repository" "main-repo":
│    1: resource "google_artifact_registry_repository" "main-repo" {
│ 
╵
╷
│ Error: Error creating Database: googleapi: Error 403: The caller does not have permission
│ 
│   with google_firestore_database.datastore_mode_database,
│   on firestore.tf line 5, in resource "google_firestore_database" "datastore_mode_database":5: resource "google_firestore_database" "datastore_mode_database" {
│ 
╵
Releasing state lock. This may take a few moments...

Copy link

❌ Apply Failed (dev)

CI link

It failed to parse the result.

Details (Click me)
Acquiring state lock. This may take a few moments...
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_storage_bucket.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket]
google_storage_bucket_access_control.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # google_artifact_registry_repository.main-repo will be created
  + resource "google_artifact_registry_repository" "main-repo" {
      + create_time      = (known after apply)
      + description      = "main repo for dev"
      + effective_labels = (known after apply)
      + format           = "DOCKER"
      + id               = (known after apply)
      + location         = "asia-northeast1"
      + mode             = "STANDARD_REPOSITORY"
      + name             = (known after apply)
      + project          = "lgtmgen-project"
      + repository_id    = "dev-main"
      + terraform_labels = (known after apply)
      + update_time      = (known after apply)
    }

  # google_firestore_database.datastore_mode_database will be created
  + resource "google_firestore_database" "datastore_mode_database" {
      + app_engine_integration_mode       = (known after apply)
      + concurrency_mode                  = (known after apply)
      + create_time                       = (known after apply)
      + delete_protection_state           = (known after apply)
      + deletion_policy                   = "ABANDON"
      + earliest_version_time             = (known after apply)
      + etag                              = (known after apply)
      + id                                = (known after apply)
      + key_prefix                        = (known after apply)
      + location_id                       = "asia-northeast1"
      + name                              = "(default)"
      + point_in_time_recovery_enablement = "POINT_IN_TIME_RECOVERY_DISABLED"
      + project                           = "lgtmgen-project"
      + type                              = "DATASTORE_MODE"
      + uid                               = (known after apply)
      + update_time                       = (known after apply)
      + version_retention_period          = (known after apply)
    }

  # google_storage_bucket.public_image_bucket will be updated in-place
  ~ resource "google_storage_bucket" "public_image_bucket" {
        id                          = "lgtm-public-image-bucket"
        name                        = "lgtm-public-image-bucket"
        # (14 unchanged attributes hidden)

      ~ cors {
          ~ origin          = [
              + null,
            ]
            # (3 unchanged attributes hidden)
        }
    }

Plan: 2 to add, 1 to change, 0 to destroy.
google_firestore_database.datastore_mode_database: Creating...
google_artifact_registry_repository.main-repo: Creating...
google_storage_bucket.public_image_bucket: Modifying... [id=lgtm-public-image-bucket]
google_storage_bucket.public_image_bucket: Modifications complete after 1s [id=lgtm-public-image-bucket]
google_artifact_registry_repository.main-repo: Still creating... [10s elapsed]
google_artifact_registry_repository.main-repo: Creation complete after 12s [id=projects/lgtmgen-project/locations/asia-northeast1/repositories/dev-main]
╷
│ Error: Error creating Database: googleapi: Error 403: The caller does not have permission
│ 
│   with google_firestore_database.datastore_mode_database,
│   on firestore.tf line 5, in resource "google_firestore_database" "datastore_mode_database":
│    5: resource "google_firestore_database" "datastore_mode_database" {
│ 
╵
Releasing state lock. This may take a few moments...

Copy link

✅ Apply Succeeded (dev)

CI link

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.
Details (Click me)
Acquiring state lock. This may take a few moments...
google_project_service.firestore_api: Refreshing state... [id=lgtmgen-project/firestore.googleapis.com]
google_project_service.vision_api: Refreshing state... [id=lgtmgen-project/vision.googleapis.com]
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]
google_storage_bucket_access_control.public_image_bucket: Refreshing state... [id=lgtm-public-image-bucket/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # google_firestore_database.datastore_mode_database will be created
  + resource "google_firestore_database" "datastore_mode_database" {
      + app_engine_integration_mode       = (known after apply)
      + concurrency_mode                  = (known after apply)
      + create_time                       = (known after apply)
      + delete_protection_state           = (known after apply)
      + deletion_policy                   = "ABANDON"
      + earliest_version_time             = (known after apply)
      + etag                              = (known after apply)
      + id                                = (known after apply)
      + key_prefix                        = (known after apply)
      + location_id                       = "asia-northeast1"
      + name                              = "(default)"
      + point_in_time_recovery_enablement = "POINT_IN_TIME_RECOVERY_DISABLED"
      + project                           = "lgtmgen-project"
      + type                              = "DATASTORE_MODE"
      + uid                               = (known after apply)
      + update_time                       = (known after apply)
      + version_retention_period          = (known after apply)
    }

  # google_storage_bucket.public_image_bucket will be updated in-place
  ~ resource "google_storage_bucket" "public_image_bucket" {
        id                          = "lgtm-public-image-bucket"
        name                        = "lgtm-public-image-bucket"
        # (14 unchanged attributes hidden)

      ~ cors {
          ~ origin          = [
              + null,
            ]
            # (3 unchanged attributes hidden)
        }
    }

Plan: 1 to add, 1 to change, 0 to destroy.
google_firestore_database.datastore_mode_database: Creating...
google_storage_bucket.public_image_bucket: Modifying... [id=lgtm-public-image-bucket]
google_storage_bucket.public_image_bucket: Modifications complete after 1s [id=lgtm-public-image-bucket]
google_firestore_database.datastore_mode_database: Still creating... [10s elapsed]
google_firestore_database.datastore_mode_database: Still creating... [20s elapsed]
google_firestore_database.datastore_mode_database: Creation complete after 25s [id=projects/lgtmgen-project/databases/(default)]
Releasing state lock. This may take a few moments...

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.

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