install cfhighlander gem
gem install cfhighlander
or via docker
docker pull theonestack/cfhighlander
compiling the templates
cfcompile s3-cloudfront
compiling with the vaildate fag to validate the templates
cfcompile s3-cloudfront --validate
publish the templates to s3
cfpublish s3-cloudfront --version latest