Skip to main content

Resource selectel_iam_saml_federation_certificate_v1

Last update:
For your information

This guide is a copy of the Selectel Terraform provider documentation in the Terraform Registry.

Manages SAML Federation Certificates for Selectel products using public API v1. Selectel products support Identity and Access Management (IAM). For more information about Federation Certificates, see the official Selectel documentation.

Usage Example

resource "selectel_iam_saml_federation_certificate_v1" "certificate" {
federation_id = selectel_iam_saml_federation_v1.federation_1.id
name = "certificate name"
description = "simple description"
data = file("${path.module}/federation_cert.crt")
}

Argument Reference

  • federation_id — (Required) Unique identifier of the federation.

  • name — (Required) Certificate name.

  • description — (Optional) Certificate description.

  • data — (Required) Certificate data. Must begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.

Attributes Reference

  • account_id — Selectel account ID.

  • not_before — Certificate issue date.

  • not_after — Certificate expiration date.

  • fingerprint — Certificate fingerprint.

Import

You can import a certificate:

export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
export OS_SAML_FEDERATION_ID=<federation_id>
terraform import selectel_iam_saml_federation_certificate_v1.certificate_1 <certificate_id>

where:

  • <account_id> — Selectel account ID. You can find the account ID in the top right corner of the Control panel. Learn more about registration.

  • <username> — Service user name. To get the name, in the Control panel, go to Identity & Access ManagementUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service Users.

  • <password> — Service user password.

  • <federation_id> — Unique identifier of the associated federation for which the certificate is issued, for example, abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control panel, go to IAMFederations → copy the ID under the federation name.

  • <certificate_id> — Unique identifier of the certificate.