File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -319,13 +319,13 @@ resource "aws_ssoadmin_application_assignment" "sso_apps_users_assignments" {
319
319
}
320
320
321
321
# SSO Instance Access Control Attributes
322
- resource "aws_ssoadmin_instance_access_control_attributes" "sso_access_control_attributes" {
323
- count = length (var. sso_instance_access_control_attributes ) <= 0 ? 0 : 1
322
+ resource "aws_ssoadmin_instance_access_control_attributes" "sso_access_control_attributes" {
323
+ count = length (var. sso_instance_access_control_attributes ) <= 0 ? 0 : 1
324
324
instance_arn = local. ssoadmin_instance_arn
325
325
dynamic "attribute" {
326
326
for_each = var. sso_instance_access_control_attributes
327
327
content {
328
- key = attribute. key
328
+ key = attribute. key
329
329
value {
330
330
source = attribute. value . source
331
331
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ variable "sso_instance_access_control_attributes" {
151
151
description = " List of attributes for access control. This is used to create the enable and use attributes for access control."
152
152
type = list (object ({
153
153
attribute_name = string
154
- source = set (string )
154
+ source = set (string )
155
155
}))
156
156
default = []
157
157
validation {
@@ -166,7 +166,7 @@ variable "sso_instance_access_control_attributes" {
166
166
condition = alltrue ([
167
167
for attr in var . sso_instance_access_control_attributes :
168
168
attr . source != null &&
169
- length (attr. source ) > 0 && # checks if the set is not empty
169
+ length (attr. source ) > 0 && # checks if the set is not empty
170
170
alltrue ([for s in attr . source : s != " " ]) # checks no empty strings in set
171
171
])
172
172
error_message = " The attribute source is mandatory and must contain non-empty strings."
You can’t perform that action at this time.
0 commit comments