Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Истории успеха
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Terraform в Yandex Cloud
  • Начало работы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • api_gateway
          • function
          • function_trigger
          • iot_core_broker
          • iot_core_registry
          • logging_group
          • serverless_container

В этой статье:

  • Example usage
  • Arguments & Attributes Reference
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Cloud Logging
  4. Data Sources
  5. serverless_container

yandex_serverless_container (DataSource)

Статья создана
Yandex Cloud
Обновлена 9 февраля 2026 г.
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Cloud Serverless Container. This data source is used to define Yandex Cloud Container that can be used by other resources.

Важно

Either container_id or name must be specified.

Example usageExample usage

//
// Get information about existing Serverless Container.
//
data "yandex_serverless_container" "my-container" {
  container_id = "are1samplecontainer11"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • async_invocation [Block]. Config for asynchronous invocations of Yandex Cloud Serverless Container.
    • service_account_id (String). Service account used for async invocation.
  • concurrency (Number). Concurrency of Yandex Cloud Serverless Container.
  • container_id (String). Yandex Cloud Serverless Container ID used to define container.
  • core_fraction (Number). Core fraction (0...100) of the Yandex Cloud Serverless Container.
  • cores (Number). Cores (1+) of the Yandex Cloud Serverless Container.
  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • description (String). The resource description.
  • execution_timeout (String). Execution timeout in seconds (duration format) for Yandex Cloud Serverless Container.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • image [Block]. Revision deployment image for Yandex Cloud Serverless Container.
    • args (List Of String). List of arguments for Yandex Cloud Serverless Container.
    • command (List Of String). List of commands for Yandex Cloud Serverless Container.
    • digest (String). Digest of image that will be deployed as Yandex Cloud Serverless Container. If presented, should be equal to digest that will be resolved at server side by URL. Container will be updated on digest change even if image.0.url stays the same. If field not specified then its value will be computed.
    • environment (Map Of String). A set of key/value environment variable pairs for Yandex Cloud Serverless Container. Each key must begin with a letter (A-Z, a-z).
    • url (Required)(String). URL of image that will be deployed as Yandex Cloud Serverless Container.
    • work_dir (String). Working directory for Yandex Cloud Serverless Container.
  • labels (Map Of String). A set of key/value label pairs which assigned to resource.
  • log_options [Block]. Options for logging from Yandex Cloud Serverless Container.
    • disabled (Bool). Is logging from container disabled.
    • folder_id (String). Log entries are written to default log group for specified folder.
    • log_group_id (String). Log entries are written to specified log group.
    • min_level (String). Minimum log entry level.
  • memory (Required)(Number). Memory in megabytes (aligned to 128 MB).
  • name (Required)(String). The resource name.
  • revision_id (Read-Only) (String). Last revision ID of the Yandex Cloud Serverless Container.
  • service_account_id (String). Service account which linked to the resource.
  • url (Read-Only) (String). Invoke URL for the Yandex Cloud Serverless Container.
  • connectivity [Block]. Network access. If specified the revision will be attached to specified network.
    • network_id (Required)(String). Network the revision will have access to.
  • metadata_options [Block]. Options set the access mode to revision's metadata endpoints.
    • aws_v1_http_endpoint (Number). Enables access to AWS flavored metadata (IMDSv1). Values: 0 - default, 1 - enabled, 2 - disabled.
    • gce_http_endpoint (Number). Enables access to GCE flavored metadata. Values: 0- default, 1 - enabled, 2 - disabled.
  • mounts [Block]. Mounts for Yandex Cloud Serverless Container.
    • mode (String). Mount’s accessibility mode. Valid values are ro and rw.
    • mount_point_path (Required)(String). Path inside the container to access the directory in which the target is mounted.
    • ephemeral_disk [Block]. One of the available mount types. Disk available during the function execution time.
      • block_size_kb (Number). Block size of the ephemeral disk in KB.
      • size_gb (Required)(Number). Size of the ephemeral disk in GB.
    • object_storage [Block]. Available mount types. Object storage as a mount.
      • bucket (Required)(String). Name of the mounting bucket.
      • prefix (String). Prefix within the bucket. If you leave this field empty, the entire bucket will be mounted.
  • runtime [Block]. Runtime for Yandex Cloud Serverless Container.
    • type (Required)(String). Type of the runtime for Yandex Cloud Serverless Container. Valid values are http and task.
  • secrets [Block]. Secrets for Yandex Cloud Serverless Container.
    • environment_variable (Required)(String). Container's environment variable in which secret's value will be stored. Must begin with a letter (A-Z, a-z).
    • id (Required)(String). Secret's ID.
    • key (Required)(String). Secret's entries key which value will be stored in environment variable.
    • version_id (Required)(String). Secret's version ID.
  • storage_mounts [Block]. (DEPRECATED, use mounts.object_storage instead) Storage mounts for Yandex Cloud Serverless Container.
    • bucket (Required)(String). Name of the mounting bucket.
    • mount_point_path (Required)(String). Path inside the container to access the directory in which the bucket is mounted.
    • prefix (String). Prefix within the bucket. If you leave this field empty, the entire bucket will be mounted.
    • read_only (Bool). Mount the bucket in read-only mode.

Была ли статья полезна?

Предыдущая
logging_group
Следующая
api_gateway
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»