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 keeps forcing new resource on unchanged cluster #26

Open
nbommu1 opened this issue Aug 6, 2020 · 7 comments
Open

Terraform keeps forcing new resource on unchanged cluster #26

nbommu1 opened this issue Aug 6, 2020 · 7 comments

Comments

@nbommu1
Copy link

nbommu1 commented Aug 6, 2020

Hi,

I have an issue on cluster in confluent cloud, it keeps forcing new resource on unchanged cluster.

`-/+ confluentcloud_kafka_cluster.test (new resource required)
id: "lkc-nkqz6" => (forces new resource)
availability: "LOW" => "LOW"
bootstrap_servers: "SASL_SSL://pkc-4nym6.us-east-1.aws.confluent.cloud:9092" =>
deployment.%: "1" => "0" (forces new resource)
deployment.sku: "BASIC" => "" (forces new resource)
environment_id: "env-7qnnp" => "env-7qnnp"
name: "provider-test" => "provider-test"
network_egress: "100" => "100"
network_ingress: "100" => "100"
region: "us-east-1" => "us-east-1"
service_provider: "aws" => "aws"
storage: "5000" => "5000"

`
what are default values to set deployment?

thanks
Niranjan

@Mongey
Copy link
Owner

Mongey commented Aug 6, 2020

@nbommu1 What version of the provider are you using? can you try 0.0.3, it should fix this.

@nbommu1
Copy link
Author

nbommu1 commented Aug 6, 2020

I was trying with ver 0.0.3 downloaded from below url.

https://github.com/Mongey/terraform-provider-confluentcloud/releases/tag/v0.0.3

@nbommu1
Copy link
Author

nbommu1 commented Aug 6, 2020

I rebuilt the module from the source, now it works.

No changes. Infrastructure is up-to-date.

@nbommu1
Copy link
Author

nbommu1 commented Aug 11, 2020

when I build that from source still I have to define this in my terraform, is this right way to do this?
deployment: { "sku": "BASIC" }

@nbommu1
Copy link
Author

nbommu1 commented Aug 11, 2020

another error when I create cluster with availability: "HIGH
'
Terraform v0.11.14
provider.confluentcloud v0.0.3
provider.kafka v0.2.9

error: Error applying plan:

1 error occurred:
* confluentcloud_kafka_cluster.nonprod-test: 1 error occurred:
* confluentcloud_kafka_cluster.nonprod-test: clusters: Creating multi zone cluster is not eligible for the sku.:
durability: Creating multi zone cluster is not eligible for the sku.BASIC
`

@nbommu1
Copy link
Author

nbommu1 commented Aug 12, 2020

intersting, if build the module from the source it works fine, here is my terraform.

resource "confluentcloud_kafka_cluster" "test" {
  name             = "test"
  service_provider = "aws"
  region           = "us-east-1"
  availability     = "HIGH"
  environment_id   = confluentcloud_environment.environment.id
  network_egress = 100
  network_ingress = 100
  storage    = 5000
  deployment = { "sku": "STANDARD" }
}
confluentcloud_service_account.test: Creating...
confluentcloud_kafka_cluster.test: Creating...
confluentcloud_kafka_cluster.test: Creation complete after 1s [id=lkc-8g977]
confluentcloud_api_key.test: Creating...
confluentcloud_api_key.test: Creation complete after 0s [id=104398]
kafka_topic.nbommu-test: Creating...

@rjudin
Copy link

rjudin commented Oct 15, 2020

@nbommu1 - I have no issue with version 0.0.5
Please pay attention to parameters ( I had a similar issue when did not specify all parameters)
Your previous snippet from #26 (comment) looks valid.
PS: Please close the issue if it is working as expected :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants