Skip to content

Commit 8644bb4

Browse files
authored
docs: Remove unused docs and add instructions for TF 0.13+ (#44)
- Remove unused docs - Change reference to the Terraform Registry - Add install instructions for Terraform v0.13+
1 parent 2073574 commit 8644bb4

File tree

4 files changed

+25
-1665
lines changed

4 files changed

+25
-1665
lines changed

.github/workflows/ci-master-update-docs.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/generate.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/index.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,30 @@ interacts with the provider.
3333
Download the Terraform executable for your OS/Architecture from
3434
here: [https://www.terraform.io/downloads.html](https://www.terraform.io/downloads.html)
3535

36-
When you have it installed, download the
36+
37+
### Terraform v0.13+
38+
39+
As of Terraform 0.13, the new block `required_providers` was added,
40+
making it easier to use community providers, since they are automatically
41+
downloaded from the Terraform Registry.
42+
43+
You can tell Terraform to download and use `sysdiglabs/sysdig` as the `sysdig`
44+
provider by defining this block in one of your .tf files.
45+
46+
```hcl
47+
terraform {
48+
required_providers {
49+
sysdig = {
50+
source = "sysdiglabs/sysdig"
51+
version = ">= 0.4.0"
52+
}
53+
}
54+
}
55+
```
56+
57+
### Terraform v0.12
58+
59+
In older Terraform versions, you need to download the
3760
[latest version of the Terraform Provider for Sysdig](https://github.com/sysdiglabs/terraform-provider-sysdig/releases/latest)
3861
for your OS/Architecture, extract it and move the executable under `$HOME/.terraform.d/plugins` (you need to create
3962
this directory if it does not exist yet) as this link suggests:
@@ -239,7 +262,7 @@ restore the desired status from the `.tf` manifests.
239262

240263
Check all the available resources and datasources for the Terraform Provider for Sysdig here:
241264

242-
[Terraform provider for Sysdig Datasources](./usage.md)
265+
[Terraform provider for Sysdig Datasources](https://registry.terraform.io/providers/sysdiglabs/sysdig/latest/docs)
243266

244267
---
245268
![Sysdig logo](./assets/img/sysdig-logo-220.png)

0 commit comments

Comments
 (0)