-
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
Artifact Registry dev-mainの作成 #6
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
Member
Shion1305
commented
Apr 13, 2024
- 🔧 enable firestore
- ✨ Artifact Registry definition
Plan Result (dev)
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. |
❌ Apply Failed (dev)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" {
│
╵
|
❌ Apply Failed (dev)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...
|
❌ Apply Failed (dev)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...
|
✅ Apply Succeeded (dev)
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
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.