Giter Site home page Giter Site logo

Comments (3)

bluedog13 avatar bluedog13 commented on June 12, 2024 1

The below works. The right configuration would be

provider "confluentcloud" {
  api_key    = var.api_key
  api_secret = var.api_secret
}

from terraform-provider-confluentcloud.

linouk23 avatar linouk23 commented on June 12, 2024

Thanks for both opening the issue and sharing the fix! 👏

You're right, one needs to use api_key instead of username and api_secret instead of password, e.g.:

$ cat variables.tf
variable "confluent_cloud_api_key" {
  type = string
  description = "Cloud API Key"
  sensitive = true
}

variable "confluent_cloud_api_secret" {
  type = string
  description = "Cloud API Secret"
  sensitive = true
}

$ cat terraform.tfvars
confluent_cloud_api_key="..."
confluent_cloud_api_secret="..."

$ cat main.tf
terraform {
  required_providers {
    confluentcloud = {
      source  = "confluentinc/confluentcloud"
      version = "0.1.0"
    }
  }
}

provider "confluentcloud" {
  api_key = var.confluent_cloud_api_key
  api_secret = var.confluent_cloud_api_secret
}

# Create the resources
...

We're going to fix it in our next release 👌

from terraform-provider-confluentcloud.

linouk23 avatar linouk23 commented on June 12, 2024

@bluedog13 check out the docs for our new 0.2.0 version where we fixed that documentation bug.
image
Thank you for catching the issue!

from terraform-provider-confluentcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.