-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add doc.md to know how to use the provider
Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
- Loading branch information
1 parent
935ec41
commit 2ab8c47
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
``` |