More Tools - CDK Examples
We need more CDK examples
In this github repo we focus on examples for every day work. While there are some nice examples for the fancy stuff like fargate, ecs and so on in aws-cdk-examples/typescript at master · aws-samples/aws-cdk-examples · GitHub, i felt that basic examples where missing.
So we created GitHub - tecracer/cdk-templates: Templates for aws cdk
Working with the CDK (Cloud Development Kit) for a few month, one thing becomes clear:
You need examples and code snippets to get startet. So wee collected examples from our projects.
We have updated our github Repo for CDK examples to Version 1.5, no 1.6, no 1.7.
Funny thing is right when i was working with the cdk, the 1.5 update made its way through the pipeline and i could see while is was upgrading npm dependencies:
- first only some modules were updated, that gave strange error messages
- The documentation had about 10 minutes delay to the update of the modules
Right after that i updated the tecRacer CDK example repository.
And these are the working templates we have right now (growing):
Application Load Balancer alb-update
We tuned the ´Application Load Balancer example with userdata and an ssm role.
A Code Pipeline example, which creates a static hugo website.
Lambda with simple API-Gateway
Like the standard serverless.com example. cdk-templates/lambda-apigw at master · tecracer/cdk-templates · GitHub
Added another rule target to the lambda-cron example.
The most simple example with Lambda. Just to get you started. cdk-templates/lambda-simple at master · tecracer/cdk-templates · GitHub
IAM example of an role specifically for the ops center, see AWS OpsCenter - Ticket as a Service | tecRacer Amazon AWS Blog (german)
An vpc with an EC2 bastion host instance. This is meant to work with Systems Manager session manager, so no security groups here…
Jenkins Test Instance which is automatically turned off
An instance where Jenkins is installed together with a rule to stop it at a certain time.
So, have fun with GitHub - tecracer/cdk-templates: Templates for aws cdk
Please contact me (Gernot) on twitter: @megaproaktiv
Photo by Fleur on Unsplash