Skip to content

Commit b5b333d

Browse files
authored
Reject more characters from a CloudFormation Stack name (#346)
Signed-off-by: Simon <[email protected]>
1 parent 7abdb8c commit b5b333d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python

src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/cloudformation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
max_attempts=10
2222
)
2323
)
24-
CFN_UNACCEPTED_CHARS = re.compile(r"[^-a-zA-Z0-9:/._+]")
24+
# A stack name can contain only alphanumeric characters (case sensitive) and hyphens.
25+
CFN_UNACCEPTED_CHARS = re.compile(r"[^-a-zA-Z0-9]")
2526

2627
class StackProperties:
2728
clean_stack_status = [

0 commit comments

Comments
 (0)