Skip to content

Resource: pingaccess_keypair

Provides a keypair.

Tip

The PingAccess API does not provider repeatable means of querying a sensitive value, we are unable to detect configuration drift of the sensitive password attribute.

Example Usage

resource "pingaccess_keypair" "demo_keypair" {
  alias     = "demo"
  file_data = filebase64("test_cases/provider.p12")
  password  = "top_secret"
}

Argument Attributes

The following arguments are supported:

  • alias - (required) The alias for the keypair.

  • file_data - (required) The base64-encoded data of the keypair.

  • password - The Password used to protect the PKCS#12 file.

  • hsm_provider_id - The HSM Provider ID.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

Import

PingAccess keypairs can be imported using the id, e.g.

$ terraform import pingaccess_keypair.demo_keypair 123