aws-iam-ls 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/images/iam.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-iam-ls",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "./src/server.js",
|
|
6
6
|
"publisher": "MichaelBarney",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"onLanguage:yaml",
|
|
16
16
|
"onLanguage:terraform"
|
|
17
17
|
],
|
|
18
|
+
"icon": "./images/iam.png",
|
|
18
19
|
"main": "./src/extension.js",
|
|
19
20
|
"scripts": {
|
|
20
21
|
"start": "node src/server.ts --stdio",
|
package/readme.md
CHANGED
|
@@ -9,6 +9,32 @@ It supports policies written in
|
|
|
9
9
|
- CloudFormation/SAM (YAML or JSON)
|
|
10
10
|
- HCL (`jsonencode` objects or `statement` blocks)
|
|
11
11
|
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Visual Studio Code
|
|
15
|
+
|
|
16
|
+
Intsll the [extension](https://marketplace.visualstudio.com/items?itemName=MichaelBarney.aws-iam-ls).
|
|
17
|
+
|
|
18
|
+
### Neovim, etc
|
|
19
|
+
|
|
20
|
+
You can install the language server globally with npm:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install -g aws-iam-ls
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
And then you can set your editor up, for instance if you're running Neovim:
|
|
27
|
+
|
|
28
|
+
```lua
|
|
29
|
+
vim.lsp.config("aws-iam-ls", {
|
|
30
|
+
cmd = { "aws-iam-ls", "--stdio" },
|
|
31
|
+
filetypes = { "yaml", "yaml.cloudformation", "json", "json.cloudformation", "terraform", "tofu" },
|
|
32
|
+
root_markers = { ".git" },
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
vim.lsp.enable("aws-iam-ls")
|
|
36
|
+
```
|
|
37
|
+
|
|
12
38
|
## Features
|
|
13
39
|
|
|
14
40
|
### Completion
|