Code Monkey home page Code Monkey logo

Comments (4)

linouk23 avatar linouk23 commented on May 30, 2024 1

Thanks for reporting an issue @neuweiler!

We'll investigate it and report back!

from terraform-provider-confluent.

neuweiler avatar neuweiler commented on May 30, 2024 1

I was using 0.7.0 - will need to re-test with 0.8.0 on a separate environment later - not feasible at the moment due to go-live. I'm fine if you say it works now. You can close the ticket.

from terraform-provider-confluent.

linouk23 avatar linouk23 commented on May 30, 2024

@neuweiler could you confirm which version of TF Provider for Confluent you're using? I didn't manage to reproduce it for 0.8.0:

  1. Here's my TF configuration file
terraform {
  required_providers {
    confluent = {
      source  = "confluentinc/confluent"
      version = "0.8.0"
    }
  }
}

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

resource "confluent_service_account" "test" {
  display_name = "orders-app-sa123"
  description  = "Service Account for orders app"
}
  1. Run terraform apply to create a new service account.
  2. Deleted it using CLI
➜  demo git:(master) ✗ confluent iam service-account delete sa-nvznxv
Deleted service account "sa-nvznxv".
  1. When I run terraform apply (while deleted SA is still in TF state) I can see:
➜  demo git:(master) ✗ terraform plan                                
confluent_service_account.test: Refreshing state... [id=sa-v73xn5]

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # confluent_service_account.test will be created
  + resource "confluent_service_account" "test" {
      + api_version  = (known after apply)
      + description  = "Service Account for orders app"
      + display_name = "orders-app-sa123"
      + id           = (known after apply)
      + kind         = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.

------------------------------------------------------------------------

Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
  1. When I run terraform apply, I can see
confluent_service_account.test: Refreshing state... [id=sa-nvznxv]
confluent_service_account.test: Creating...
confluent_service_account.test: Creation complete after 1s [id=sa-v73xn5]
  1. And the only SA in TF state has sa-v73xn5 now.

Let me know if that makes sense.

from terraform-provider-confluent.

linouk23 avatar linouk23 commented on May 30, 2024

👋 @neuweiler, could you take a look at ⬆️ ?

from terraform-provider-confluent.

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.