virtualjj / automated-openvpnas

AWS CloudFormation template to automate a more secure deployment of the OpenVPN Access Server Community Edition.
MIT License
21 stars 17 forks source link

Template validation error: Parameter OpenVPNASDNSName #5

Closed rstormsf closed 7 years ago

rstormsf commented 7 years ago

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

virtualjj commented 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.

image

image

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.