kong-core
Use this Kong CDK Construct Library to deploy Core common infrastructural constructs .
This CDK library automatically creates and configures recommended architecture on AWS by:
-
Amazon EKS
- Well architected EKS cluster from networking standpoint
- Cluster autoscaler
- Node termination handler
- Secrets management from AWS Secrets Manager using CSI driver
- mTLS using AWS ACM for pod to pod communication using private certificate authority and aws-pca-issuer
- Use of IAM Role for Service Account (IRSA) where applicable
- AWS EKS encryption at rest
- Metrics server installation
- Logs and metrics to cloudwatch using AWS CloudWatch Container insights
-
Elasticache
- private accessibility
- multi az
- auto failover
- auto minor version upgrade
- cwl output
-
RDS Features
- Encryption at rest
- Private subnets
- Multiaz
- auto backup
- Logs output to CloudWatch
npm Package Installation:
yarn add --dev kong-core
# or
npm install kong-core --save-dev
PyPI Package Installation:
pip install kong-core
Sample
Try out https://github.com/kong/aws-samples for the complete sample application and instructions.
Resources to learn about CDK
Related
Kong on AWS Hands on Workshop - https://kong.awsworkshop.io/
Useful commands
rm -rf node_modules && rm package.json && rm package-lock.json && rm yarn.lock && rm tsconfig.dev.json
cleans the directorynpm install projen
installs projennpx projen build
Test + Compile + Build JSII packagesnpx projen watch
compile and run watch in backgroundnpm run test
perform the jest unit tests
Tips
- Use a locked down version of
constructs
and aws-cdk-lib
. Even with CDK V2 i saw https://github.com/aws/aws-cdk/issues/542 repeating when there is minor version mismatch of construcs. AWS CDK init commands generate package.json file without locked down version of constructs library.