17 lines
553 B
HCL
17 lines
553 B
HCL
data "aws_ssoadmin_instances" "sso1" {}
|
|
|
|
resource "aws_ssoadmin_permission_set" "pset" {
|
|
name = var.pset-name
|
|
description = var.pset-desc
|
|
instance_arn = tolist(data.aws_ssoadmin_instances.sso1.arns)[0]
|
|
session_duration = var.pset-session-duration
|
|
tags = var.default-tags
|
|
}
|
|
|
|
resource "aws_ssoadmin_managed_policy_attachment" "psetatt" {
|
|
instance_arn = tolist(data.aws_ssoadmin_instances.sso1.arns)[0]
|
|
managed_policy_arn = var.pset-managed-policy-arn
|
|
permission_set_arn = aws_ssoadmin_permission_set.pset.arn
|
|
}
|
|
|