You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* tips options demo
* add github workflow2
* 0.0.19
* feat: update json
* support example and update example json
* support login status
* support logout
* fix login out issue
* 1.adjust log out logic. 2.support input region
* 0.0.22
* 0.0.23 release
* 0.0.23
Copy file name to clipboardExpand all lines: README.md
+53-22
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,30 @@
1
1
# TencentCloud Terraform
2
2
3
-
The VSCode TIAT(Tencent Infrastructure Automation for Terraform)Terraform extension is designed to increase developer productivity authoring, testing and using Terraform with Tencent Cloud. The extension provides terraform command support, resource graph visualization and CloudShell integration inside VSCode.
3
+
The VSCode TIAT(Tencent Infrastructure Automation for Terraform)Terraform extension is designed to improve the efficiency of DevOps when using Terraform with Tencent Cloud. The extension provides TencentCloud Account login, resource explorer, code auto-complete, argument tips, and command support inside VSCode.
4
4
5
5
## Features
6
6
7
7
This extension supports the following features:
8
8
9
-
- Terraform commands: init, plan, apply, validate, refresh and destroy.
10
-
- Auto complete: Autocomplete resource types, parameters, and resource definitions.
11
-
- Import resource: display the existing `CVM` resource and then import it as a tf file by [Terraformer](https://github.com/GoogleCloudPlatform/terraformer).
9
+
- Login: log in Tencent Cloud with AKSK.
10
+
- Terraform Commands: init, plan, apply, and destroy through the VSCode command Palette.
11
+
- Auto Complete: provides code suggestions and auto-complete resource types, arguments, and options. Provides ways to go to resource documents.
12
+
- Code Snippets/Example: provides a completed example code when typing the specified resource type.
13
+
- Import Resource: display the existing `CVM` resource and then import it as a tf file by [Terraformer](https://github.com/GoogleCloudPlatform/terraformer).
12
14
13
15
*TO-DO(Features to be supported in the future):*
14
16
- Visualize: graph the terraform resources and modules.
15
-
- Autocomplete: provider code snippets of the specified resource.
16
-
-Connect to Tencent Cloud: login to Tencent Cloud and sync your account info(eg: obtain AKSK/Token automatically).
17
+
- Autocomplete: provider code snippets explorer of the specified resource.
18
+
-Validate: code check under security and compliance.
17
19
18
-
## Commands
20
+
## Quick Start
21
+
### 1.Login Tencent Cloud
22
+
Provide Log in entry to Tencent Cloud.
23
+

24
+
After logged, you can see your account and detail when hovering the status bar.
Run one of the following test against the current module using a test container: <br>
54
+
<td width="35%">
55
+
Login commands:<br>
59
56
<ul>
60
-
<li>lint: This command will check the formating of the code of the Terraform module.</li>
61
-
<li>e2e: This command will deploy the current module with the settings specified in the .tfvars file, verify that the deployment pass the controls and destroy the resources that have been created.</li>
57
+
<li>TencentCloud Terraform: Login</li>
58
+
<li>TencentCloud Terraform: Logout</li>
62
59
</ul>
63
60
</td>
61
+
<td>
62
+
The shortcut of log in and log out with Tencent Cloud.
63
+
</td>
64
64
</tr>
65
65
</tbody>
66
66
</table>
67
67
68
68
69
+
### 3.Auto Complete
70
+
When you typing the resource type, attribute, and options, there is a suggestions dialog.
When you typing the `{` after a resource type and name, there is a example suggestions.
81
+

82
+
83
+
Press `Enter` to insert the whole example.
84
+
85
+
### 5.Import Resource(demo)
86
+
> NOTE: only support on `tencentcloud_instance` resource.
87
+
When you logged into Tencent Cloud Account, you may see the resources under this account.
88
+

89
+
90
+
Choose one resource to import it.
91
+
After a few minutes, the import resource will be in the `generated` folder.
92
+
93
+
### 6.Resource definition
94
+
When you place the cursor on a resource type, use the `go to definition` (`Command` on macOS) button to jump to this resource document of the terraform provider website.
0 commit comments