Skip to content

Commit

Permalink
feat: adding the ability to define the relay state url (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 authored Jul 5, 2024
1 parent 76d5720 commit d2c4a93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module "permissionset" {
| <a name="input_customer_managed_policy_references"></a> [customer\_managed\_policy\_references](#input\_customer\_managed\_policy\_references) | The list of customer managed policy references to be attached to the permission set | <pre>list(object({<br> name = string<br> path = optional(string, "/")<br> }))</pre> | `[]` | no |
| <a name="input_managed_boundary_policy_arns"></a> [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 |
| <a name="input_managed_policy_arns"></a> [managed\_policy\_arns](#input\_managed\_policy\_arns) | The list of managed policy arns to be attached to the permission set | `list(string)` | `[]` | no |
| <a name="input_relay_state"></a> [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 |
| <a name="input_session_duration"></a> [session\_duration](#input\_session\_duration) | The duration of the session | `string` | `"PT2H"` | no |

## Outputs
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2c4a93

Please sign in to comment.