Experimental
@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
VpcIngressConnectionProps Struct
Properties of the AppRunner VPC Ingress Connection.
Example
ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
declare const vpc: ec2.Vpc;
const interfaceVpcEndpoint = new ec2.InterfaceVpcEndpoint(this, 'MyVpcEndpoint', {
vpc,
service: ec2.InterfaceVpcEndpointAwsService.APP_RUNNER_REQUESTS,
privateDnsEnabled: false,
});
const service = new apprunner.Service(this, 'Service', {
source: apprunner.Source.fromEcrPublic({
imageConfiguration: {
port: 8000,
},
imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest',
}),
isPubliclyAccessible: false, // set false
});
new apprunner.VpcIngressConnection(this, 'VpcIngressConnection', {
vpc,
interfaceVpcEndpoint,
service,
});
Properties
interfaceVpcEndpointIInterfaceVpcEndpointinterface_vpc_endpointIInterfaceVpcEndpointinterfaceVpcEndpointIInterfaceVpcEndpointInterfaceVpcEndpointIInterfaceVpcEndpointInterfaceVpcEndpointIInterfaceVpcEndpointrequired#The VPC Interface Endpoint for the VPC Ingress Connection.
The service to connect.
vpcIngressConnectionNameoptionalstringvpc_ingress_connection_nameoptionalstrvpcIngressConnectionNameoptionalStringVpcIngressConnectionNameoptionalstringVpcIngressConnectionNameoptional*string#The name for the VPC Ingress Connection.
Default: a name generated by CloudFormation