Add support for stack policies and upload to S3