Skip to content

Commit

Permalink
feat(msk): add Kafka version 2.8.1 (#16881)
Browse files Browse the repository at this point in the history
Add support for Apache Kafka version 2.8.1 in Amazon MSK.

Announcement: https://aws.amazon.com/about-aws/whats-new/2021/10/amazon-msk-support-apache-kafka-version-2-8-1/

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
jumic authored Oct 14, 2021
1 parent 00a8063 commit 7db5c8c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-msk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The following example creates an MSK Cluster.
import * as msk from '@aws-cdk/aws-msk';

const cluster = new Cluster(this, 'Cluster', {
kafkaVersion: msk.KafkaVersion.V2_6_1,
kafkaVersion: msk.KafkaVersion.V2_8_1,
vpc,
});
```
Expand Down
5 changes: 5 additions & 0 deletions packages/@aws-cdk/aws-msk/lib/cluster-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export class KafkaVersion {
*/
public static readonly V2_8_0 = KafkaVersion.of('2.8.0');

/**
* Kafka version 2.8.1
*/
public static readonly V2_8_1 = KafkaVersion.of('2.8.1');

/**
* Custom cluster version
* @param version custom version number
Expand Down
32 changes: 16 additions & 16 deletions packages/@aws-cdk/aws-msk/test/integ.cluster.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@
"VPCPublicSubnet1NATGatewayE0556630": {
"Type": "AWS::EC2::NatGateway",
"Properties": {
"SubnetId": {
"Ref": "VPCPublicSubnet1SubnetB4246D30"
},
"AllocationId": {
"Fn::GetAtt": [
"VPCPublicSubnet1EIP6AD938E8",
"AllocationId"
]
},
"SubnetId": {
"Ref": "VPCPublicSubnet1SubnetB4246D30"
},
"Tags": [
{
"Key": "Name",
Expand Down Expand Up @@ -192,15 +192,15 @@
"VPCPublicSubnet2NATGateway3C070193": {
"Type": "AWS::EC2::NatGateway",
"Properties": {
"SubnetId": {
"Ref": "VPCPublicSubnet2Subnet74179F39"
},
"AllocationId": {
"Fn::GetAtt": [
"VPCPublicSubnet2EIP4947BC00",
"AllocationId"
]
},
"SubnetId": {
"Ref": "VPCPublicSubnet2Subnet74179F39"
},
"Tags": [
{
"Key": "Name",
Expand Down Expand Up @@ -399,7 +399,7 @@
}
},
"ClusterName": "integ-test",
"KafkaVersion": "2.6.1",
"KafkaVersion": "2.8.1",
"NumberOfBrokerNodes": 2,
"EncryptionInfo": {
"EncryptionInTransit": {
Expand Down Expand Up @@ -524,7 +524,7 @@
"Properties": {
"Code": {
"S3Bucket": {
"Ref": "AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4S3BucketB17E5ABD"
"Ref": "AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dS3Bucket4C71F166"
},
"S3Key": {
"Fn::Join": [
Expand All @@ -537,7 +537,7 @@
"Fn::Split": [
"||",
{
"Ref": "AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4S3VersionKey77778F6A"
"Ref": "AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dS3VersionKey0124EFC4"
}
]
}
Expand All @@ -550,7 +550,7 @@
"Fn::Split": [
"||",
{
"Ref": "AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4S3VersionKey77778F6A"
"Ref": "AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dS3VersionKey0124EFC4"
}
]
}
Expand All @@ -576,17 +576,17 @@
}
},
"Parameters": {
"AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4S3BucketB17E5ABD": {
"AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dS3Bucket4C71F166": {
"Type": "String",
"Description": "S3 bucket for asset \"5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4\""
"Description": "S3 bucket for asset \"1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2d\""
},
"AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4S3VersionKey77778F6A": {
"AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dS3VersionKey0124EFC4": {
"Type": "String",
"Description": "S3 key for asset version \"5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4\""
"Description": "S3 key for asset version \"1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2d\""
},
"AssetParameters5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4ArtifactHash580E429C": {
"AssetParameters1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2dArtifactHash6350D824": {
"Type": "String",
"Description": "Artifact hash for asset \"5c61041c12314e1ad8e67a0107fa3733382a206a78cdc1576fffa7e93caca5b4\""
"Description": "Artifact hash for asset \"1c4eb88f5a8270f387281dcff6e3493840634113c4d57044f4aff74e3ef94c2d\""
}
},
"Outputs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-msk/test/integ.cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 });

const cluster = new msk.Cluster(stack, 'Cluster', {
clusterName: 'integ-test',
kafkaVersion: msk.KafkaVersion.V2_6_1,
kafkaVersion: msk.KafkaVersion.V2_8_1,
vpc,
removalPolicy: cdk.RemovalPolicy.DESTROY,
});
Expand Down

0 comments on commit 7db5c8c

Please sign in to comment.