AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::AppRunner::VpcConnector

CfnVpcConnector

Specify an AWS App Runner VPC connector by using the `AWS::AppRunner::VpcConnector` resource in an AWS CloudFormation template. The `AWS::AppRunner::VpcConnector` resource is an AWS App Runner resource type that specifies an App Runner VPC connector. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud ( Amazon VPC ).

Import

import { CfnVpcConnector } from 'aws-cdk-lib/aws-apprunner';

Or use the module namespace:

import * as apprunner from 'aws-cdk-lib/aws-apprunner';
// apprunner.CfnVpcConnector

Properties

Configuration passed to the constructor as CfnVpcConnectorProps.

subnetsRequired
string[]

A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. > App Runner only supports subnets of IP address type *IPv4* and *dual stack* (IPv4 and IPv6).

securityGroupsOptional
string | ISecurityGroupRef[]

A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.

tagsOptional
CfnTag[]

A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair. > A `VpcConnector` is immutable, so you cannot update its tags. To change the tags, replace the resource. To replace a `VpcConnector` , you must provide a new combination of security groups.

vpcConnectorNameOptional
string

A name for the VPC connector. If you don't specify a name, CloudFormation generates a name for your VPC connector.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

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

Subscribe to Newsletter