Skip to content

Commit 6116caa

Browse files
committed
Add godoc comment to TF_REATTACH_PROVIDERS const
1 parent 12f8da6 commit 6116caa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

internal/getproviders/reattach/reattach.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ import (
1212
"github.com/hashicorp/terraform/internal/addrs"
1313
)
1414

15+
// TF_REATTACH_PROVIDERS is JSON string, containing a map of provider source to reattachment config.
16+
//
17+
// E.g this corresponds to a provider with source 'registry.terraform.io/hashicorp/foobar':
18+
/*
19+
{
20+
"foobar": {
21+
"Protocol": "grpc",
22+
"ProtocolVersion": 6,
23+
"Pid": 12345,
24+
"Test": true,
25+
"Addr": {
26+
"Network": "unix",
27+
"String":"/var/folders/xx/abcde12345/T/plugin12345"
28+
}
29+
}
30+
}
31+
*/
1532
const TF_REATTACH_PROVIDERS = "TF_REATTACH_PROVIDERS"
1633

1734
// ParseReattachProviders parses information used for reattaching to unmanaged providers out of a

0 commit comments

Comments
 (0)