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

'tags' not working for cluster #1619

Closed
garyburgmann opened this issue Nov 14, 2023 · 2 comments
Closed

'tags' not working for cluster #1619

garyburgmann opened this issue Nov 14, 2023 · 2 comments

Comments

@garyburgmann
Copy link
Contributor

garyburgmann commented Nov 14, 2023

tags were meant to be fixed as of this change

which was included with this release

however

terraform {
  required_providers {
...
    mongodbatlas = {
      source = "mongodb/mongodbatlas"
      version = "1.12.3"
    }
...
  }
}

the change is picked up in plan:

Terraform will perform the following actions:
  # mongodbatlas_advanced_cluster.cluster will be updated in-place
  ~ resource "mongodbatlas_advanced_cluster" "cluster" {
        id                             = "Y2x1c3Rlcl9pZA==:NjU1MTc4ODljZDZjMTMyZDVhNDg1N2Ez-Y2x1c3Rlcl9uYW1l:dGVycmFmb3JtLW1vbmdvZGItcWE=-cHJvamVjdF9pZA==:NjU0ZGJhZmJlNWE4MGQxZmVjMGJhMjI0"
        name                           = "terraform-mongodb-qa"
        # (17 unchanged attributes hidden)
      + tags {
          + key   = "Application"
          + value = "terraform-mongodb"
        }
      + tags {
          + key   = "ContainsUserData"
          + value = "No"
        }
      + tags {
          + key   = "Domain"
          + value = "domain-infrastructure"
        }
      + tags {
          + key   = "Environment"
          + value = "QA"
        }
      + tags {
          + key   = "Location"
          + value = "AUSTRALIA_EAST | US_WEST_3 | EUROPE_NORTH"
        }
      + tags {
          + key   = "Team"
          + value = "Go1-Team-DevOps"
        }
        # (2 unchanged blocks hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.

appears to have done something on apply:

Acquiring state lock. This may take a few moments...
mongodbatlas_advanced_cluster.cluster: Modifying... [id=Y2x1c3Rlcl9pZA==:NjU1MTc4ODljZDZjMTMyZDVhNDg1N2Ez-Y2x1c3Rlcl9uYW1l:dGVycmFmb3JtLW1vbmdvZGItcWE=-cHJvamVjdF9pZA==:NjU0ZGJhZmJlNWE4MGQxZmVjMGJhMjI0]
mongodbatlas_advanced_cluster.cluster: Modifications complete after 4s [id=Y2x1c3Rlcl9pZA==:NjU1MTc4ODljZDZjMTMyZDVhNDg1N2Ez-Y2x1c3Rlcl9uYW1l:dGVycmFmb3JtLW1vbmdvZGItcWE=-cHJvamVjdF9pZA==:NjU0ZGJhZmJlNWE4MGQxZmVjMGJhMjI0]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

yet produces nothing in Atlas

image

subsequent plan/apply execution keeps performing the same actions with no result

Copy link
Contributor

Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:

  • Terraform configuration file used to reproduce the issue
  • Terraform log files from the run where the issue occurred
  • Terraform Atlas provider version used to reproduce the issue
  • Terraform version used to reproduce the issue
  • Confirmation if Terraform OSS, Terraform Cloud, or Terraform Enterprise deployment

The ticket INTMDB-1283 was created for internal tracking.

@marcosuma
Copy link
Collaborator

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