Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CloudFormation File Helper
<?php
echo '{"Fn::Base64": {"Fn::Join": ["\n", ' . json_encode(file($argv[1], FILE_IGNORE_NEW_LINES), JSON_PRETTY_PRINT) . ']}}';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment