Skip to content

Commit

Permalink
- Add doc.md to know how to use the provider
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Jan 24, 2020
1 parent 935ec41 commit 2ab8c47
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Help to use the civo terraform provider

## Leyend

- ``#`` (optional parameter)

### Define provider

```
provider "civo" {
token = "token"
}
```

### Create a Network

```bash
resource "civo_network" "custom_net" {
label = "test_network"
}
```

### Create a Instances

```bash
resource "civo_instance" "my-test-instance" {
hostname = "test-terraform"
initial_user = "root"
size = "g2.large"
# template = "id"
# network_id = civo_network.custom_net.id // this will be calculate automatic
# depends_on = [civo_network.custom_net] // this is to wait for the creation of the network
}
```

### Create a Volume

```bash
resource "civo_volume" "custom_volume" {
name = "backup-data"
size_gb = 60
bootable = false
# instance_id = civo_instance.my-test-instance.id // this will be calculate automatic
# depends_on = [civo_instance.my-test-instance] // this is to wait for the creation of the instances
}
```

0 comments on commit 2ab8c47

Please sign in to comment.