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

service account: produced an unexpected new value for was present, but now absent #30

Open
spike83 opened this issue Sep 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@spike83
Copy link

spike83 commented Sep 15, 2020

When creating the following service account I get an error

resource "confluentcloud_service_account" "kafka-1-rw" {
  name           = "kafka-1-rw"
  description    = "service account kafka-1-rw"
}

resource "confluentcloud_api_key" "kafka-1-rw" {
  cluster_id     = confluentcloud_kafka_cluster.kafka-1.id
  environment_id = confluentcloud_environment.environment.id
  user_id        = confluentcloud_service_account.kafka-1-rw.id
  description    = "kafka-1-rw"
}
2020-09-15T12:45:16.733Z [DEBUG] plugin.terraform-provider-confluentcloud_v0.0.5: 2020/09/15 12:45:16 [ERROR] Could not create Service Account: service_accounts: Service name is already in use.
2020/09/15 12:45:16 [DEBUG] module.ccloud.confluentcloud_service_account.kafka-1-rw: apply errored, but we're indicating that via the Error pointer rather than returning it: Provider produced inconsistent result after apply: When applying changes to module.ccloud.confluentcloud_service_account.kafka-1-rw, provider "registry.terraform.io/-/confluentcloud" produced an unexpected new value for was present, but now absent. This is a bug in the provider, which should be reported in the provider's own issue tracker.
2020/09/15 12:45:16 [ERROR] module.ccloud: eval: *terraform.EvalApplyPost, err: Provider produced inconsistent result after apply: When applying changes to module.ccloud.confluentcloud_service_account.kafka-1-rw, provider "registry.terraform.io/-/confluentcloud" produced an unexpected new value for was present, but now absent.This is a bug in the provider, which should be reported in the provider's own issue tracker.
2020/09/15 12:45:16 [ERROR] module.ccloud: eval: *terraform.EvalSequence, err: Provider produced inconsistent result after apply: When applying changes to module.ccloud.confluentcloud_service_account.kafka-1-rw, provider "registry.terraform.io/-/confluentcloud" produced an unexpected new value for was present, but now absent.

Once I run terraform import module.ccloud.confluentcloud_service_account.kafka-1-rw <id> it starts working.

@Mongey Mongey added the bug Something isn't working label Sep 24, 2020
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

2 participants