updating build script to use cloudformation template