Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate entries on each reapply #571

Closed
cloudlady911 opened this issue Nov 2, 2023 · 1 comment
Closed

duplicate entries on each reapply #571

cloudlady911 opened this issue Nov 2, 2023 · 1 comment

Comments

@cloudlady911
Copy link

cloudlady911 commented Nov 2, 2023

Describe the bug
I am trying to create variables in my Octo projects

Steps to reproduce

  1. Create definition in octopus.tf
## efs sg to PSR IAC Project
resource "octopusdeploy_variable" "efs-sg" {
  owner_id  = "Projects-383"
  type      = "String"
  name      = "Project.EFS.SG"
  value     = aws_security_group.efs_access_sg.id
}
  1. Apply
  2. Project.EFS.SG exists with correct security group id
  3. Reapply
  4. Previously created variable now has two identical values
  5. Reapply
  6. Same variable now has 3 identical values

Expected behavior
the system should realize that this is an unchanged item and not modify it.

logs:
`# octopusdeploy_variable.vpc_id will be created
November 2nd 2023 11:22:03Info

  • resource "octopusdeploy_variable" "vpc_id" {
    November 2nd 2023 11:22:03Info
    • encrypted_value = (known after apply)
      November 2nd 2023 11:22:03Info
    • id = (known after apply)
      November 2nd 2023 11:22:03Info
    • is_editable = true
      November 2nd 2023 11:22:03Info
    • is_sensitive = false
      November 2nd 2023 11:22:03Info
    • key_fingerprint = (known after apply)
      November 2nd 2023 11:22:03Info
    • name = "Project.VPC.ID"
      November 2nd 2023 11:22:03Info
    • owner_id = "Projects-384"
      November 2nd 2023 11:22:03Info
    • space_id = (known after apply)
      November 2nd 2023 11:22:03Info
    • type = "String"
      November 2nd 2023 11:22:03Info
    • value = "vpc-032fd1fb0f598ee71"
      November 2nd 2023 11:22:03Info
      } `

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment and versions:

  • OS: linux
  • Octopus Server Version: 2023.2.12673
  • Terraform Version: 1.6.2
  • Octopus Terraform Provider Version: Terraform_Version=1.6.2

Additional context
Add any other context about the problem here.

@mjhilton
Copy link
Contributor

Duplicates #212

There is more discussion and reproduction steps on the earlier issue #212, including a workaround which might help.

@mjhilton mjhilton closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants