diff --git a/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template b/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template index d5e3a147..4dac94cc 100644 --- a/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template +++ b/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template @@ -46,9 +46,9 @@ Parameters: OpenViduSecret: Description: "Secret to connect to this OpenVidu Platform. No whitespaces or quotations allowed" Type: String - AllowedPattern: ^((?!")(?! ).)+$ + AllowedPattern: ^[a-zA-Z0-9_-]+$ NoEcho: true - ConstraintDescription: OpenVidu Secret is mandatory + ConstraintDescription: "Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')" # EC2 Instance configuration diff --git a/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template b/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template index 9b913da4..14f4211f 100644 --- a/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template +++ b/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template @@ -70,9 +70,9 @@ Parameters: OpenViduSecret: Description: "Secret to connect to this OpenVidu Platform. No whitespaces or quotations allowed" Type: String - AllowedPattern: ^((?!")(?! ).)+$ + AllowedPattern: ^[a-zA-Z0-9_-]+$ NoEcho: true - ConstraintDescription: OpenVidu Secret is mandatory (no whitespaces or quotations allowed) + ConstraintDescription: "Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')" MediaNodesStartNumber: Description: "How many Media Nodes do you want on startup (EC2 instances will be launched)"