Finish docs for AWS IAM Auth, update ARN regex

This commit is contained in:
Tuan Dang
2024-05-03 17:20:44 -07:00
parent 5c4d35e30a
commit cbf8e041e9
7 changed files with 334 additions and 54 deletions
@@ -1,7 +1,7 @@
import { z } from "zod";
const twelveDigitRegex = /^\d{12}$/;
const arnRegex = /^arn:aws:iam::\d{12}:(user\/[A-Za-z0-9]+|role\/[A-Za-z0-9]+|\*)$/;
const arnRegex = /^arn:aws:iam::\d{12}:(user\/[\w-]+|role\/[\w-]+|\*)$/;
export const validateAccountIds = z
.string()