tencent cloud

Feedback

Resource Import

Last updated: 2020-09-04 10:55:37

    Introduction

    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.

    Note:

    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

    Directions

    Importing resources

    1. Log in to the TIC console. In the left sidebar, choose Orchestration -> Stacks to go to the Stacks page.
    2. On the Stacks page, click New stack.
    3. In the Select Mode step, select a region, specify a template for importing resources, and select the resources to be imported.
      image-20200710154557033
    4. Click Next to import the selected resources.
    5. The more resources you select to import, the longer it will take to import them. After the resources are imported, click Import Completed to go to the Configure the Stack step.

    Configuring the stack

    1. After the resources are imported, the stack configurations will be generated automatically.
    2. After you confirm that the stack configurations are correct, click Next to go to the Plan step.

      Note:

      To ensure that the import operation does not affect resource configurations on the live network, follow these rules when you confirm the stack configurations:

      1. Do not modify parameters of the ForceNew type. For example, in the configuration parameters of CDN tencentcloud_cdn_domain, the domain and service_type parameters are of the ForceNew type. 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.
      2. 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.
      3. If you have any questions about the generated configuration parameters, submit a ticket to contact the TIC team before you perform subsequent operations.
    3. Check whether the plan results meet your requirements, especially whether any resources have been added, changed, or destroyed. If the plan results meet your requirements, click Next.
      image-20200710154824278

      Note:

      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 ForceNew type. If you have any questions, submit a ticket to contact the TIC team before you perform subsequent operations.

    4. Set the stack name and the description and click Confirm to create the stack.

    Viewing the stack status

    1. Go to the Stacks page. Click the name of the created stack to go to the stack details page.
    2. Click the Events tab and view the stack status. APPLY_IN_PROGRESS indicates that the resource information is being synchronized.
      image-20200710155056811
    3. Wait 10 seconds or more for the resource information synchronization to complete. Then, the stack status will change to APPLY_COMPLETED.
      image-20200710155906888
    4. Verify that the resources have been imported into the created stack. On the Resources tab of the Stacks page, you can view the imported Tencent Cloud resources. To manage these resources, you only need to modify the configurations of the stack.
      image-20200710155952490
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support