Closed rstormsf closed 7 years ago
Oops (again!) - forgot to remove the Optional tag.
Do you think I should keep it optional or keep a regex constraint?
I use http://rubular.com/ to test out my REGEX on the line in question and thought it works but looks like no. :(
See if you can test your DNS name in Rubular but note that you have the remove the escape in front of the period. CloudFormation requires some characters to be escaped or the stack won't launch.
Maybe its best I just remove the AllowedPattern parameter constraint from the template completely? My rationale for using it was to avoid errors like the one you got but might be too many use cases to catch all.
Template validation error: Parameter OpenVPNASDNSName failed to satisfy constraint: Must be a valid RFC-952 or RFC-1123 DNS hostname.
says it's optional, but it's required