confluentinc / terraform-provider-confluentcloud

Confluent Cloud Terraform Provider is deprecated in favor of Confluent Terraform Provider
https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs
52 stars 23 forks source link

How to create an api key for a service account? #17

Closed svetozar02 closed 2 years ago

svetozar02 commented 2 years ago

It seems we can create a service account by using https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs/resources/confluentcloud_service_account. How do we create an api key for that account?

linouk23 commented 2 years ago

confluentcloud_api_key resource is not available in the most recent 0.2.0 version of TF provider (so creating an api key is not possible via terraform but you could use CLI instead) but it's on our roadmap, stay tuned!

AClarkie commented 2 years ago

Hey @linouk23 do you know when this feature will be delivered?

linouk23 commented 2 years ago

I can't give you any exact timelines but hopefully it'll be included in one of our next releases.

AClarkie commented 2 years ago

Thanks for the quick response, I realise an exact time frame might be difficult to provide but could you give me a rough estimate e.g. Q1 2022?

The reason I ask is that we will roll our own solution if it's unlikely to be addressed in the next few months.

linouk23 commented 2 years ago

Thanks for the quick response, I realise an exact time frame might be difficult to provide but could you give me a rough estimate e.g. Q1 2022?

I see, I don't want to commit to anything but it's very likely that it's going to be addressed in the next 1-2 months.

AClarkie commented 2 years ago

Thanks for the quick response, I realise an exact time frame might be difficult to provide but could you give me a rough estimate e.g. Q1 2022?

I see, I don't want to commit to anything but it's very likely that it's going to be addressed in the next 1-2 months.

That's great thanks

linouk23 commented 2 years ago

Not sure why I closed this issue 😕

ConfluentSpencer commented 2 years ago

Duplicate of this ask: https://github.com/confluentinc/terraform-provider-confluentcloud/issues/4

linouk23 commented 2 years ago

@svetozar02 @AClarkie, @marthjod we're very excited to let you know we've just published a new version of TF Provider that includes api_key resource among other very exciting improvements: it enables fully automated provisioning of our key Kafka workflows (see the demo) with no more manual intervention and makes it our biggest and most impactful release.

The only gotcha we've renamed it from confluentinc/confluentcloud to confluentinc/confluent but we published a migration guide so it should be fairly straightforward. The existing confluentinc/confluentcloud will be deprecated soon so we'd recommend switching as soon as possible.

New confluentinc/confluent provider also includes a lot of sample configurations so you won't need to write them from scratch. You can find them here, find a full list of changes here.