Skip to content

Commit

Permalink
updated identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Wadsworth committed Jul 28, 2023
1 parent 8d95033 commit cc042a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ var externalNameConfigs = map[string]config.ExternalName{
// Imported by using the following projects/{{project}}/global/snapshots/{{snapshot}} roles/viewer user:jane@example.com
"google_compute_snapshot_iam_member": config.IdentifierFromProvider,
// Imported by using the following projects/{{project}}/regions/{{region}}/routers/{{router}}/{{name}}
"google_compute_router_peer": config.TemplatedStringAsIdentifier("name", "projects/{{ if .parameters.project }}{{ .parameters.project }}{{ else }}{{ .setup.configuration.project }}{{end}}/regions/{{ .parameters.region }}/routers/{{ .parameters.router }}/{{ .external_name }}"),
// "google_compute_router_peer": config.TemplatedStringAsIdentifier("name", "projects/{{ if .parameters.project }}{{ .parameters.project }}{{ else }}{{ .setup.configuration.project }}{{end}}/regions/{{ .parameters.region }}/routers/{{ .parameters.router }}/{{ .external_name }}"),
// Imported by using the following {{router}}/{{name}}
"google_compute_router_peer": config.TemplatedStringAsIdentifier("name", "{{ .parameters.router }}/{{ .external_name }}"),

// container
//
Expand Down

0 comments on commit cc042a8

Please sign in to comment.