Skip to content

Commit

Permalink
style: linter pass
Browse files Browse the repository at this point in the history
  • Loading branch information
cilindrox committed Feb 5, 2025
1 parent ab11e7a commit d99830c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ resource "aws_ssoadmin_application_assignment" "sso_apps_users_assignments" {
}

# SSO Instance Access Control Attributes
resource "aws_ssoadmin_instance_access_control_attributes" "sso_access_control_attributes" {
count = length(var.sso_instance_access_control_attributes) <= 0 ? 0 : 1
resource "aws_ssoadmin_instance_access_control_attributes" "sso_access_control_attributes" {
count = length(var.sso_instance_access_control_attributes) <= 0 ? 0 : 1
instance_arn = local.ssoadmin_instance_arn
dynamic "attribute" {
for_each = var.sso_instance_access_control_attributes
content {
key = attribute.key
key = attribute.key
value {
source = attribute.value.source
}
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ variable "sso_instance_access_control_attributes" {
description = "List of attributes for access control. This is used to create the enable and use attributes for access control."
type = list(object({
attribute_name = string
source = set(string)
source = set(string)
}))
default = []
validation {
Expand All @@ -166,7 +166,7 @@ variable "sso_instance_access_control_attributes" {
condition = alltrue([
for attr in var.sso_instance_access_control_attributes :
attr.source != null &&
length(attr.source) > 0 && # checks if the set is not empty
length(attr.source) > 0 && # checks if the set is not empty
alltrue([for s in attr.source : s != ""]) # checks no empty strings in set
])
error_message = "The attribute source is mandatory and must contain non-empty strings."
Expand Down

0 comments on commit d99830c

Please sign in to comment.