backend-and-orchestration-t.../kubernetes/python-cdk/ts/MSK_example
dependabot[bot] 36b5bdd249
Bump semver, @aws-cdk/cx-api and @aws-cdk/assert
Bumps [semver](https://github.com/npm/node-semver) to 7.5.4 and updates ancestor dependencies [semver](https://github.com/npm/node-semver), [@aws-cdk/cx-api](https://github.com/aws/aws-cdk/tree/HEAD/packages/@aws-cdk/cx-api) and [@aws-cdk/assert](https://github.com/aws/aws-cdk/tree/HEAD/packages/@aws-cdk/assert). These dependencies need to be updated together.


Updates `semver` from 7.3.8 to 7.5.4
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.8...v7.5.4)

Updates `@aws-cdk/cx-api` from 1.12.0 to 1.203.0
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md)
- [Commits](https://github.com/aws/aws-cdk/commits/v1.203.0/packages/@aws-cdk/cx-api)

Updates `@aws-cdk/assert` from 1.203.0 to 2.68.0
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/v2.68.0/CHANGELOG.v2.md)
- [Commits](https://github.com/aws/aws-cdk/commits/v2.68.0/packages/@aws-cdk/assert)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
- dependency-name: "@aws-cdk/cx-api"
  dependency-type: indirect
- dependency-name: "@aws-cdk/assert"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 18:08:42 +00:00
..
bin Clean up this repo 2022-03-23 14:59:51 +04:00
lib Clean up this repo 2022-03-23 14:59:51 +04:00
cdk.context.json Clean up this repo 2022-03-23 14:59:51 +04:00
cdk.json Clean up this repo 2022-03-23 14:59:51 +04:00
package-lock.json Bump semver, @aws-cdk/cx-api and @aws-cdk/assert 2023-07-11 18:08:42 +00:00
package.json Bump semver, @aws-cdk/cx-api and @aws-cdk/assert 2023-07-11 18:08:42 +00:00
README.md Clean up this repo 2022-03-23 14:59:51 +04:00
tsconfig.json Clean up this repo 2022-03-23 14:59:51 +04:00

CDK MSK Example

Deploy VPC

Amazon VPC lets you provision a logically isolated section of the AWS Cloud where you can all the resources as in a virtual network.

These are the default values in cdk.json:

"vpc.cidr": "10.0.0.0/16",
"vpc.maxAzs": 3,

Deploy with:

cdk deploy VPCStack

Deploy MSK

Amazon MSK is a managed service that makes it easy for you to build and run applications that use Apache Kafka to process streaming data.

These are the default values in cdk.json:

"msk.DevMskCluster": "MskCluster",
"msk.ClusterTag": "MSK cluster",
"msk.brokerNodeGroupBrokerAzDistribution": "DEFAULT",
"msk.enhancedMonitoring": "PER_BROKER",
"msk.brokerNodeGroupEBSVolumeSize": 100,
"msk.brokerNodeGroupInstanceType": "kafka.m5.large",
"msk.brokerPort": 9092,
"msk.kafkaVersion": "2.2.1",
"msk.numberOfBrokerNodes": 3

Deploy with:

cdk deploy MskClusterStack

Kafka CLI

Note that the CLI commands for MKS are given by the keyword kafka, for example:

aws kafka list-clusters

To retrieve BootstrapBrokerStringTls, run:

 aws kafka get-bootstrap-brokers --cluster-arn <cluster ARN>

However, access and development within the cluster (e.g. creating topics, accessing brokers) need to be done while connected to the VPN.