Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.41 KB

File metadata and controls

46 lines (32 loc) · 1.41 KB
subcategory
Resources

centrify_sshkey (Resource)

This resource allows you to create/update/delete ssh key.

Example Usage

resource "centrify_sshkey" "test_key" {
  name = "Test Key"
    description = "Test RSA key"
    private_key = file("rsa.key")
    passphrase = ""
}

More examples can be found here

Argument Reference

Required

  • name - (String) Name of the SSH Key.

Optional

  • description - (String) Description of the SSH Key
  • challenge_rule - (Block List) Authentication rules. Refer to challenge_rule attribute for details.
  • default_profile_id - (String) Default SSH Key Challenge Profile ID (used if no conditions matched).
  • private_key - (String, Sensitive) SSH private key.
  • passphrase - (String, Sensitive) Passphrase to use for encrypting the PrivateKey.
  • permission - (Block Set) Domain permissions. Refer to permission attribute for details.
  • sets (Set of String) List of Set IDs the resource belongs to. Refer to sets attribute for details.

Import

SSH Key can be imported using the resource id, e.g.

terraform import centrify_sshkey.example xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Limitation: permission and set aren't supported in import process.