AWS custom resources using Golang, Lambda and TypeScript.
This is ready-to-deploy proof of concept leveraging Golang to efficiently handle the lifecycle management of so called AWS custom resources. This repository exemplifies how to use these to create SSM parameters of type SecureString in CDK. You can, of course, use this repository as a template for more advanced custom resources.
📖 You can read more on my blog at AWS Custom resources with Lambda and Golang.
Make sure you first install all dependencies:
gobinarynpm
Then clone this repository:
$ git clone https://github.com/dorneanu/aws-custom-resource-golangThen install all npm dependencies:
$ cd deployments $ npm i --save-dev added 310 packages in 3s 30 packages are looking for funding run `npm fund` for detailsI always recommend to first run cdk diff before deploying. This way you can review the changes before it’s to late:
$ npx aws-cdk diffAfterwards you can deploy:
$ npx aws-cdk deploy- [ ] Add logrus
- [X] Try to bundle Golang based lambda function locally first (see this example)
- [X] Test locally
- 2023-03-16 ◦ cdk-secure-parameter-store - Create SecureString SSM parameter through CDK (TypeScript project)
- 2023-03-16 ◦ RFC: Have CDK put SecureString type parameter values into SSM securely · Issue #3520 · aws/aws-cdk · GitHub
- 2023-03-16 ◦ github.com/aws-cdk-examples/typescript/custom-resource official example using Python and TypeScript
- 2023-03-16 ◦ Advanced AWS Custom Resources with CDK using Python
- 2023-03-15 ◦ Building, bundling, and deploying applications with the AWS CDK | AWS DevOps Blog
- 2023-03-15 ◦ AWS CDK examples using TypeScript
- 2023-03-13 ◦ Build a Golang based Lambda function using CDK and TypeScript