2017-03-29 18:37:14 +02:00
|
|
|
---
|
2017-04-04 00:24:53 +02:00
|
|
|
layout: "opc"
|
2017-03-29 18:37:14 +02:00
|
|
|
page_title: "Oracle: opc_compute_ssh_key"
|
2017-04-04 00:24:53 +02:00
|
|
|
sidebar_current: "docs-opc-resource-ssh-key"
|
2017-03-29 18:37:14 +02:00
|
|
|
description: |-
|
|
|
|
Creates and manages an SSH key in an OPC identity domain.
|
|
|
|
---
|
|
|
|
|
|
|
|
# opc\_compute\_ssh_key
|
|
|
|
|
|
|
|
The ``opc_compute_ssh_key`` resource creates and manages an SSH key in an OPC identity domain.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "opc_compute_ssh_key" "%s" {
|
2017-04-07 12:57:52 +02:00
|
|
|
name = "test-key"
|
|
|
|
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
|
|
|
|
enabled = true
|
2017-03-29 18:37:14 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The unique (within this identity domain) name of the SSH key.
|
|
|
|
|
|
|
|
* `key` - (Required) The SSH key itself
|
|
|
|
|
2017-04-04 00:24:53 +02:00
|
|
|
* `enabled` - (Optional) Whether or not the key is enabled. This is useful if you want to temporarily disable an SSH key,
|
|
|
|
without removing it entirely from your Terraform resource definition. Defaults to `true`
|
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
SSH Key's can be imported using the `resource name`, e.g.
|
|
|
|
|
|
|
|
```
|
|
|
|
terraform import opc_compute_ssh_key.key1 example
|
|
|
|
```
|