{"id":16260020,"url":"https://github.com/cludden/gomplate-lambda-extension","last_synced_at":"2026-04-11T08:07:06.180Z","repository":{"id":72389564,"uuid":"448413538","full_name":"cludden/gomplate-lambda-extension","owner":"cludden","description":"a Gomplate extension for AWS Lambda","archived":false,"fork":false,"pushed_at":"2022-01-24T22:48:29.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T10:17:52.608Z","etag":null,"topics":["aws","config","configuration","consul","dynamic","file","gcs","git","gomplate","lambda","s3","secret-manager","secrets","ssm","vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cludden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-15T23:23:38.000Z","updated_at":"2022-01-17T19:34:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac4c7299-471c-49f8-a855-92d19b763ea8","html_url":"https://github.com/cludden/gomplate-lambda-extension","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"f0894e6c8b08e7284f9f45ace1d483568c770c49"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fgomplate-lambda-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fgomplate-lambda-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fgomplate-lambda-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fgomplate-lambda-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cludden","download_url":"https://codeload.github.com/cludden/gomplate-lambda-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247854551,"owners_count":21007362,"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":["aws","config","configuration","consul","dynamic","file","gcs","git","gomplate","lambda","s3","secret-manager","secrets","ssm","vault"],"created_at":"2024-10-10T16:06:06.205Z","updated_at":"2026-04-11T08:07:01.123Z","avatar_url":"https://github.com/cludden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomplate-lambda-extension\na [Gomplate](https://github.com/hairyhenderson/gomplate) extension for [AWS Lambda](https://aws.amazon.com/blogs/compute/introducing-aws-lambda-extensions-in-preview/)\n\n## Getting Started\n\nThe [example](./example) directory provides a sample Terraform module that can be used to provision a Lambda function with this extension enabled.\n\n*Prereqs:*\n- [Terraform v1+](https://www.terraform.io/downloads)\n- [An AWS Account](https://aws.amazon.com)\n\n```shell\ncd example\nterraform init\nterraform apply\n```\n\n## Installation\n\n**Lambda layer**\nFor Lambda functions that use .zip deployments, include the following ARN as a layer in your Lambda function:\n```\narn:aws:lambda:us-west-2:010013098410:layer:gomplate-lambda-extension:4\n```\n\nor publish your own layer:\n```shell\njust publish\n```\n\n**Embed within Lambda container image**  \nFor Lambda functions that use container images, install the extension as part of the container build:\n```dockerfile\nADD https://github.com/cludden/gomplate-lambda-extension/releases/v0.1.0/download/gomplate-lambda-extension_0.1.0_linux_amd64 /opt/extensions/gomplate-lambda-extension\n```\n\n\n## Configuration\nThe extension is configured via [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).\n\n| Name | Description |\n| :--- | :--- |\n| `GOMPLATE_DATASOURCE_{name}` | defines a named datasource |\n| `GOMPLATE_INPUT` | anonymous input template (either inline or file path) |\n| `GOMPLATE_INPUT_{name}` | configures a named template with an associated input file path |\n| `GOMPLATE_OUTPUT` | output file path (e.g. `/tmp/config.json`) |\n| `GOMPLATE_OUTPUT_{name}` | configures a named template output file path |\n\nThe extension supports either a single anonymous template:\n```\n# inline\nGOMPLATE_INPUT={\"foo\":\"{{ (getenv \"FOO\" \"bar\") }}\"}\nGOMPLATE_OUTPUT=/tmp/config.json\n\n# filesystem\nGOMPLATE_INPUT=/tmp/config.tpl.json\nGOMPLATE_OUTPUT=/tmp/config.json\n```\nor one or more named templates:\n```\nGOMPLATE_INPUT_config=/tmp/config.tpl.json\nCOMPLATE_OUTPUT_config=/tmp/config.json\nCOMPLATE_INPUT_data=/tmp/data.tpl.yml\nCOMPLATE_OUTPUT_data=/tmp/data.yml\n```\n\n## License\nLicensed under the [MIT License](LICENSE.md)  \nCopyright (c) 2022 Chris Ludden","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Fgomplate-lambda-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcludden%2Fgomplate-lambda-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Fgomplate-lambda-extension/lists"}