Skip to content

Commit

Permalink
feat(msk): added msk cluster sasl iam public property
Browse files Browse the repository at this point in the history
  • Loading branch information
mahe-ymc committed Sep 2, 2024
1 parent a3332b6 commit 056dcf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/@aws-cdk/aws-msk-alpha/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,17 @@ export class Cluster extends ClusterBase {
return this._bootstrapBrokers('BootstrapBrokerStringSaslIam');
}

/**
* Get the list of brokers that a SASL/IAM authenticated client application can use to bootstrap
*
* Uses a Custom Resource to make an API call to `getBootstrapBrokers` using the Javascript SDK
*
* @returns - A string containing one or more DNS names (or IP) and TLS port pairs.
*/
public get bootstrapBrokersPublicSaslIam() {
return this._bootstrapBrokers('BootstrapBrokerStringPublicSaslIam');
}

/**
* A list of usersnames to register with the cluster. The password will automatically be generated using Secrets
* Manager and the { username, password } JSON object stored in Secrets Manager as `AmazonMSK_username`.
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-msk-alpha/test/integ.cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class FeatureFlagStack extends cdk.Stack {
removalPolicy: cdk.RemovalPolicy.DESTROY,
});
new cdk.CfnOutput(this, 'BootstrapBrokers9', { value: cluster7.bootstrapBrokersTls });

new cdk.CfnOutput(this, 'BootstrapBrokers10', { value: cluster3.bootstrapBrokersPublicSaslIam });
}
}

Expand Down

0 comments on commit 056dcf9

Please sign in to comment.