With release of asset definitions, you can create analyses and dashboards by passing in definitions instead of relying on templates. The below sample hasn’t been updated to use definition. Be sure to explore analysis and dashboard definitions on your own.
Launch the following sample by clicking the below button and following regular CloudFormation screens to create the stack.
It will setup a Data source, Data set, Template (visible only via API), Theme, Analysis and Dashboard in the region where you are running this stack. You can view the yaml code of this sample in CloudFormation designer.
Launch CloudFormation Sample