realestate-com-au / stackup

a simple CLI and Ruby API for AWS CloudFormation
MIT License
97 stars 34 forks source link

Can remote parameters files be accessed? #42

Closed andrewoh531 closed 7 years ago

andrewoh531 commented 7 years ago

Documentation says so You can use either local files, or HTTP URLs, to specify inputs; stack template, parameters, etc. but when I attempt to access a parameters file from s3 I get the following error:

ERROR: cannot read "https://s3-ap-southeast-2.amazonaws.com/my-bucket-12345/dev-parameters.yml" - 403 Forbidden

mdub commented 7 years ago

Yes, you should be able to use remote URLs for parameters. They need to be world-readable, though.

Are you able to download your parameters file using curl, or a web-browser, @andrewoh531?

andrewoh531 commented 7 years ago

Oh right. No it's not public. Could it pull from a private bucket? Similar to this?

https://github.com/realestate-com-au/stackup/issues/37

mdub commented 7 years ago

Could it pull from a private bucket?

I'm afraid not. Pulling templates from private buckets is possible, because the UpdateStack API call supports a TemplateURL parameter. Similarly for StackPolicyURL. But there's no ParametersURL.