Is it possible to provision resources for Cloud Foundry spaces? #510
-
After creating a cloud foundry environment instance as so:
I see that no spaces are created. Do I have to mix and mash with the cloudfoundry tf provider in order to create a space and the necessary resources for it? Additionally, would the lack of a created space be responsible for issues with service instances being created? For example, when I try to create a xsuaa instance with this code:
I get this error:
Or is this perhaps a service plan id error? Do you have a better way of getting the service plan ids instead of the data source? It is a little hard to tell what is what via the data source. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @AFK-Python , The Terraform provider for SAP BTP is based on the BTP CLI (server) and, hence, its functionality is by design restricted to the BTP-specific resources. When it comes to service instances it follows the same pattern: if you want to create a service instance in a CF space you need to make use of the CF provider. If you want to create a service instance that is not specific to a runtime/environment, you can use the Terraform provider for SAP BTP. The later would correspond to the creation of a service instance in the BTP cockpit in the environment "other". |
Beta Was this translation helpful? Give feedback.
-
Have a look at: https://registry.terraform.io/providers/cloudfoundry-community/cloudfoundry/latest |
Beta Was this translation helpful? Give feedback.
Hi @AFK-Python ,
The Terraform provider for SAP BTP is based on the BTP CLI (server) and, hence, its functionality is by design restricted to the BTP-specific resources.
When it comes to Cloud Foundry (or Kubernetes) specific resources, you must switch to the corresponding provider. To create a CF space, you have to mix in the CF provider.
When it comes to service instances it follows the same pattern: if you want to create a service instance in a CF space you need to make use of the CF provider. If you want to create a service instance that is not specific to a runtime/environment, you can use the Terraform provider for SAP BTP. The later would correspond to the creation of a service ins…