Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement state import without tfid #148

Open
4 of 6 tasks
kklimonda-cl opened this issue Aug 30, 2024 · 0 comments
Open
4 of 6 tasks

Re-implement state import without tfid #148

kklimonda-cl opened this issue Aug 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kklimonda-cl
Copy link
Contributor

kklimonda-cl commented Aug 30, 2024

Description

We want to drop Tfid attribute that is now common between all resources, and instead make use of the fact that the terraform ID used during state import can be any string value.

The new interface for creating import id would be based on provider functions, introduced in Terraform 1.8 and OpenTofu 1.8:

data "panos_address_group" "test_group" {
  location = {
    shared               = true
    from_panorama_shared = false
  }

  name = "test-group"
}

output "test_group_import_id" {
  value = provider::panos::create_import_id("panos_address_group", data.panos_address_group.test_group)
}

Implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant