Vpc Attachment
Resource for managing an AWS Network Manager VPC Attachment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.VpcAttachment("example", {
subnetArns: [exampleAwsSubnet.arn],
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
vpcArn: exampleAwsVpc.arn,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.VpcAttachment("example",
subnet_arns=[example_aws_subnet["arn"]],
core_network_id=example_awscc_networkmanager_core_network["id"],
vpc_arn=example_aws_vpc["arn"])
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.NetworkManager.VpcAttachment("example", new()
{
SubnetArns = new[]
{
exampleAwsSubnet.Arn,
},
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
VpcArn = exampleAwsVpc.Arn,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
SubnetArns: pulumi.StringArray{
exampleAwsSubnet.Arn,
},
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
VpcArn: pulumi.Any(exampleAwsVpc.Arn),
})
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.networkmanager.VpcAttachment;
import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
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 VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetArns(exampleAwsSubnet.arn())
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.vpcArn(exampleAwsVpc.arn())
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:networkmanager:VpcAttachment
properties:
subnetArns:
- ${exampleAwsSubnet.arn}
coreNetworkId: ${exampleAwsccNetworkmanagerCoreNetwork.id}
vpcArn: ${exampleAwsVpc.arn}
Content copied to clipboard
Import
Using pulumi import
, import aws_networkmanager_vpc_attachment
using the attachment ID. For example:
$ pulumi import aws:networkmanager/vpcAttachment:VpcAttachment example attachment-0f8fa60d2238d1bd8
Content copied to clipboard
Properties
Link copied to clipboard
The policy rule number associated with the attachment.
Link copied to clipboard
The type of attachment.
Link copied to clipboard
The ARN of a core network.
Link copied to clipboard
The ID of a core network for the VPC attachment.
Link copied to clipboard
The Region where the edge is located.
Link copied to clipboard
Options for the VPC attachment.
Link copied to clipboard
The ID of the attachment account owner.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The attachment resource ARN.
Link copied to clipboard
The name of the segment attachment.
Link copied to clipboard
The subnet ARN of the VPC attachment.