From 0d50208f81d2b97838f483ae9a911fba4021798d Mon Sep 17 00:00:00 2001 From: qiuxin Date: Tue, 28 Dec 2021 17:23:23 +0800 Subject: [PATCH] Update main.tf Add the "required_providers". Fix error during terraform init. --- examples/tencentcloud-instance/main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/tencentcloud-instance/main.tf b/examples/tencentcloud-instance/main.tf index fd6ea1733e..cbf5a54d31 100644 --- a/examples/tencentcloud-instance/main.tf +++ b/examples/tencentcloud-instance/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + tencentcloud = { + source = "tencentcloudstack/tencentcloud" + } + } +} + data "tencentcloud_images" "my_favorate_image" { image_type = ["PUBLIC_IMAGE"] os_name = "centos"