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

Deploy schema from a json file #99

Closed
piby180 opened this issue May 30, 2024 · 3 comments
Closed

Deploy schema from a json file #99

piby180 opened this issue May 30, 2024 · 3 comments

Comments

@piby180
Copy link

piby180 commented May 30, 2024

Hi,
Thanks for this providor! Is it possible to deploy schema from json file instead?

@azaurus1
Copy link
Owner

Hi @piby180, You can use jsondecode to read your json file into terraform and then parse it.

There isn't currently an example for this with schemas, but take a look at the examples for tables: https://github.com/azaurus1/terraform-provider-pinot/blob/main/examples/tables/main.tf, where the realtime_table_example.json file is decoded and then used to define the table resource.

@piby180
Copy link
Author

piby180 commented May 30, 2024

Thanks! I probably then have to create a module with this logic and reuse it.

In the end we have 100s of tables and I want to deploy both table and schema by just providing path to json file.

@azaurus1
Copy link
Owner

Sure no worries, and feel free to reach out with any questions

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

2 participants