Skip to content

Commit 1789473

Browse files
authored
docs: limitation for destination import (#537)
Co-authored-by: Christian Lechner <22294087+lechnerc77@users.noreply.github.com>
1 parent fc520d8 commit 1789473

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/limitations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ You find the details about supported and unsupported Cloud Foundry features on S
1717
## Subaccounts created with `skip_auto_entitlement`
1818

1919
The Terraform provider for SAP BTP is not able to fetch the the information if the subaccount was created with the parameter `skip_auto_entitlement` set to `true`. This flag must be set manually after generating the configuration of the subaccount.
20+
21+
## Import of Destinations
22+
23+
In general the resource `btp_subaccount_destination_generic` (available since release 1.19.0 of the Terraform provider for SAP BTP) supports the import operation. Due to the design of the resource, we cannot use the mechanism of resource configuration generation (see ) that is used as central part of this tool. Hence, the import of destinations via this tool cannot be supported and must be done manually. The flow of the manual import is:
24+
25+
1. Create the [import block](https://developer.hashicorp.com/terraform/language/block/import) for the [destination resource](https://registry.terraform.io/providers/SAP/btp/latest/docs/resources/subaccount_destination_generic#import) in the Terraform configuration.
26+
2. Create the resource configuration for the destination resource in the Terraform configuration. Please make sure to use the same name for the resource as used in the import block. The parameters needed for the configuration can be fetched from the SAP BTP Cockpit. Go to the destination details and click on the "Export" button. Choose as format `JSON` and use the content of the export for the configuration.
27+
3 Execute the import via the `terraform apply` command.

0 commit comments

Comments
 (0)