Skip to content

Commit

Permalink
Adding DeleteBeforeReplace for IAMMember, VPNTunnel, etc, fixes #190 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade authored Nov 7, 2024
2 parents 4fd50a5 + ffc12a7 commit 6df983c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ func Provider() tfbridge.ProviderInfo {
Docs: &tfbridge.DocInfo{
Source: "google_project_iam.html.markdown",
},
DeleteBeforeReplace: true,
},
"google_project_iam_policy": {
Tok: gcpResource(gcpProject, "IAMPolicy"),
Expand Down Expand Up @@ -926,6 +927,7 @@ func Provider() tfbridge.ProviderInfo {
Docs: &tfbridge.DocInfo{
Source: "google_service_account_iam.html.markdown",
},
DeleteBeforeReplace: true,
},
"google_service_account_iam_policy": {
Tok: gcpResource(gcpServiceAccount, "IAMPolicy"),
Expand Down Expand Up @@ -1019,7 +1021,7 @@ func Provider() tfbridge.ProviderInfo {
},
},
"google_compute_external_vpn_gateway": {Tok: gcpResource(gcpCompute, "ExternalVpnGateway")},
"google_compute_global_address": {Tok: gcpResource(gcpCompute, "GlobalAddress")},
"google_compute_global_address": {Tok: gcpResource(gcpCompute, "GlobalAddress"), DeleteBeforeReplace: true},
"google_compute_global_forwarding_rule": {Tok: gcpResource(gcpCompute, "GlobalForwardingRule")},
"google_compute_global_network_endpoint": {Tok: gcpResource(gcpCompute, "GlobalNetworkEndpoint")},
"google_compute_global_network_endpoint_group": {Tok: gcpResource(gcpCompute, "GlobalNetworkEndpointGroup")},
Expand Down Expand Up @@ -1142,7 +1144,7 @@ func Provider() tfbridge.ProviderInfo {
Fields: nameField(lowercaseAutoName()),
},
"google_compute_vpn_gateway": {Tok: gcpResource(gcpCompute, "VPNGateway")},
"google_compute_vpn_tunnel": {Tok: gcpResource(gcpCompute, "VPNTunnel")},
"google_compute_vpn_tunnel": {Tok: gcpResource(gcpCompute, "VPNTunnel"), DeleteBeforeReplace: true},
"google_compute_reservation": {Tok: gcpResource(gcpCompute, "Reservation")},
"google_compute_region_health_check": {Tok: gcpResource(gcpCompute, "RegionHealthCheck")},
"google_compute_region_url_map": {Tok: gcpResource(gcpCompute, "RegionUrlMap")},
Expand Down

0 comments on commit 6df983c

Please sign in to comment.