{"id":38898823,"url":"https://github.com/dorneanu/aws-custom-resource-golang","last_synced_at":"2026-01-17T15:01:01.210Z","repository":{"id":185729131,"uuid":"600409160","full_name":"dorneanu/aws-custom-resource-golang","owner":"dorneanu","description":"AWS Lambda baked AWS custom resource PoC in Golang","archived":false,"fork":false,"pushed_at":"2023-04-06T14:24:41.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-18T00:13:25.535Z","etag":null,"topics":["aws","aws-lambda","cdk","custom-resources","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dorneanu.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-11T12:03:41.000Z","updated_at":"2023-03-27T20:11:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a10960c1-1d86-488f-97a3-01b7baaf0bb5","html_url":"https://github.com/dorneanu/aws-custom-resource-golang","commit_stats":null,"previous_names":["dorneanu/aws-custom-resource-golang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dorneanu/aws-custom-resource-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorneanu%2Faws-custom-resource-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorneanu%2Faws-custom-resource-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorneanu%2Faws-custom-resource-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorneanu%2Faws-custom-resource-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dorneanu","download_url":"https://codeload.github.com/dorneanu/aws-custom-resource-golang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorneanu%2Faws-custom-resource-golang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28510928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","aws-lambda","cdk","custom-resources","golang"],"created_at":"2026-01-17T15:00:31.282Z","updated_at":"2026-01-17T15:01:01.191Z","avatar_url":"https://github.com/dorneanu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWS custom resources using Golang, Lambda and TypeScript.\n\n* Motivation\n\nThis is ready-to-deploy proof of concept leveraging Golang to efficiently handle the lifecycle management\nof so called [[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html][AWS custom resources]]. This repository exemplifies how to use these to create [[https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html][SSM parameters]] of type\n~SecureString~ in CDK. You can, of course, use this repository as a template for more advanced custom resources.\n\n📖 You can read more on my blog at [[https://blog.dornea.nu/2023/04/06/aws-custom-resources-with-lambda-and-golang/][AWS Custom resources with Lambda and Golang]].\n\n* Deployment\n\nMake sure you first install all dependencies:\n- ~go~ binary\n- ~npm~\n\nThen clone this repository:\n\n#+begin_src sh\n$ git clone https://github.com/dorneanu/aws-custom-resource-golang\n#+end_src\n\nThen install all ~npm~ dependencies:\n\n#+begin_src sh\n$ cd deployments\n$ npm i --save-dev\nadded 310 packages in 3s\n\n30 packages are looking for funding\nrun `npm fund` for details\n#+end_src\n\nI always recommend to first run ~cdk diff~ before deploying. This way you can review the\nchanges before it's to late:\n\n#+begin_src sh\n$ npx aws-cdk diff\n#+end_src\n\nAfterwards you can *deploy*:\n\n#+begin_src sh\n$ npx aws-cdk deploy\n#+end_src\n\n* TODOs\n- [ ] Add [[https://github.com/sirupsen/logrus][logrus]]\n- [X] Try to bundle Golang based lambda function locally first (see this [[https://github.com/aws-samples/cdk-build-bundle-deploy-example/blob/main/cdk-bundle-go-lambda-example/lib/api-stack.ts][example]])\n- [X] Test locally\n* Resources\n- 2023-03-16 ◦ [[https://www.npmjs.com/package/cdk-secure-parameter-store][cdk-secure-parameter-store - Create SecureString SSM parameter through CDK (TypeScript project)]]\n  - Related: [[https://github.com/HarshRohila/cdk-secure-parameter-store][github.com/HarshRohila/cdk-secure-parameter-store]]\n- 2023-03-16 ◦ [[https://github.com/aws/aws-cdk/issues/3520][RFC: Have CDK put SecureString type parameter values into SSM securely · Issue #3520 · aws/aws-cdk · GitHub]]\n- 2023-03-16 ◦ [[https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/custom-resource][github.com/aws-cdk-examples/typescript/custom-resource official example using Python and TypeScript]]\n- 2023-03-16 ◦ [[https://medium.com/cyberark-engineering/advanced-custom-resources-with-aws-cdk-1e024d4fb2fa][Advanced AWS Custom Resources with CDK using Python]]\n  - Related: [[https://github.com/royby-cyberark/iot-policy-custom-resource-example][github.com/royby-cyberark/iot-policy-custom-resource-example]]\n- 2023-03-15 ◦ [[https://aws.amazon.com/blogs/devops/building-apps-with-aws-cdk/][Building, bundling, and deploying applications with the AWS CDK | AWS DevOps Blog]]\n  - Related: [[https://github.com/aws-samples/cdk-build-bundle-deploy-example][github.com/aws-samples/cdk-build-bundle-deploy-example]]\n- 2023-03-15 ◦ [[https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript][AWS CDK examples using TypeScript]]\n- 2023-03-13 ◦ [[https://github.com/thomaspoignant/cdk-golang-lambda-deployment][Build a Golang based Lambda function using CDK and TypeScript]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdorneanu%2Faws-custom-resource-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdorneanu%2Faws-custom-resource-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdorneanu%2Faws-custom-resource-golang/lists"}