You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update the `list vcs` command and the `copy workspaces --vcs` flag to support GitHub App connections instead of only support OAuth VCS connections. [[#268](https://github.com/hashicorp-services/tfm/issues/268)]
Copy file name to clipboardExpand all lines: cmd/copy/workspaces.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ func init() {
138
138
}
139
139
workspacesCopyCmd.Flags().BoolVarP(&teamaccess, "teamaccess", "", false, "Copy workspace Team Access")
140
140
workspacesCopyCmd.Flags().BoolVarP(&agents, "agents", "", false, "Mapping of source Agent Pool IDs to destination Agent Pool IDs in config file")
141
-
workspacesCopyCmd.Flags().BoolVarP(&vcs, "vcs", "", false, "Mapping of source vcs Oauth ID to destination vcs Oath in config file")
141
+
workspacesCopyCmd.Flags().BoolVarP(&vcs, "vcs", "", false, "Mapping of source vcs Oauth ID or GitHub App ID to destination vcs Oauth or GitHub App ID in config file")
142
142
workspacesCopyCmd.Flags().BoolVarP(&ssh, "ssh", "", false, "Mapping of source ssh id to destination ssh id in config file")
143
143
workspacesCopyCmd.Flags().BoolVarP(&lock, "lock", "", false, "Lock all source workspaces")
144
144
workspacesCopyCmd.Flags().BoolVarP(&unlock, "unlock", "", false, "Unlock all source workspaces")
Copy file name to clipboardExpand all lines: cmd/generate/config.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,10 @@ dst_tfc_org=""
48
48
dst_tfc_token="Must have owner permissions"
49
49
#dst_tfc_project_id=""
50
50
51
-
# A list of source=destination VCS oauth IDs. TFM will look at each workspace in the source for the source VCS oauth ID and assign the matching workspace in the destination with the destination VCS oauth ID.
51
+
# A list of source=destination VCS IDs. TFM will look at each workspace in the source for the source VCS ID and assign the matching workspace in the destination with the destination VCS ID.
Copy file name to clipboardExpand all lines: tfe-migration.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,13 +92,14 @@ varsets-map = [
92
92
93
93
## Assign VCS
94
94
95
-
As part of the HCL config file (`/home/user/.tfm.hcl`), a list of `source-vcs-oauth-ID=destination-vcs-oauth-id-ID` can be provided. `tfm` will use this list when running `tfm copy workspaces --vcs` to look at all workspaces in the source host with the assigned source VCS oauth ID and assign the matching named workspace in the destination with the mapped destination VCS oauth ID.
95
+
As part of the HCL config file (`/home/user/.tfm.hcl`), a list of vcs mappings of either `source-vcs-oauth-id=destination-vcs-oauth-id` or `source-vcs-github-app-id=destination-vcs-github-app-id` can be provided. `tfm` will use this list when running `tfm copy workspaces --vcs` to look at all workspaces in the source host with the assigned source VCS ID and assign the matching named workspace in the destination with the mapped destination VCS ID. `tfm` only supports like for like vcs migration, so if the source is a GitHub App VCS connection the destination must use a GitHub App VCS connection.
96
96
97
97
```hcl
98
-
# A list of source=destination VCS oauth IDs. TFM will look at each workspace in the source for the source VCS oauth ID and assign the matching workspace in the destination with the destination VCS oauth ID.
98
+
# A list of source=destination VCS IDs. TFM will look at each workspace in the source for the source VCS ID and assign the matching workspace in the destination with the destination VCS ID.
0 commit comments