-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge template files into a single file #487
Conversation
ab57423
to
e427eba
Compare
Would people have anything that relies on the JSON URL that couldn’t be switched to YML, such as any Terraform code etc? Probably not. Once we push this it’d start returning a 404 and then they’d go to the releases or readme to see what’s up perhaps? |
Sounds like a good change tho, now that AWS has native YML. Less transforms the better. |
There isn't anything that wouldn't support YAML, I don't think. The Terraform stuff just delegates to Cloudformation which accepts either. The gnarly thing with removing the I think I'd probably lean in that direction. |
Old URLs in readmes wont last forever, so I don’t reckon it’s a biggie. Especially if the JSON files are attached to the release in GitHub. It might confuse people in the future if they accidentally find the URL from somewhere and use it thinking they’d get the latest version 🤷🏼♂️ Or keep it around for a while? 🤷🏼♂️ |
Several teams rely on auto-updaters @toolmantim that update their stacks periodically. Removing https://s3.amazonaws.com/buildkite-aws-stack/latest/aws-stack.json might entirely break those updaters, vs it requiring manual intervention to change the bucket (as ours will). I'm torn on which is better 🤔 |
That isn't a thing presently, is it? |
Oh, there are versioned urls in the releases, which will still work. |
How about we drop support for |
ecb9013
to
993f299
Compare
Currently we use some javascript to compile various templates down into a single file. This adds more complexity than it's worth.
This rolls things back into a single template and uses some shell magic to merge the mappings.yml file into the main template.
The major implication of this is that we drop support for our .json urls, for instance previously https://s3.amazonaws.com/buildkite-aws-stack/aws-stack.json and https://s3.amazonaws.com/buildkite-aws-stack/aws-stack.yml were the same thing.
Thoughts on this @toolmantim?