Use the community-driven open-source project btp-setup-automator. It combines multiple command line interfaces within a container image and enables you to define complex SAP BTP use cases within a JSON configuration file [see my blog post from last year].
Although you can already do a lot with the options mentioned above, several customers asked for getting support for Terraform. Started by Hashicorp in 2014 as an open-source initiative for infrastructure-as-code, Terraform has become a broadly used standard in the IT industry.
And as you can see in some blog posts (e.g., [ref1, ref2] from our SAP colleague mauriciolauffer) there is quite some interest in using Terraform in SAP BTP today.
Scope of Terraform provider for SAP BTP, v0.1.0
To address our customer’s demand SAP provides today the first release v0.1.0-beta1 of the Terraform provider for SAP BTP with a limited scope covering the following capabilities:
Create, read, and delete sub accounts
Create, read, and delete directories
Assign, read, and delete labels (directories, sub accounts)
Create, read, and delete roles
Create, read, and delete role collections
Assign, read, and delete assignment of users to role collections
Create, read, and delete service entitlements
Assign custom identity providers (global account and sub account)
As the release number indicates the Terraform provider for SAP BTP certainly has some rough edges, so we do not recommend a productive usage of this version. Our clear goal for this version is to collect your feedback.
Please keep in mind that Terraform persists the state of the scripts on the machine that is executing them. That state can contain sensitive data.Please keep that in mind and follow the recommendations for Terraform.
First sample code available: Automate SAP BTP withTerraform
Try it out and get used to Terraform and how you can use the Terraform provider for SAP BTP in real-life use cases.
Extending the scope in the next months
As mentioned before, within the next months, we want to collect feedback from our customers and partners to evaluate v0.1.0 and to ensure that the capabilities provided by the Terraform provider for SAP BTP are covering the customers/partners requirements and fit to their needs.
We target a (roughly) monthly release update. Once we see that the Terraform provider for SAP BTP is ready for productive use, we will provide a v1.0.0 release. Until that point in time, we will continuously evolve the v0.x.x version.
Engage and provide feedback!
To allow a focused discussion and to keep track of raised issues, we ask you to use the GitHub repository for the Terraform provider for SAP BTP.