Skip to content

Commit

Permalink
fix(artifact-registry): fix a move issue with tf>1.7 (#2617)
Browse files Browse the repository at this point in the history
The TF 1.8 has introduced a new feature that makes the move failing:
> Providers can now transfer the ownership of a remote object between resources of different types, for situations where there are two different resource types that represent the same remote object type.
> This extends the moved block behavior to support moving between two resources of different types only if the provider for the target resource type declares that it can convert from the source resource type. Refer to provider documentation for details on which pairs of resource types are supported.
https://github.com/hashicorp/terraform/blob/v1.8/CHANGELOG.md#180-april-10-2024
  • Loading branch information
NitriKx authored Oct 11, 2024
1 parent 8101a26 commit ce09c07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/artifact-registry/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ moved {
}

resource "google_artifact_registry_repository_iam_binding" "authoritative" {
provider = google-beta
for_each = local.iam
project = var.project_id
location = google_artifact_registry_repository.registry.location
Expand Down

0 comments on commit ce09c07

Please sign in to comment.