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

Receiving invalid attribute error on terraform apply with MongoDB Atlas Maintenance Window resource #1223

Open
ammarasheikh opened this issue Jun 8, 2023 · 5 comments
Labels
not_stale Not stale issue or PR

Comments

@ammarasheikh
Copy link

Hi,
I am receiving below error while trying to configure a maintenance window with number of deferrals.
Error: error updating the MongoDB Atlas Maintenance Window (64820379c00d74100eafcd2e): PATCH https://cloud.mongodb.com/api/atlas/v1.0/groups/64820379c00d74100eafcd2e/maintenanceWindow: 400 (request "INVALID_ATTRIBUTE") Invalid attribute numberOfDeferrals specified.

Terraform CLI and Terraform MongoDB Atlas Provider Version

# Copy-paste your version info here

Terraform Configuration File

# Copy-paste your configuration info here

maintenance_window = {
day_of_week = 3
hour_of_day = 4
number_of_deferrals = 1
#defer = true
#auto_defer = true
#auto_defer_once_enabled = true would be triggered.
}

Steps to Reproduce

Expected Behavior

Actual Behavior

Debug Output

Crash Output

Additional Context

References

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Thanks for opening this issue. The ticket INTMDB-859 was created for internal tracking.

@Zuhairahmed
Copy link
Collaborator

hi @ammarasheikh can you attempt to create this resource without providing number_of_deferrals parameters in your Terraform Script as an interim solution and let us know if that works? we are waiting on longer term fix for this parameter and will share updates on this issue when they come in. thank you.

@Zuhairahmed Zuhairahmed added the not_stale Not stale issue or PR label Jun 8, 2023
@ammarasheikh
Copy link
Author

@Zuhairahmed it works fine if I don't provide number_of_deferrals
So I assume it is a known issue? Do you have an ETA when it will be fixed? Please let me know. Thanks

@Zuhairahmed
Copy link
Collaborator

Zuhairahmed commented Jun 8, 2023

@ammarasheikh for more details on how to use this resource see our docs here: https://www.mongodb.com/docs/atlas/tutorial/cluster-maintenance-window/

Would highlight that users can defer a single Atlas project maintenance event up to two times. Hence the number_of_deferrals parameter should simply be a tracker of the number of deferrals that a user has made and generally not something that a user should be able to adjust directly. We are exploring ways in how best to update this in our Terraform resource and will update this ticket once an ideal solution has been found. Hope this helps. Internal tracking INTMDB-703

@ammarasheikh
Copy link
Author

@Zuhairahmed thanks for providing more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not_stale Not stale issue or PR
Projects
None yet
Development

No branches or pull requests

2 participants