Skip to content

Commit

Permalink
add tiat framework
Browse files Browse the repository at this point in the history
  • Loading branch information
lyu571 committed Mar 27, 2023
1 parent 1c20c1e commit 2bd5300
Show file tree
Hide file tree
Showing 6 changed files with 19,564 additions and 2,633 deletions.
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Tencent Corporation. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,36 @@

WARNING! This is very beta, things might not work as expected so don't rely solely on this extension as a complete reference to terraform parameters and exported arguments. PRs welcome!

This extension provides basic autocomplete on AWS resources. Scraping functionality can be found at https://github.com/erd0s/terraform-scrape.
This extension provides basic autocomplete on TencentCloud resources. Scraping functionality can be found at https://github.com/erd0s/terraform-scrape.

## Requirements

Doesn't include any highlighting functionality or linting, will go well with [Mikael Olenfalk's Terraform extension](https://github.com/mauve/vscode-terraform) (but not required).

## What Works?
Hinting on aws resource types
Hinting on TencentCloud resource types

![Hinting on aws resource types](docs/1.gif)
![Hinting on TencentCloud resource types]

Hinting on resource arguments

![Hinting on resource arguments](docs/2.gif)
![Hinting on resource arguments]

Hinting on variables `${<hints here>.<more hints>.<wow! hints!>}`

![Hinting on variables](docs/3.gif)
![Hinting on variables]

Go to definition for AWS resources
Go to definition for TencentCloud resources

![Go to definition for AWS resources](docs/4.gif)
![Go to definition for TencentCloud resources]

## What Doesn't Work?
* Any other providers than AWS (could be added easily by adding to the [aws-resources.ts](src/aws-resources.ts) file).
* Any other providers than TencentCloud (could be added easily by adding to the [TencentCloud-resources.ts] file).
* Exporting attributes across files.
* Autocomplete on nested varibles, eg. `aws_s3_bucket_notification.somename.queue.<can't complete past here>`.
* Autocomplete on nested varibles, eg. `TencentCloud_s3_bucket_notification.somename.queue.<can't complete past here>`.

## Known Issues

I found that having the advanced terraform snippets extension enabled at the same time as this obscured the hints in some instances.

## Release Notes

See the [changelog](CHANGELOG.md) for more info.
Loading

0 comments on commit 2bd5300

Please sign in to comment.