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

fixed bug Permission denied on Cloud KMS key. Please ensure that your… #59

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

amansingh14
Copy link
Collaborator

After enabling encryption on the bucket for compliance, Getting the below error while deploying the 0-bootstrap stage.

│ 
│   with module.cloudbuild_bootstrap.google_storage_bucket.cloudbuild_artifacts,
│   on ../modules/cloudbuild/main.tf line 77, in resource "google_storage_bucket" "cloudbuild_artifacts":
│   77: resource "google_storage_bucket" "cloudbuild_artifacts" {
│ 
╵

Solution: GCP has a bucket service account which needs to have roles/cloudkms.cryptoKeyEncrypterDecrypter assigned.

… Cloud Storage service account has been authorized to use this key
@amansingh14 amansingh14 added the bug Something isn't working label Mar 13, 2024
@amansingh14 amansingh14 self-assigned this Mar 13, 2024
@amansingh14 amansingh14 requested a review from sujatak97 as a code owner March 13, 2024 08:20
@amansingh14 amansingh14 merged commit 24ef9e0 into main Mar 13, 2024
5 checks passed
@amansingh14 amansingh14 deleted the bug/fix-2 branch March 13, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants