You can use the resource import feature of Tencent Infrastructure as Code (TIC) to import Tencent Cloud resources created using the console or Cloud APIs into a TIC stack for unified orchestration without having to delete or re-create Tencent Cloud resources.
You can only import existing Tencent Cloud resources into a new stack, not into an existing stack.
The following table lists the Tencent Cloud services that can be imported into TIC.
|Tencent Cloud Service||Resource Type||Remarks|
|CDN||tencentcloud_cdn_domain||HTTPS certificates cannot be imported|
To ensure that the import operation does not affect resource configurations on the live network, follow these rules when you confirm the stack configurations:
- Do not modify parameters of the
ForceNewtype. For example, in the configuration parameters of CDN
service_typeparameters are of the
ForceNewtype. If these 2 parameters are modified, resources on the live network will be destroyed and re-created, which may affect businesses on the live network.
- You must manually configure parameters that cannot be automatically imported. For example, to import domain name certificates of CDN into TIC, manually configure the certificates and add them into the stack configuration file for resource orchestration and management.
- If you have any questions about the generated configuration parameters, submit a ticket to contact the TIC team before you perform subsequent operations.
TIC supports importing existing resources that have been created on Tencent Cloud. Normally, no resource is added, changed, or destroyed in the import process. If the number of added, changed, or destroyed resources is not 0 in the plan results, do not perform subsequent operations. Instead, check whether you have modified any parameters of the
ForceNewtype. If you have any questions, submit a ticket to contact the TIC team before you perform subsequent operations.