Skip to content

Commit d99830c

Browse files
committed
style: linter pass
1 parent ab11e7a commit d99830c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ resource "aws_ssoadmin_application_assignment" "sso_apps_users_assignments" {
319319
}
320320

321321
# 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
324324
instance_arn = local.ssoadmin_instance_arn
325325
dynamic "attribute" {
326326
for_each = var.sso_instance_access_control_attributes
327327
content {
328-
key = attribute.key
328+
key = attribute.key
329329
value {
330330
source = attribute.value.source
331331
}

variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ variable "sso_instance_access_control_attributes" {
151151
description = "List of attributes for access control. This is used to create the enable and use attributes for access control."
152152
type = list(object({
153153
attribute_name = string
154-
source = set(string)
154+
source = set(string)
155155
}))
156156
default = []
157157
validation {
@@ -166,7 +166,7 @@ variable "sso_instance_access_control_attributes" {
166166
condition = alltrue([
167167
for attr in var.sso_instance_access_control_attributes :
168168
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
170170
alltrue([for s in attr.source : s != ""]) # checks no empty strings in set
171171
])
172172
error_message = "The attribute source is mandatory and must contain non-empty strings."

0 commit comments

Comments
 (0)