AWS MSK serverless
Hi,
I'm trying to create AWS MSK serverless cluster using AWS SDK for node js (aws-sdk/client-kafka). But I'm getting the following error
There is an issue with your cluster
Code: InternalServerError.Unknown
Message: The last operation failed because of a service issue. Retry the operation.
Also during initialization, I get a request ID in response, where can I see the result of that as initially, it is in a pending state.
@iwasa
import { KafkaClient, CreateClusterV2Command,ListClustersV2Command } from "@aws-sdk/client-kafka";
let config = { maxAttempts: 1, region: "region", credentials:{ accessKeyId: "xx-xxx-xxxx", secretAccessKey: "xxx-xxx-xxx" } }
const client = new KafkaClient(config);
const params = { ClusterName: 'mks-cluster', Serverless: { VpcConfigs: [ { SubnetIds: [ 'xxx', 'yyy', 'zzz' ], SecurityGroupIds: [ 'abc', ] }, ], ClientAuthentication: { Sasl: { Iam: { Enabled: true } } } }, Tags: { 'msk-tag': 'value', } };
const command = new CreateClusterV2Command(params);
try{ const response = await client.send(command); // after this I get response as - "creating" and later on it fails
There is an extra comma after security groups that was causing the issue. It's resolved now.
Relevant questions
MSK ebs snapshot
asked 2 years agoMSK Custom Configuration using Cloudformation
asked 4 months agoUsing MSK as trigger to a Lambda with SASL/SCRAM Authentication
asked a month agoWhat changes an MSK cluster's "current_version"?
asked 2 months agoUnable to delete MSK Cluster
asked a year agoAWS MSK serverless
asked a month agoHow to enroll for MSK Serverless
asked 7 months agoAWS MSK Serverless CloudFormation support
asked 11 days agoAvailable connectors for Serverless MSK
asked 4 months agoConnect Amazon MSK cluster to on-premises web server?
Accepted Answerasked 3 years ago
Hi, Please share your code with us.