diff --git a/app.tf b/app.tf index 6d80771..7cbba62 100644 --- a/app.tf +++ b/app.tf @@ -10,10 +10,8 @@ resource "scalingo_app" "app" { stack_id = data.scalingo_stack.stack.id force_https = !var.authorize_unsecure_http - # router_logs and sticky_sessions are not yet supported by the provider, but will be in the future - # see https://github.com/Scalingo/terraform-provider-scalingo/issues/158 for tracking progress - # sticky_sessions = var.sticky_sessions - # router_logs = var.router_logs + sticky_sessions = var.sticky_sessions + router_logs = var.router_logs } resource "scalingo_container_type" "containers" { diff --git a/variables.tf b/variables.tf index 0541018..17707ec 100644 --- a/variables.tf +++ b/variables.tf @@ -36,21 +36,19 @@ variable "authorize_unsecure_http" { nullable = false } -# router_logs and sticky_sessions are not yet supported by the provider, but will be in the future -# see https://github.com/Scalingo/terraform-provider-scalingo/issues/158 for tracking progress -# variable "router_logs" { -# description = "When true, the router logs are included in the application logs." -# type = bool -# default = false -# nullable = false -# } +variable "router_logs" { + description = "When true, the router logs are included in the application logs." + type = bool + default = false + nullable = false +} -# variable "sticky_sessions" { -# description = "When true, sticky sessions are enabled." -# type = bool -# default = false -# nullable = false -# } +variable "sticky_sessions" { + description = "When true, sticky sessions are enabled." + type = bool + default = false + nullable = false +} variable "github_integration" { description = "Configuration of the GitHub integration of the application. Only one of github_integration or gitlab_integration can be set." diff --git a/versions.tf b/versions.tf index fd16199..d0e143b 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { scalingo = { source = "scalingo/scalingo" - version = "~> 2.1" + version = "~> 2.2" } environment = {