diff --git a/main.tf b/main.tf index 634622f..ef9956a 100755 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ locals { enabled = coalesce(var.enabled, module.this.enabled, true) name = coalesce(var.name, module.this.name, "idp-${random_string.cognito_userpool_random_suffix.result}") - sms_role_arn = coalesce(var.sms_config.sns_caller_arn, aws_iam_role.sms.arn) + sms_role_arn = coalesce(var.sms_config.sns_caller_arn, aws_iam_role.sms[0].arn) sms_role_external_id = coalesce(var.sms_config.external_id, random_uuid.sms_role_external_id.result) }