aws-samples/ecs-refarch-cloudformation

Specify a Bucket Name

piedmont01 opened this issue · 3 comments

Add the following parameter in the master.yaml.

Parameters:
  BucketName:
    Type: String
    Description: Name of bucket containing YAML scripts needed to build cluster

And replace the TemplateURL

TemplateURL: !Sub https://s3.amazonaws.com/${BucketName}/infrastructure/vpc.yaml
laser commented

Good call. I found myself doing this very thing in my (forked) project.

👍

Good idea - I suspect most people that fork this repo end up doing similar. I'll get this changed hopefully later this week (unless you want to submit a pull-request in the meantime).

I updated the master template to use relative paths and then was able to use aws cloudformation package and aws cloudformation deploy and that simplified the upload and bucket references. HTH.