DDCP (Data Driven CodePipeline synthesizer) is designed to make dynamic CodePipeline configuration trivial. It is currently in a POC-like state and only supports CodeCommit and CodeBuild.
Please see Enhancement Issues for planned features and to submit any feature requests.
$ aws serverlessrepo create-cloud-formation-template --application-id arn:aws:serverlessrepo:us-west-1:901151029385:applications/ddcp
{
"Status": "PREPARING",
"TemplateId": "11111111-2222-3333-4444-555555555555",
"CreationTime": "2020-04-11T01:02:03.456Z",
"SemanticVersion": "1.0.0",
"ExpirationTime": "2020-04-11T07:02:03.456Z",
"ApplicationId": "arn:aws:serverlessrepo:us-west-1:901151029385:applications/ddcp",
"TemplateUrl": ""
}