Skip to content

Commit df8953b

Browse files
authored
🐛 Less stringent regex for AWS tag value (#5155)
1 parent 32bdae6 commit df8953b

File tree

1 file changed

+1
-1
lines changed
  • packages/aws-library/src/aws_library/ec2

1 file changed

+1
-1
lines changed

packages/aws-library/src/aws_library/ec2/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class AWSTagKey(ConstrainedStr):
7272
class AWSTagValue(ConstrainedStr):
7373
# see [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-restrictions]
7474
# quotes []{} were added as it allows to json encode. it seems to be accepted as a value
75-
regex = re.compile(r"^[a-zA-Z0-9\s\+\-=\._:/@\"\'\[\]\{\}]{0,256}$")
75+
regex = re.compile(r"^[a-zA-Z0-9\s\+\-=\.,_:/@\"\'\[\]\{\}]{0,256}$")
7676

7777

7878
EC2Tags: TypeAlias = dict[AWSTagKey, AWSTagValue]

0 commit comments

Comments
 (0)