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

mongodbatlas_third_party_integration - api_token keeps updating on every apply #963

Closed
legal90 opened this issue Dec 12, 2022 · 5 comments
Closed

Comments

@legal90
Copy link

legal90 commented Dec 12, 2022

Terraform CLI and Terraform MongoDB Atlas Provider Version

Terraform v1.3.6
+ provider registry.terraform.io/mongodb/mongodbatlas v1.6.1

Terraform Configuration File

resource "mongodbatlas_third_party_integration" "atlas_datadog" {
  project_id = mongodbatlas_project.atlas_project.id
  type = "DATADOG"
  api_key = var.datadog_api_key
  region = var.datadog_region
}

Expected Behavior

No updates on subsequent terraform apply

Actual Behavior

terraform apply always keeps offering to update the api_key attribute:

  # mongodbatlas_third_party_integration.atlas_datadog will be updated in-place
  ~ resource "mongodbatlas_third_party_integration" "atlas_datadog" {
      ~ api_key                     = (sensitive value)
        id                          = "cHJvamVjdF9pZA==:NWY1OGFhMjczYzE1YzQ2NGNkNTdmYWVm-dHlwZQ==:REFUQURPRw=="
        # (9 unchanged attributes hidden)
    }

Additional Context

The symptoms are exactly the same as was described in #863 (comment).
The value of api_key In the terraform state dumped by terraform state pull is masked and looks like ****************************a1b2c3.
terraform apply doesn't fix it.

References

This issue looks similar to #863

@martinstibbe
Copy link
Contributor

martinstibbe commented Dec 13, 2022

@legal90 Will capture this fix in internal engineering ticket INTMDB-519

@Zuhairahmed
Copy link
Collaborator

@legal90 as an update, this issue has been picked up in current sprint cycle and you can expect fix to be included as part of v1.8.0 release next week. will let you know when latest release has been published to the Terraform Registry.

@Zuhairahmed
Copy link
Collaborator

@legal90 we just released v1.8.0, feel free to give it try! issue should have been resolved.

@Zuhairahmed Zuhairahmed removed the not_stale Not stale issue or PR label Jan 27, 2023
@legal90
Copy link
Author

legal90 commented Jan 27, 2023

@Zuhairahmed, thank you very much! I confirm that this issue is fixed in v1.8.0.
There is no such diff in terraform plan or apply anymore 👍

@legal90 legal90 closed this as completed Jan 27, 2023
@Zuhairahmed
Copy link
Collaborator

wonderful news thanks for the confirmation @legal90!

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

3 participants