selectel_iam_saml_federation_certificate_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в 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.
Example Usage
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. The account ID is in the top right corner of the Control panel. Learn more about Registration. -
not_before
— Issue date of the certificate. -
not_after
— Expiration date of the certificate. -
fingerprint
— Fingerprint of the certificate.
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>