-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs for instance script & credentials datasource
- Loading branch information
1 parent
45c47e3
commit 6d7cdd3
Showing
2 changed files
with
47 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,26 @@ | ||
# ecloud_credential Data Source | ||
|
||
This resource represents an eCloud | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "ecloud_credential" "instance1_root" { | ||
instance_id = "i-abcdef12" | ||
username = "root" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `instance_id`: (required) ID of the instance | ||
- `username`: Username of credential | ||
- `name`: Name of credential | ||
|
||
## Attributes Reference | ||
|
||
`id` is set to host ID | ||
|
||
- `name`: Name of host | ||
- `username`: credential username | ||
- `password`: Credential password |
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,21 @@ | ||
# ecloud_instance_script Resource | ||
|
||
This resource is for managing eCloud Networks | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "ecloud_instance_script" "instance1_provision" { | ||
instance_id = "i-abcdef12" | ||
username = data.ecloud_credential.instance1_root.username | ||
password = data.ecloud_credential.instance1_root.password | ||
script = "somescript" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `instance_id`: (Required) ID of instance | ||
- `username`: (Required) Instance user credential | ||
- `password`: (Required) Instance password credential | ||
- `script`: (Required) Script content |