ClusterV2
Manages a MSK Cluster V2.
Sample code
exports.createResources = () => [
{
type: "ClusterV2",
group: "MSK",
properties: ({ getId }) => ({
ClusterName: "demo-cluster-1",
ClusterType: "SERVERLESS",
Serverless: {
ClientAuthentication: {
Sasl: {
Iam: {
Enabled: true,
},
},
},
VpcConfigs: [
{
SecurityGroupIds: [
`${getId({
type: "SecurityGroup",
group: "EC2",
name: "sg::vpc-default::default",
})}`,
],
SubnetIds: [
`${getId({
type: "Subnet",
group: "EC2",
name: "vpc-default::subnet-default-a",
})}`,
`${getId({
type: "Subnet",
group: "EC2",
name: "vpc-default::subnet-default-d",
})}`,
`${getId({
type: "Subnet",
group: "EC2",
name: "vpc-default::subnet-default-f",
})}`,
],
},
],
},
}),
dependencies: ({}) => ({
subnets: [
"vpc-default::subnet-default-a",
"vpc-default::subnet-default-d",
"vpc-default::subnet-default-f",
],
securityGroups: ["sg::vpc-default::default"],
}),
},
];
Properties
Dependencies
Used By
Full Examples
List
gc l -t MSK::ClusterV2
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌───────────────────────────────────────────────────────────────────────────┐
│ 1 MSK::ClusterV2 from aws │
├───────────────────────────────────────────────────────────────────────────┤
│ name: demo-cluster-1 │
│ managedByUs: Yes │
│ live: │
│ ClusterArn: arn:aws:kafka:us-east-1:840541460064:cluster/demo-cluster-… │
│ ClusterName: demo-cluster-1 │
│ ClusterType: SERVERLESS │
│ CreationTime: 2022-10-16T16:50:48.007Z │
│ CurrentVersion: K2EUQ1WTGCTBG2 │
│ Serverless: │
│ ClientAuthentication: │
│ Sasl: │
│ Iam: │
│ Enabled: true │
│ VpcConfigs: │
│ - SecurityGroupIds: │
│ - "sg-4e82a670" │
│ SubnetIds: │
│ - "subnet-b80a4ff5" │
│ - "subnet-41e85860" │
│ - "subnet-50cca05e" │
│ State: ACTIVE │
│ Tags: │
│ gc-managed-by: grucloud │
│ gc-project-name: msk-serverless │
│ gc-stage: dev │
│ gc-created-by-provider: aws │
│ Name: demo-cluster-1 │
│ │
└───────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌──────────────────────────────────────────────────────────────────────────┐
│ aws │
├────────────────┬─────────────────────────────────────────────────────────┤
│ MSK::ClusterV2 │ demo-cluster-1 │
└────────────────┴─────────────────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t MSK::ClusterV2" executed in 4s, 100 MB