ariga/terraform-provider-atlas

dev_db_url and variables

L0rdWyd3r opened this issue · 2 comments

Hello,
I get a warning when dev_db_url uses variables

dev_db_url = "mysql://root:pass@127.0.0.1:${random_integer.mysql_port.result}/${var.mysql_db_name}"
but when dev_db_url is defined as below, the problem does not occur.

dev_db_url = "mysql://root:pass@localhost:3310/main_db"

In both cases, however, the TCP connection to the database defined in dev_db_url works correctly, as well as the schema is applied correctly.

My only concern is these warnings, is there a chance to eliminate them in the next release ?

Regards

Hello @L0rdWyd3r, thank you for reporting the issue. It's falsy warning and it happens on the first time when the resource is being created. I already fixed it, and it should release in the next few days.

Close as duplicated of #41

Hello @giautm
Thanks a lot for the information, I will wait for the new version in that case :)

Cheers!