Using dynamic references to specify template values - AWS CloudFormation

Dynamic references provide a concise, powerful way for you to specify external values stored and managed in other services in your stack templates.