A good trick to see what the Cloudformation layout should be like is to create a pipeline that you know will work. Then use the CLI to retrieve the cloud information template.
aws codepipline get-pipeline --name <pipelinename>
You will receive the JSON of the Codepipeline resource. Several changes will be made, but from this you can see exactly what the syntax should be, and from there your template will be parameterized with the Codepipelines software.
source share