yandex_organizationmanager_os_login_settings (Resource)
Статья создана
Обновлена 7 августа 2025 г.
Allows management of OsLogin Settings within an existing Yandex Cloud Organization.
Example usage
//
// Create a new OrganizationManager OS Login Settings.
//
resource "yandex_organizationmanager_os_login_settings" "my_settings" {
organization_id = "sdf4*********3fr"
user_ssh_key_settings {
enabled = true
allow_manage_own_keys = true
}
ssh_certificate_settings {
enabled = true
}
}
Schema
Required
organization_id(String) The organization to manage it's OsLogin Settings.
Optional
ssh_certificate_settings(Block List, Max: 1) SSH Certificate settings. (see below for nested schema)timeouts(Block, Optional) (see below for nested schema)user_ssh_key_settings(Block List, Max: 1) Users SSH key settings. (see below for nested schema)
Read-Only
id(String) The ID of this resource.
Nested Schema for ssh_certificate_settings
Optional:
enabled(Boolean) Enables or disables usage of SSH certificates signed by trusted Certification Authority (CA).
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Nested Schema for user_ssh_key_settings
Optional:
allow_manage_own_keys(Boolean) If set to true subject is allowed to manage own ssh keys without having to be assigned specific permissions.enabled(Boolean) Enables or disables usage of ssh keys assigned to a specific subject.
Import
The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console
# terraform import yandex_organizationmanager_os_login_settings.<resource Name> <resource Id>
terraform import yandex_organizationmanager_os_login_settings.my_settings ...