CreateCluster

CreateCluster

Certified

Create an Amazon MSK cluster

yaml
type: io.kestra.plugin.aws.msk.CreateCluster
yaml
id: provision_msk_cluster
namespace: company.team

tasks:
  - id: create_cluster
    type: io.kestra.plugin.aws.msk.CreateCluster
    region: "{{ secret('AWS_REGION') }}"
    accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
    secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
    clusterName: "my-kestra-msk"
    kafkaVersion: "3.5.1"
    numberOfBrokerNodes: 3
    instanceType: "kafka.m5.large"
    clientSubnets:
      - "{{ secret('SUBNET_A') }}"
      - "{{ secret('SUBNET_B') }}"
      - "{{ secret('SUBNET_C') }}"
    securityGroups:
      - "{{ secret('SECURITY_GROUP_ID') }}"

  - id: log_arn
    type: io.kestra.plugin.core.log.Log
    message: "MSK cluster ARN: {{ outputs.create_cluster.clusterArn }}"
Properties
SubTypestring
SubTypestring
DefaultPT15M