From d69459551ee9bb54045beb180ac8f04451c58698 Mon Sep 17 00:00:00 2001 From: Joseph Page Date: Tue, 16 May 2023 15:38:51 +0200 Subject: [PATCH] fix: replacement is forced when app slug name is used for scalingo_scm_repo_link --- scm_integration.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scm_integration.tf b/scm_integration.tf index de906c0..630edf9 100644 --- a/scm_integration.tf +++ b/scm_integration.tf @@ -21,7 +21,10 @@ data "scalingo_scm_integration" "scm_integration" { resource "scalingo_scm_repo_link" "scm_repo_link" { for_each = local.scm_integration - app = scalingo_app.app.name + # Due to a bug in the provider, we need to use the app id instead of the app name + # Link to the issue : https://github.com/Scalingo/terraform-provider-scalingo/issues/153 + app = scalingo_app.app.id + source = each.value.repo_url auth_integration_uuid = (each.value.integration_uuid != null ? each.value.integration_uuid