output iam-user-name { value = aws_iam_user.iam-user.name } output iam-user-arn { value = aws_iam_user.iam-user.arn } output iam-user-pass { value = try(aws_iam_user_login_profile.iam-user-profile[0].encrypted_password, "") } output iam-user-access-key { value = try(aws_iam_access_key.iam-user-access-key[0].id, "") } output iam-user-secret-key { value = try(aws_iam_access_key.iam-user-access-key[0].encrypted_secret, "") }