Resource
dcloud_git_deploy_key
An SSH key with access to one repository only, read-only by default: what a CI system or a server clones with.
Example Usage
resource "dcloud_git_deploy_key" "ci" {
repository_id = dcloud_git_repository.api.id
name = "ci"
public_key = file("${path.module}/ci_deploy_key.pub")
read_only = true
}Schema
Required
name(String) A name to recognise the key by, e.g. the machine. Up to 64 characters. Changing it replaces the resource.public_key(String) The OpenSSH public key line, e.g.ssh-ed25519 AAAA… comment. Up to 4000 characters. Changing it replaces the resource.repository_id(String) The id of the parent resource ({repoId}in the path). Changing it replaces the resource.
Optional
read_only(Boolean) true lets the key clone and fetch only; false also lets it push. true when absent Changing it replaces the resource.
Read-Only
fingerprint(String) The key's SHA256 fingerprint.id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_git_deploy_key.ci <repository-id>/<key-id>Generated from the provider's schema.
Related