A given project_id can only be assigned to one repository_id. But if we define 2 different dbt_clour_repository resources linked to the same project_id in our config, the state gets messed up.
After a terraform apply, both dbt_cloud_repository.repo1 and dbt_cloud_repository.repo2 get assigned the same id and repository_id in the state, making following calls to terraform apply behave oddly and sometimes breaking the dbt Cloud config.
The immediate solution is to only have one single dbt_cloud_repository per project_id but the described behaviour makes me think that there might be ways to enhance/fix the code to avoid two resources to be given the same ids
This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
A given
project_id
can only be assigned to onerepository_id
. But if we define 2 different dbt_clour_repository resources linked to the sameproject_id
in our config, the state gets messed up.e.g. with the following config
After a
terraform apply
, bothdbt_cloud_repository.repo1
anddbt_cloud_repository.repo2
get assigned the sameid
andrepository_id
in the state, making following calls toterraform apply
behave oddly and sometimes breaking the dbt Cloud config.The immediate solution is to only have one single
dbt_cloud_repository
perproject_id
but the described behaviour makes me think that there might be ways to enhance/fix the code to avoid two resources to be given the sameid
s