deploy_helpers

aws_cloudformation.deploy_helpers.detect_template_type(template: str) str[source]
Returns

“json” or “yaml”

aws_cloudformation.deploy_helpers.upload_template_to_s3(bsm: boto_session_manager.manager.BotoSesManager, template: str, bucket: str, prefix: Optional[str] = None, verbose: bool = True) str[source]

Upload the CloudFormation template body to S3 before deployment. The target location is: s3://${bucket}/${prefix}/${md5_of_template_body}.${json_or_yaml}.

Parameters
  • bsmboto_session_manager.BotoSesManager object

  • template – template Body in string

  • bucket – s3 bucket name

  • prefix – s3 prefix

Returns

the template url (NOT s3 uri) for the template uploads.