Skip to content

Commit

Permalink
Merge pull request #1443 from vmware/remove-context-from-tgwa
Browse files Browse the repository at this point in the history
Remove context from transit gateway attachment resource
  • Loading branch information
annakhm authored Oct 23, 2024
2 parents 91df0f2 + 2c17a61 commit 0eb8cad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
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`.

0 comments on commit 0eb8cad

Please sign in to comment.