AWS::MSK::Cluster Issue

0

**You can't update multiple attributes of the cluster in same request. Use a different request for each update. **This happen when i am adding PrimaryClusterConfiguration

Resources:
  PrimaryClusterConfiguration:
    Type: 'AWS::MSK::Configuration'
    Properties:
      Name: 'PrimaryClusterConfiguration'
      ServerProperties: |
        log.retention.ms = -1

  PrimaryCluster:
    Type: AWS::MSK::Cluster
    Properties:
      ClusterName: PrimaryCluster
      KafkaVersion: 3.3.1
      NumberOfBrokerNodes: ${param:numBrokerNodes}
      BrokerNodeGroupInfo:
        ClientSubnets: ${param:subnets}
        InstanceType: kafka.t3.small
        SecurityGroups:
          - !GetAtt ClusterSecurityGroup.GroupId
        StorageInfo:
          EBSStorageInfo:
            VolumeSize: 100
      ConfigurationInfo:
        Arn: !GetAtt PrimaryClusterConfiguration.Arn
        Revision: !GetAtt PrimaryClusterConfiguration.LatestRevision.Revision
      EncryptionInfo:
        EncryptionInTransit:
          ClientBroker: TLS
          InCluster: true
      EnhancedMonitoring: DEFAULT
      LoggingInfo:
        BrokerLogs:
          CloudWatchLogs:
            Enabled: true
            LogGroup: !Ref ClusterLogGroup

  ClusterLogGroup:
    Type: AWS::Logs::LogGroup
    Properties:
      LogGroupName: '/msk/cluster/${self:service}'
      RetentionInDays: 7

  PrimaryClusterInfo:
    Type: Custom::MSKClusterInfo
    Properties:
      ServiceToken: !GetAtt ClusterInfoLambdaFunction.Arn
      Version: 1
      ClusterArn: !Ref PrimaryCluster

Thrisen
질문됨 2달 전93회 조회
1개 답변
0

Hi,

Is your CFN Stack already created and you want to update the config of PrimaryCluster that is already created ? If yes, change its config parameter only 1 by 1.

Best,

Didier

profile pictureAWS
전문가
답변함 2달 전

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

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

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

관련 콘텐츠