terraform-provider-octopusdeploy
terraform-provider-octopusdeploy copied to clipboard
duplicate entries on each reapply
Describe the bug I am trying to create variables in my Octo projects
Steps to reproduce
- 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
}
- Apply
- Project.EFS.SG exists with correct security group id
- Reapply
- Previously created variable now has two identical values
- Reapply
- 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.
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.