What would be a good strategy for the defaults for mappings?
those.
I have a parameter country
Based on this country, I refer to DNS using mappings
"Mappings" : {
"DNS":{
"us" : {"dns" : "mypage.us.com", "ttl" : "600"},
"mx" : {"dns" : "mypage.default.com", "ttl" : "300"},
"ar" : {"dns" : "mypage.default.com", "ttl" : "300"},
"br" : {"dns" : "mypage.default.com", "ttl" : "300"}
}
}
If usit was displayed:
{ "Fn::FindInMap" : [ "DNS", { "Ref" : "country" }, "dns" ]}
I get "mypage.us.com"for other countries in which I created a huge list of countries with a default value mypage.default.com, in the future these values will change, and we will add more countries, is there a better approach to this?
source
share