Closed backjo closed 5 months ago
Thank you for the report, @backjo! You're right, the prefix needs to be stripped from the ID. You can use the built-in https://developer.hashicorp.com/terraform/language/functions/trimprefix for this.
We'll update the documentation shortly to reflect that.
hey @cv - that's totally what we're doing to workaround. Ideally, it'd behave like the other TF resources and I'd be able to take the output ID from the insert_function as the argument for function_id
Hi @backjo this has been fixed in v0.10.0. Thanks for waiting!
Description The segment_insert_function_instance resource does not work with the ID being output from the segmentfunction resource as show in the documents. This appears to be due to the ifnd prefix being output from segment_function, which causes a 404 not found on the insert-function-instances API because it expects the prefix to be trimmed / not be present
To Reproduce
Example Terraform code that triggers the issue: