mardi 1 septembre 2015

Enforce AllowedPattern for parameter of type CommaDelimitedList in Cloudformation script

I'm trying to enforce an allowed pattern with regex on my parameter, but when I try to build my stack, I get the following error message:

Template validation error: Template error: Parameter 'myParam' AllowedPattern must be on a parameter of type String

This is my Parameter definition:

"myParam": {
   "Description": "this is my param",
   "Type": "CommaDelimitedList",
   "AllowedPattern": "\\+[0-9\\-\\ ]+",
   "MinLength": "1"
 }




Aucun commentaire:

Enregistrer un commentaire