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.
This extension supports the following features:
- Terraform commands: init, plan, apply, validate, refresh and destroy.
- Auto complete: Autocomplete resource types, parameters, and resource definitions.
- Import resource: display the existing
CVM
resource and then import it as a tf file by Terraformer.
TO-DO(Features to be supported in the future):
- Visualize: graph the terraform resources and modules.
- Autocomplete: provider code snippets of the specified resource.
- Connect to Tencent Cloud: login to Tencent Cloud and sync your account info(eg: obtain AKSK/Token automatically).
Open the Command Palette (Command
+Shift
+P
on macOS and Ctrl
+Shift
+P
on Windows/Linux) and type in one of the following commands:
Command | Description |
---|---|
Basic commands:
|
Execute terraform command against the current project workspace. If run with terminal set to Cloud Shell, will run the command in Cloud Shell. |
TencentCloud Terraform: visualize(TO-DO) | Create a visual representation of the components of the module and save it in graph.png . |
TencentCloud Terraform: push(TO-DO) | Push workspace files that meet the filter azureTerraform.files setting in your configuration to Cloud Shell. |
TencentCloud Terraform: Execute Test(TO-DO) |
Run one of the following test against the current module using a test container:
|
This extension requires:
- Terraform - If you are executing terraform commands in integrated teminal.
- Node.js 6.0+ - If you are using Cloud Shell.
- GraphViz - If you are using the visualize feature.
NOTE: Please make sure these requirements are in your PATH environment variable.
tcTerraform.secretid
andtcTerraform.secretkey
: specify the your tencentcloud secret id and key.tcTerraform.terminal
: Specifies terminal used to run Terraform commands. Valid settings arecloudshell
(TO-DO) orintegrated
.tcTerraform.checkTCCLI
: specifies whether or not TCCLI installed in the PATH.
Enjoy!