Setting up default configuration settings in your Amazon MSK cluster is a pretty straightforward process. In this article, I will explain how to set the "auto.create.topics.enable” parameter as the default configuration.
Here are the steps to follow:
Log into your AWS Management Console.
Navigate to the Amazon MSK console.
Select the cluster that you would like to configure.
Locate the Configurations tab.
Select "Create configuration" (or "Edit configuration" if you already have a configuration in place).
Enter a name for your configuration, such as "Auto Create Enabled."
Select "add parameter" and enter the parameter name "auto.create.topics.enable."
Set the value of the parameter to "True."
Click "Submit."
Click the "Actions" drop-down and choose “Set as Default.”
That's all there is to it! The "auto.create.topics.enable" parameter is now set as the default configuration for your Amazon MSK cluster and any new topics created on the cluster will automatically have “auto.create.topics.enable” set to True.
Keep in mind that you can also edit and delete existing configurations. If you would like more information on how to configure your Amazon MSK cluster, please read this article: https://aws.amazon.com/getting-started/hands-on/configure-you-amazon-msk-clusters/.