The Terraform Exporter for SAP BTP (btptf CLI) is a handy tool that makes it easier to bring your existing SAP Business Technology Platform (BTP) resources into Terraform. With it, you can take things like subaccounts and directories in BTP and turn them into configuration files including the import of the state. It's especially useful for teams who are moving to Terraform but still need to manage older infrastructure or SAP BTP accounts that are already set up.
Here's how it works:
- Resource Identification: Terraform Exporter for SAP BTP identifies the SAP BTP resources and maps them to corresponding Terraform resources.
- Import Process: The tool uses Terraform's import function to create the import blocks required for the state import.
- Configuration Generation: It generates the Terraform code (in HashiCorp Configuration Language - HCL) for each resource, enabling further customizations as needed.
You can install btptf CLI across various operating systems as described below.
You find the documentation of the Terraform Exporter for SAP BTP on the GitHub page of this repository.
Here are some quick links to the most important documentation sections:
If you want to contribute to the code of the Terraform Exporter for SAP BTP, please check our Contribution Guidelines. The technical setup and how to get started are described in the Developer Guide
This project is open to feature requests/suggestions, bug reports, and so on, via GitHub issues:
❓ - If you have a question you can ask it here in GitHub Discussions.
🐞 - If you find a bug, feel free to create a bug report.
💡 - If you have an idea for improvement or a feature request, please open a feature request.
Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2025 SAP SE or an SAP affiliate company and terraform-exporter-for-sap-btp contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.