AWS Fundamentals Logo
AWS Fundamentals
AWS::MSK::VpcConnection

MSK VpcConnection

Resource Type definition for AWS::MSK::VpcConnection

Properties

6 configurable properties. 5 required. Click a row to see details.

Filter:
PropertyTypeFlags
Authentication
string
RequiredCreate-only
ClientSubnets
array
RequiredCreate-only
SecurityGroups
array
RequiredCreate-only
TargetClusterArn
string
RequiredCreate-only
VpcId
string
RequiredCreate-only
Tags
Tags

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::MSK::VpcConnection

Resources:
  MyResource:
    Type: AWS::MSK::VpcConnection
    Properties:
      Authentication: "value"
      ClientSubnets: "value"
      SecurityGroups: "value"
      TargetClusterArn: "arn:aws:service:region:account:resource"
      VpcId: "my-vpcid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateVpcEndpointec2:DescribeSecurityGroupsec2:DescribeSubnetsec2:DescribeVpcAttributeec2:DescribeVpcsec2:DescribeVpcEndpointsec2:AcceptVpcEndpointConnectionsec2:RejectVpcEndpointConnections

read

kafka:DescribeVpcConnectionkms:CreateGrantkms:DescribeKey

update

kafka:DescribeVpcConnectionkms:CreateGrantkms:DescribeKeykafka:TagResourcekafka:UntagResource

delete

ec2:DeleteVpcEndpointec2:DeleteVpcEndpointsec2:DescribeVpcEndpointsec2:DescribeVpcEndpointConnectionskafka:DeleteVpcConnectionkafka:DescribeVpcConnectionkms:CreateGrantkms:DescribeKey

list

kafka:ListVpcConnectionskms:CreateGrantkms:DescribeKey

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceMSK
Properties7
Required5
TaggingSupported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ClientSubnetsAuthenticationSecurityGroupsTargetClusterArnVpcId

External Links