Open lonelyelk opened 3 months ago
Its not just 1.18 .. it also doesn't seem to work in 1.5.6 .. same issue
I have the same problem. It's not Terraform, it's the provider.
The import statement states $ terraform import lacework_policy_exception.example YourLQLPolicyID YourExceptionID
but that doesn't make sense. In every other provider I've used the part after the resource is always one string, I've never seen two strings divided by a space like that.
Describe the bug
The documentation command for import doesn't work. It fails with usage error:
Trying to import by ID doesn't work either as the code executed by terraform is not the code in the provider (judging by the output)
Running
terraform plan -generate-config-out=generated.tf
produces:Same goes when creating a resource with
policy_id
value and runningterraform import lacework_policy_exception.example 11111111-2222-3333-4444-555555555555
. But the output is slightly different:lacework_policy_exception.example: Importing from ID ...
To Reproduce
Steps to reproduce the behavior:
Alternatively:
terraform state rm lacework_policy_exception.example
Expected behavior
I think using UUID implies that finding a policy exception using its ID only should be possible. I'd like to use both: import block and import command (see current docs)
Please complete the following information):