Перейти к основному содержимому
selectel_craas_registry_v1
Последнее изменение:

selectel_craas_registry_v1

к сведению

Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.

Creates and manages a registry in Container Registry using public API v1. For more information about Container Registry, see the official Selectel documentation.

Example usage

resource "selectel_craas_registry_v1" "registry_1" {
name = "my-first-registry"
project_id = selectel_vpc_project_v2.project_1.id
}

Argument Reference

  • name - (Required) Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.

  • project_id - (Required) Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects.

Attributes Reference

  • status - Registry status.

  • endpoint - Registry endpoint. For example, cr.selcloud.ru/my-registry

Import

You can import a registry:

export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
export SEL_PROJECT_ID=<selectel_project_id>
terraform import selectel_craas_registry_v1.registry_1 <registry_id>

where:

  • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

  • <username> — Name of the service user. 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> — Password of the service user.

  • <selectel_project_id> — Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

  • <registry_id> — Unique identifier of the registry, for example, 939506d6-7621-4581-b673-eacf3db30f5b. To get the registry ID, use Selectel Cloud Management API.