Get AWS values using pseudo parameters - AWS CloudFormation
Pseudo parameters are built-in variables that provide contextual information about your AWS account, Region, and other contextual data. Use them with the Ref or Sub functions to avoid hard-coding values in your templates.