You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating several custom db roles at the same time with mongodbatlas_custom_db_role, seems like the provider is not waiting long enough or retrying to get the return confirmation of resource creation.
mongodbatlas_custom_db_role.db_role["db1"]: Creating...
mongodbatlas_custom_db_role.db_role["db4"]: Creating...
mongodbatlas_custom_db_role.db_role["db2"]: Creating...
mongodbatlas_custom_db_role.db_role["db5"]: Creating...
mongodbatlas_custom_db_role.db_role["db3"]: Creating...
mongodbatlas_custom_db_role.db_role["db3"]: Creation complete after 1s [id=cmVjdF9pZA==:NWU0ZWMyOGJiYTRmNDEzMTk0ZGYxOTR9sZV9uYW1l:UkVBRF9fZGIz]
mongodbatlas_custom_db_role.db_role["db1"]: Creation complete after 1s [id=cHJvaF9pZA==:NWU0ZWMyOGJiYTRmNDEzMTk0ZGYxOTR9sZV9uYW1l:UkVBRF9fZGIx]
mongodbatlas_custom_db_role.db_role["db2"]: Creation complete after 1s [id=cHJvamVjZA==:NWU0ZWMyOGJiYTRmNDEzMTk0ZGYxOTR9sZV9uYW1l:UkVBRF9fZGIy]
Error: error creating custom db role: POST https://cloud.mongodb.com/api/atlas/v1.0/groups/XXXXXXXXXXXXX/customDBRoles/roles: 404 (request "Not Found") The specified custom db role READ__db4 does not exist.
on custom_db_roles.tf line 20, in resource "mongodbatlas_custom_db_role" "db_role":
20: resource "mongodbatlas_custom_db_role" "db_role" {
Error: error creating custom db role: POST https://cloud.mongodb.com/api/atlas/v1.0/groups/XXXXXXXXXXXXX/customDBRoles/roles: 404 (request "Not Found") The specified custom db role READ__db5 does not exist.
on custom_db_roles.tf line 20, in resource "mongodbatlas_custom_db_role" "db_role":
20: resource "mongodbatlas_custom_db_role" "db_role" {
Applying a second time works.
In case of creating a lot of resources at the same time, retry should be implemented in every resource types as it has been done with replicasets or whitelists creation ?
Mentioning depends_on seems to be a possible workaround in the meanwhile :
@bauerben thank you for the report. We'll look to improve the retry experience going forward by your workaround for now with depends_on seems solid. @marinsalinas and @PacoDw, thoughts on depends_on as a documented workaround until we have time to schedule in retry work?
When creating several custom db roles at the same time with mongodbatlas_custom_db_role, seems like the provider is not waiting long enough or retrying to get the return confirmation of resource creation.
Terraform source:
Terraform apply results in code 404 :
Applying a second time works.
In case of creating a lot of resources at the same time, retry should be implemented in every resource types as it has been done with replicasets or whitelists creation ?
Mentioning
depends_on
seems to be a possible workaround in the meanwhile :The text was updated successfully, but these errors were encountered: