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

Error missing expected { when updating the provider #697

Closed
igoratencompass opened this issue Mar 16, 2022 · 4 comments
Closed

Error missing expected { when updating the provider #697

igoratencompass opened this issue Mar 16, 2022 · 4 comments
Labels

Comments

@igoratencompass
Copy link

When upgrading the provider version like this:

    mongodbatlas = {
      source  = "mongodb/mongodbatlas"
-     version = "~> 0.9.1"
+     version = "~> 1.0.1"
    }

we end up with the following error during the plan phase:

│ Error: missing expected {
│ 
│   with module.mongodb-atlas["env"].mongodbatlas_cloud_provider_access.atlas[0],
│   on ../terraform-modules/modules/mongodb-atlas/main.tf line 195, in resource "mongodbatlas_cloud_provider_access" "atlas":
│  195: resource "mongodbatlas_cloud_provider_access" "atlas" {
│ 

Please see this link https://stackoverflow.com/questions/68648971/terraform-plan-error-missing-expected where an issue with data schema migration is mentioned as probable cause of the error. Modifying the state file as explained in the link fixes the plan issue.

Thanks

@themantissa
Copy link
Collaborator

@igoratencompass thank you for the report. We'll take a look at this.

@themantissa
Copy link
Collaborator

Internal ticket INTMDB-309

@themantissa
Copy link
Collaborator

@igoratencompass this is corrected in version 1.4.0, which is now available as a pre-release version in this repo. We will release it tomorrow.

@themantissa
Copy link
Collaborator

@igoratencompass this is now out in 1.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants