Skip to content

Tokens - Continually being destroyed and replaced #8

@Shahbaz-mahmood123

Description

@Shahbaz-mahmood123

Tokens are continously being destroyed and replaced after creation or every plan or apply.

  # seqera_tokens.my_tokens is tainted, so must be replaced
-/+ resource "seqera_tokens" "my_tokens" {
      ~ access_key   = "eyJ0aWQiOiAxMTkzMn0uZGRiNTJlYmZhNmNiNTQ5NDQ4YjQ3ZjAyYTljYjBjNTQ2MWU5MGJkYw==" -> (known after apply)
      + basic_auth   = (known after apply)
      ~ date_created = "2025-06-24T13:08:14Z" -> (known after apply)
      ~ id           = 11935 -> (known after apply)
      ~ last_used    = "2025-06-27T13:10:29Z" -> (known after apply)
      ~ name         = "terraform-provider-token" -> "terraform-test-token"
      ~ token        = {
          + basic_auth   = (known after apply)
          ~ date_created = "2025-06-24T10:58:42.964704495Z" -> (known after apply)
          ~ id           = 11932 -> (known after apply)
          + last_used    = (known after apply)
          ~ name         = "terraform-test-token" -> (known after apply)
        } -> (known after apply)
    }

  # seqera_tokens.token will be destroyed
  # (because seqera_tokens.token is not in configuration)
  - resource "seqera_tokens" "token" {
      - access_key   = "eyJ0aWQiOiAxMTkyNX0uN2IyMmMzMTI2MWRmMDA3ZDZkY2NiNTllNWE2NWMwMzQxZDI0ZWIyOA==" -> null
      - date_created = "2025-06-24T13:08:14Z" -> null
      - id           = 11935 -> null
      - last_used    = "2025-06-27T13:10:29Z" -> null
      - name         = "terraform-provider-token" -> null
      - token        = {
          - date_created = "2025-06-23T22:03:43.501192434Z" -> null
          - id           = 11925 -> null
          - name         = "test_token" -> null
        } -> null
      - token_id     = 3 -> null
    }

Plan: 3 to add, 1 to change, 2 to destroy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions