{"id":20724655,"url":"https://github.com/arhea/aws-userdata-handlebars","last_synced_at":"2025-09-04T19:28:50.185Z","repository":{"id":44012163,"uuid":"234650474","full_name":"arhea/aws-userdata-handlebars","owner":"arhea","description":"Use Handlebars templates in AWS CDK UserData","archived":false,"fork":false,"pushed_at":"2023-01-05T05:16:53.000Z","size":659,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T02:49:48.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arhea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-17T22:53:15.000Z","updated_at":"2020-01-21T19:25:41.000Z","dependencies_parsed_at":"2023-02-03T12:31:58.820Z","dependency_job_id":null,"html_url":"https://github.com/arhea/aws-userdata-handlebars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-userdata-handlebars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-userdata-handlebars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-userdata-handlebars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-userdata-handlebars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arhea","download_url":"https://codeload.github.com/arhea/aws-userdata-handlebars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243003988,"owners_count":20220234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T04:15:51.766Z","updated_at":"2025-03-11T08:42:54.671Z","avatar_url":"https://github.com/arhea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UserData Powered By Handlebars\n\n![Monthly Downloads](https://img.shields.io/npm/dm/@arhea/aws-userdata-handlebars)\n![License](https://img.shields.io/npm/l/@arhea/aws-userdata-handlebars)\n![Dependencies](https://img.shields.io/librariesio/release/npm/@arhea/aws-userdata-handlebars)\n\nThis construct enables the use of Handlebars templates as Userdata. Often times UserData scripts are long, complex, and require inserting other variables from your environment. This construct extends the base functionality of the default ec2.UserData class to include Handlebars.\n\n## Usage\n\n```typescript\nimport { HandlebarsUserData } from '@arhea/aws-userdata-handlebars';\nimport * as path from 'path';\n\n// create our object\n// for Windows add .forWindows() instead of .forLinux()\nconst webUserData = HandlebarsUserData.forLinux();\n\n// load the template file\nwebUserData.addTemplateFile(path.join(__dirname, 'userdata', 'webserver.handlebars'));\n\n// add data to the template in a key, value format\nwebUserData.addData('loadBalancerUrl', `http://${app.loadBalancerDnsName}`);\n```\n\n## Useful commands\n\n * `npm run build`   compile typescript to js\n * `npm run watch`   watch for changes and compile\n * `npm run test`    perform the jest unit tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Faws-userdata-handlebars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farhea%2Faws-userdata-handlebars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Faws-userdata-handlebars/lists"}