Skip to content

Commit

Permalink
feat: add sticky_sessions and router_logs variables
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage committed Aug 18, 2023
1 parent 349027d commit 2d9f4bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
6 changes: 2 additions & 4 deletions app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
26 changes: 12 additions & 14 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
scalingo = {
source = "scalingo/scalingo"
version = "~> 2.1"
version = "~> 2.2"
}

environment = {
Expand Down

0 comments on commit 2d9f4bd

Please sign in to comment.