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

Replace nested types.ResourceSchema with types.SingleNestedBlock / types.ObjectType #64

Open
alexmingoia opened this issue Sep 13, 2024 · 0 comments

Comments

@alexmingoia
Copy link
Collaborator

Terraform's new import blocks feature doesn't handle nested resource schemas.

Rootly's Terraform provider was written before Terraform 1.3 to support 0.14+. Before version 1.3, Terraform lacked support for nested objects in schemas. Nested object schemas were added in TF 1.3 (types.SingleNestedBlock + types.ObjectType ). Their workaround at the time was to use nested resources. The trigger_params and task_params attribute schemas are defined as types.ResourceSchema. It seems Terraform's import blocks don't handle this old workaround correctly.

What we can do is release a new provider requiring minimum of TF 1.3+, rewriting nested objects with old type types.ResourceSchema with the new types.SingleNestedBlock + types.ObjectType .

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

No branches or pull requests

1 participant