Skip to content

Error when using cloudsmith_repository_privileges #67

@jodoscott

Description

@jodoscott

Terraform Version

Terraform v1.6.5
on linux_amd64

  • provider registry.terraform.io/cloudsmith-io/cloudsmith v0.0.30

Affected Resource(s)

Please list the resources as a list, for example:

  • cloudsmith_repository_privileges

Terraform Configuration Files

resource "cloudsmith_repository_privileges" "service_accounts" {
  for_each     = cloudsmith_repository.organization
  organization = var.cloudsmith_organization
  repository   = each.value.name

  service {
    privilege = "Write"
    slug      = cloudsmith_service.organization[each.value.name].slug
  }
}

Expected Behavior

The apply should have completed successfully.

Actual Behavior

Resources were created in cloudsmith, but apply produced an error.

Error: Provider produced inconsistent result after apply

When applying changes to
cloudsmith_repository_privileges.service_accounts["<service_account_name>"],
provider "provider[\"registry.terraform.io/cloudsmith-io/cloudsmith\"]"
produced an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

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