forked from IBM-Cloud/terraform-provider-ibm
-
Notifications
You must be signed in to change notification settings - Fork 2
Terraform development using generator
SunithaGudisagar edited this page Nov 4, 2024
·
3 revisions
Refer the below doc for enhancing or for using new capabilities. https://github.ibm.com/CloudEngineering/openapi-sdkgen/wiki/Terraform-Provider-Generation
Clone https://github.ibm.com/CloudEngineering/openapi-sdkgen repository
Add you feature specific openapi.yaml file.
Add x-resource-name: "your-terraform-resource-name", x-data-source-name: "your-terraform-datasource-name" and x-data-source-collection: "your-terraform-datasource-collection-name" to your feature schema
and run command sh openapi-sdkgen.sh generate -i openapi.yaml -g ibm-terraform -o ("your-folder-name") --additional-properties initialize=true