Resource: aws_networkmanager_vpc_attachment

Terraform resource for managing an AWS Network Manager VPC Attachment.

Example Usage

Basic Usage

resource "aws_networkmanager_vpc_attachment" "example" {
  subnet_arns     = [aws_subnet.example.arn]
  core_network_id = awscc_networkmanager_core_network.example.id
  vpc_arn         = aws_vpc.example.arn
}

Argument Reference

The following arguments are required:

The following arguments are optional:

options

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_networkmanager_vpc_attachment using the attachment ID. For example:

import {
  to = aws_networkmanager_vpc_attachment.example
  id = "attachment-0f8fa60d2238d1bd8"
}

Using terraform import, import aws_networkmanager_vpc_attachment using the attachment ID. For example:

% terraform import aws_networkmanager_vpc_attachment.example attachment-0f8fa60d2238d1bd8