Cloudformation support for creating configurations

0

Great to see CloudFormation support coming out.

I did notice that only AWS::MSK::Cluster is available, but no way to create a configuration resource (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_MSK.html).

I'm right now looking into creating clusters programmatically as part of our recovery procedures, and would have liked to use a cloudformation template with minimal "glue scripts" around it, but for that I would also have to create a cluster configuration. Doing that as part of the glue script code works, but then I can also just use the AWS CLI for all steps and skip using CloudFormation.

Is support for MSK cluster configurations in CloudFormation "on the horizon"?

ankon
질문됨 5년 전248회 조회
2개 답변
0

You are correct. We will support Configurations in CloudFormation soon. Until then you can create a configuration in MSK and then use the configuration ARN in your CloudFormation scripts.

답변함 5년 전
0

You can create MSK::Configuration in cloudformation now like:

  MskConfiguration:
    Type: "AWS::MSK::Configuration"
    Properties:
      Description: !Sub "${EnvironmentName}-${EnvironmentShard}-msk-cluster-configuration"
      Name: !Sub "${EnvironmentName}-${EnvironmentShard}-msk-cluster-configuration"
      KafkaVersionsList: [2.8.1]
      ServerProperties: |
        auto.create.topics.enable=false
        default.replication.factor=2

and associate to the cluster with

  MSKCluster:
    Type: 'AWS::MSK::Cluster'
    Properties:
      ClusterName: !Sub "${EnvironmentName}-${EnvironmentShard}-msk-cluster"
      KafkaVersion: 2.8.1
      NumberOfBrokerNodes: 1
      ConfigurationInfo:
        Arn: !Ref MskConfiguration
        Revision: 1
        ...
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠