How can I create and use a three-level map in mappings section in CloudFormation templete?
Fn::FindInMap can be used only for two-level map. Ref: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html
Want to determine resource type based on cellName, domain, and realm. Something like:
Mappings:
ElastiCacheNodeTypeMapping:
cell1:
beta:
us-east-1: cache.m6g.large
us-west-2: cache.m6g.large
eu-west-1: cache.m6g.2xlarge
prod:
us-east-1: cache.r6g.24xlarge
cell2:
beta:
us-east-1: cache.m6g.large
us-west-2: cache.m6g.large
eu-west-1: cache.m6g.large
prod:
us-east-1: cache.r6g.24xlarge