File tree Expand file tree Collapse file tree
apps/sim/lib/core/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -857,7 +857,9 @@ export function validateAirtableId(
857857 * - GovCloud: us-gov-east-1, us-gov-west-1
858858 * - China: cn-north-1, cn-northwest-1
859859 * - Israel: il-central-1
860- * - ISO partitions: us-iso-east-1, us-isob-east-1
860+ * - ISO partitions: us-iso-east-1, us-iso-west-1, us-isob-east-1
861+ * - Mexico: mx-central-1
862+ * - EU Sovereign Cloud: eu-isoe-west-1
861863 *
862864 * @param value - The AWS region to validate
863865 * @param paramName - Name of the parameter for error messages
@@ -883,7 +885,7 @@ export function validateAwsRegion(
883885 }
884886
885887 const awsRegionPattern =
886- / ^ ( a f | a p | c a | c n | e u | i l | m e | s a | u s | u s - g o v | u s - i s o | u s - i s o b ) - ( c e n t r a l | n o r t h | n o r t h e a s t | n o r t h w e s t | s o u t h | s o u t h e a s t | s o u t h w e s t | e a s t | w e s t ) - \d { 1 , 2 } $ /
888+ / ^ ( a f | a p | c a | c n | e u | e u - i s o e | i l | m e | m x | s a | u s | u s - g o v | u s - i s o | u s - i s o b ) - ( c e n t r a l | n o r t h | n o r t h e a s t | n o r t h w e s t | s o u t h | s o u t h e a s t | s o u t h w e s t | e a s t | w e s t ) - \d { 1 , 2 } $ /
887889
888890 if ( ! awsRegionPattern . test ( value ) ) {
889891 logger . warn ( 'Invalid AWS region format' , {
You can’t perform that action at this time.
0 commit comments