Vpc Ingress Connection Args
data class VpcIngressConnectionArgs(val ingressVpcConfiguration: Output<VpcIngressConnectionIngressVpcConfigurationArgs>? = null, val name: Output<String>? = null, val serviceArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<VpcIngressConnectionArgs>
Manages an App Runner VPC Ingress Connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apprunner.VpcIngressConnection("example", {
name: "example",
serviceArn: exampleAwsApprunnerService.arn,
ingressVpcConfiguration: {
vpcId: _default.id,
vpcEndpointId: apprunner.id,
},
tags: {
foo: "bar",
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.apprunner.VpcIngressConnection("example",
name="example",
service_arn=example_aws_apprunner_service["arn"],
ingress_vpc_configuration={
"vpc_id": default["id"],
"vpc_endpoint_id": apprunner["id"],
},
tags={
"foo": "bar",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppRunner.VpcIngressConnection("example", new()
{
Name = "example",
ServiceArn = exampleAwsApprunnerService.Arn,
IngressVpcConfiguration = new Aws.AppRunner.Inputs.VpcIngressConnectionIngressVpcConfigurationArgs
{
VpcId = @default.Id,
VpcEndpointId = apprunner.Id,
},
Tags =
{
{ "foo", "bar" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apprunner.NewVpcIngressConnection(ctx, "example", &apprunner.VpcIngressConnectionArgs{
Name: pulumi.String("example"),
ServiceArn: pulumi.Any(exampleAwsApprunnerService.Arn),
IngressVpcConfiguration: &apprunner.VpcIngressConnectionIngressVpcConfigurationArgs{
VpcId: pulumi.Any(_default.Id),
VpcEndpointId: pulumi.Any(apprunner.Id),
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apprunner.VpcIngressConnection;
import com.pulumi.aws.apprunner.VpcIngressConnectionArgs;
import com.pulumi.aws.apprunner.inputs.VpcIngressConnectionIngressVpcConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new VpcIngressConnection("example", VpcIngressConnectionArgs.builder()
.name("example")
.serviceArn(exampleAwsApprunnerService.arn())
.ingressVpcConfiguration(VpcIngressConnectionIngressVpcConfigurationArgs.builder()
.vpcId(default_.id())
.vpcEndpointId(apprunner.id())
.build())
.tags(Map.of("foo", "bar"))
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:apprunner:VpcIngressConnection
properties:
name: example
serviceArn: ${exampleAwsApprunnerService.arn}
ingressVpcConfiguration:
vpcId: ${default.id}
vpcEndpointId: ${apprunner.id}
tags:
foo: bar
Content copied to clipboard
Import
Using pulumi import
, import App Runner VPC Ingress Connection using the arn
. For example:
$ pulumi import aws:apprunner/vpcIngressConnection:VpcIngressConnection example "arn:aws:apprunner:us-west-2:837424938642:vpcingressconnection/example/b379f86381d74825832c2e82080342fa"
Content copied to clipboard
Properties
Link copied to clipboard
Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.
Link copied to clipboard
The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.