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

Terraform Import failing for GCP Service accounts #3545

Closed
thxmike opened this issue May 2, 2019 · 2 comments
Closed

Terraform Import failing for GCP Service accounts #3545

thxmike opened this issue May 2, 2019 · 2 comments

Comments

@thxmike
Copy link

thxmike commented May 2, 2019

Terraform Version

Terraform version: 0.11.13

Terraform Configuration Files

resource "google_service_account" "terraform-iam" {
account_id = "projects/gsuite-api-service/serviceAccounts/terraform-iam-service@test-gsuite-api-229318.iam.gserviceaccount.com"
email = "terraform-iam-service@test-gsuite-api-229318.iam.gserviceaccount.com"
display_name = "terraform.iam.service"
project = "gsuite-api-service"
}

Debug Output

https://gist.github.com/thxmike/71dbb1093f8f7bb590377b2a1af94e26
Crash Output
Expected Behavior

terraform import google_service_account.terraform-iam terraform-iam-service
should produce a state file or state data
Actual Behavior
In response to the answer provided in #3542, we did attempt this but keep getting a different error
Error: google_service_account.terraform-iam: "account_id" ("projects/gsuite-api-service/serviceAccounts/terraform-iam-service@test-gsuite-api-229318.iam.gserviceaccount.com") doesn't match regexp "^a-z$"

Updated configure provided here

Steps to Reproduce
terraform import google_service_account.terraform-iam terraform-iam-service
Additional Context
References

@rileykarson
Copy link
Collaborator

Closing in favour of #3542, issues are still available to comment on after being closed; if this doesn't end up being config, #3542 will be opened.

@ghost
Copy link

ghost commented Jun 2, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants