gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
158 stars 12 forks source link

Add boilerplate helper pathExists #80

Closed yorinasub17 closed 2 years ago

yorinasub17 commented 2 years ago

Use case

In the Architecture Catalog, we merge in the ECS Deploy Runner permissions into a YAML file to update the permissions after it has been rendered. However, all those updates will be lost if the user ever reruns the ecs-deploy-runner blueprint. To avoid this, these data yaml files should get special treatment to only render if there it doesn't already exist in the output folder, and this helper function is necessary to do that.

yorinasub17 commented 2 years ago

Thanks for review! Merging in now.