I am using a condition in troposphere CF template, but unfortunately there are more than 10 conditions and AWS CF supports only 10 of them. The condition checks if the app name start with particular name. Is there a way to use regex in condition so I can write only one condition instead of 10, stating do something if the name start with appname*
I am adding the conditions for each role but since aws supports only 10, I cant add more than that.
conditions = {
"RoleEqualCollectors01" : Equals(
Ref(ThorRole),
"collectors01",
),
...,
...,
"RoleEqualCollectors22" : Equals(
Ref(ThorRole),
"collectors22",
),
"Collector" : Or(
Condition("RoleEqualCollectors01"),
...,
...,
Condition("RoleEqualCollectors22")
),
is there a way I can specify like this,
conditions = {
"RoleEqualCollectors" : Equals(
Ref(ThorRole),
"collectors*",
),
"Collector" : Or(
Condition("RoleEqualCollectors*"),
),