diff --git a/scm_integration.tf b/scm_integration.tf index 630edf9..4e4376a 100644 --- a/scm_integration.tf +++ b/scm_integration.tf @@ -23,7 +23,7 @@ resource "scalingo_scm_repo_link" "scm_repo_link" { # 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 + app = scalingo_app.app.id source = each.value.repo_url auth_integration_uuid = (each.value.integration_uuid != null @@ -34,11 +34,11 @@ resource "scalingo_scm_repo_link" "scm_repo_link" { auto_deploy_enabled = each.value.auto_deploy_enabled branch = each.value.branch - deploy_review_apps_enabled = var.review_apps.enabled - delete_on_close_enabled = var.review_apps.delete_on_close_enabled - hours_before_delete_on_close = var.review_apps.hours_before_delete_on_close - delete_stale_enabled = var.review_apps.delete_stale_enabled - hours_before_delete_stale = var.review_apps.hours_before_delete_stale - # will be available in v2.1.0 : - # automatic_creation_from_forks_allowed = var.review_apps.automatic_creation_from_forks_allowed + # Configuration for review apps + deploy_review_apps_enabled = var.review_apps.enabled + delete_on_close_enabled = var.review_apps.delete_on_close_enabled + hours_before_delete_on_close = var.review_apps.hours_before_delete_on_close + delete_stale_enabled = var.review_apps.delete_stale_enabled + hours_before_delete_stale = var.review_apps.hours_before_delete_stale + automatic_creation_from_forks_allowed = var.review_apps.automatic_creation_from_forks_allowed } diff --git a/versions.tf b/versions.tf index ba9c578..fd16199 100644 --- a/versions.tf +++ b/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = ">= 1.3.9, < 2.0.0" + required_version = ">= 1.3.0, < 2.0.0" required_providers { scalingo = { source = "scalingo/scalingo" - version = "~> 2.0" + version = "~> 2.1" } environment = {