Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove context from transit gateway attachment resource #1443

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion nsxt/resource_nsxt_policy_transit_gateway_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ var transitGatewayAttachmentSchema = map[string]*metadata.ExtendedSchema{
"description": metadata.GetExtendedSchema(getDescriptionSchema()),
"revision": metadata.GetExtendedSchema(getRevisionSchema()),
"tag": metadata.GetExtendedSchema(getTagsSchema()),
"context": metadata.GetExtendedSchema(getContextSchema(false, false, false)),
"parent_path": metadata.GetExtendedSchema(getPolicyPathSchema(true, true, "Policy path of the parent")),
"connection_path": {
Schema: schema.Schema{
Expand Down
12 changes: 4 additions & 8 deletions website/docs/r/policy_transit_gateway_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
subcategory: "Beta"
layout: "nsxt"
page_title: "NSXT: nsxt_policy_transit_gateway_attachment"
description: A resource to configure a TransitGatewayAttachment.
description: A resource to configure a Transit Gateway Attachment.
---

# nsxt_policy_transit_gateway_attachment

This resource provides a method for the management of a TransitGatewayAttachment.
This resource provides a method for the management of a Transit Gateway Attachment.

This resource is applicable to NSX Global Manager, NSX Policy Manager and VMC.
This resource is applicable to NSX Policy Manager.

## Example Usage

Expand All @@ -31,10 +31,6 @@ resource "nsxt_policy_gateway_connection" "test_gw_conn" {
}

resource "nsxt_policy_transit_gateway_attachment" "test_tgw_att" {
context {
project_id = nsxt_policy_project.test_proj.id
}

display_name = "test"
parent_path = nsxt_policy_transit_gateway.test_tgw.path
connection_path = nsxt_policy_gateway_connection.test_gw_conn.path
Expand Down Expand Up @@ -70,4 +66,4 @@ An existing object can be [imported][docs-import] into this resource, via the fo
terraform import nsxt_policy_transit_gateway_attachment.test PATH
```

The above command imports TransitGatewayAttachment named `test` with the policy path `PATH`.
The above command imports Transit Gateway Attachment named `test` with the policy path `PATH`.
Loading