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

getting an error on the default service account parameter with 10.0.2 version of the project factory module #912

Open
madhuakiti opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@madhuakiti
Copy link

TL;DR

As I was trying to upgrade the module version from 9.2.1 to 10.0.2, I was getting an error related to the default service account action parameter. Based on the documentation from the 10.0.2 version this shouldn't happening.

Error: expected action to be one of [DEPRIVILEGE DELETE DISABLE], got KEEP

on .terraform/modules/project/modules/core_project_factory/main.tf line 121, in resource "google_project_default_service_accounts" "default_service_accounts":
121: action = upper(var.default_service_account)

Expected behavior

Terragrunt/terraform plan should work as expected and should be able to print the plan output

Observed behavior

Error: expected action to be one of [DEPRIVILEGE DELETE DISABLE], got KEEP

on .terraform/modules/project/modules/core_project_factory/main.tf line 121, in resource "google_project_default_service_accounts" "default_service_accounts":
121: action = upper(var.default_service_account)

Terraform Configuration

We are using the combination of terraform and terragrunt to managed our GCP landing zone or foundation

Terraform Version

Current terraform version: 10.3.7
Current terragrunt version: 0.25.0

Additional information

No response

@madhuakiti madhuakiti added the bug Something isn't working label May 16, 2024
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

No branches or pull requests

1 participant