From d2c4a930c7066948acf14c4fef7a7236a9ba7480 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Fri, 5 Jul 2024 13:09:04 +0100 Subject: [PATCH] feat: adding the ability to define the relay state url (#21) --- README.md | 1 + main.tf | 1 + variables.tf | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 1c2b9d5..58fa692 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ module "permissionset" { | [customer\_managed\_policy\_references](#input\_customer\_managed\_policy\_references) | The list of customer managed policy references to be attached to the permission set |
list(object({
name = string
path = optional(string, "/")
}))
| `[]` | no | | [managed\_boundary\_policy\_arns](#input\_managed\_boundary\_policy\_arns) | The list of managed boundary policy arns to be attached to the permission set | `list(string)` | `[]` | no | | [managed\_policy\_arns](#input\_managed\_policy\_arns) | The list of managed policy arns to be attached to the permission set | `list(string)` | `[]` | no | +| [relay\_state](#input\_relay\_state) | The relay state of the permission set, used to redirect users to a specific page after login | `string` | `null` | no | | [session\_duration](#input\_session\_duration) | The duration of the session | `string` | `"PT2H"` | no | ## Outputs diff --git a/main.tf b/main.tf index ff3b8e2..53bd974 100644 --- a/main.tf +++ b/main.tf @@ -4,6 +4,7 @@ resource "aws_ssoadmin_permission_set" "this" { instance_arn = var.instance_arn name = var.name description = var.description + relay_state = var.relay_state session_duration = var.session_duration tags = var.tags } diff --git a/variables.tf b/variables.tf index 0e6d368..ae7c33e 100644 --- a/variables.tf +++ b/variables.tf @@ -32,6 +32,12 @@ variable "customer_managed_policy_references" { default = [] } +variable "relay_state" { + description = "The relay state of the permission set, used to redirect users to a specific page after login" + type = string + default = null +} + variable "description" { description = "The description of this permission set to be created" type = string