Skip to content

Commit

Permalink
Added docs for instance script & credentials datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
PCloughster committed Aug 1, 2024
1 parent 45c47e3 commit 6d7cdd3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/data-sources/ecloud_instance_credential.md
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
21 changes: 21 additions & 0 deletions docs/resources/ecloud_instance_script.md
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

0 comments on commit 6d7cdd3

Please sign in to comment.