• Application Load Balancer (ALB)
  • Audit Trails
  • Certificate Manager
  • Client Config
  • Cloud Backup
  • Cloud Billing
  • Cloud Content Delivery Network (CDN)
  • Cloud Domain Name System (DNS)
  • Cloud Logging
  • Cloud Organization
  • Compute Cloud
  • Container Registry
  • Data Processing
  • Data Transfer
  • Datasphere
  • Identity and Access Management (IAM)
  • IoT Core
  • Key Management Service (KMS)
  • Load Testing
  • Lockbox (Secret Management)
  • Managed Kubernetes (MK8S) Marketplace
  • Managed Service for Apache Airflow
  • Managed Service for Apache Kafka
  • Managed Service for ClickHouse
  • Managed Service for Elasticsearch
  • Managed Service for Greenplum
  • Managed Service for Kubernetes (MK8S)
  • Managed Service for MongoDB
  • Managed Service for MySQL
  • Managed Service for OpenSearch
  • Managed Service for PostgreSQL
  • Managed Service for Redis
  • Managed Service for SQLServer
  • Managed Service for YDB
  • Message Queue
  • Monitoring
  • Network Load Balancer (NLB)
  • Object Storage (S3)
  • Resource Manager
  • Serverless Cloud Functions
  • Serverless Containers
  • Serverless Integrations
  • Smart Captcha
  • Smart Web Security (SWS)
  • V2 Resources
  • Virtual Private Cloud (VPC)
  • Yandex API Gateway

yandex_serverless_container (Data Source)

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 usage

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

Schema

Optional

Read-Only

  • concurrency (Number) Concurrency of Yandex Cloud Serverless 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 (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.
  • id (String) The ID of this resource.
  • image (List of Object) (see below for nested schema)
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • log_options (List of Object) (see below for nested schema)
  • memory (Number) Memory in megabytes (aligned to 128 MB).
  • revision_id (String) Last revision ID of the Yandex Cloud Serverless Container.
  • service_account_id (String) Service account which linked to the resource.
  • url (String) Invoke URL for the Yandex Cloud Serverless Container.

Nested Schema for connectivity

Required:

  • network_id (String) Network the revision will have access to.

Nested Schema for metadata_options

Optional:

  • 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.

Nested Schema for mounts

Required:

  • mount_point_path (String) Path inside the container to access the directory in which the target is mounted.

Optional:

  • ephemeral_disk (Block List, Max: 1) One of the available mount types. Disk available during the function execution time. (see below for nested schema)

  • mode (String) Mount’s accessibility mode. Valid values are ro and rw.

  • object_storage (Block List, Max: 1) Available mount types. Object storage as a mount. (see below for nested schema)

Nested Schema for mounts.ephemeral_disk

Required:

  • size_gb (Number) Size of the ephemeral disk in GB.

Optional:

  • block_size_kb (Number) Block size of the ephemeral disk in KB.

Nested Schema for mounts.object_storage

Required:

  • bucket (String) Name of the mounting bucket.

Optional:

  • prefix (String) Prefix within the bucket. If you leave this field empty, the entire bucket will be mounted.

Nested Schema for runtime

Required:

  • type (String) Type of the runtime for Yandex Cloud Serverless Container. Valid values are http and task.

Nested Schema for secrets

Required:

  • environment_variable (String) Container's environment variable in which secret's value will be stored. Must begin with a letter (A-Z, a-z).

  • id (String) Secret's ID.

  • key (String) Secret's entries key which value will be stored in environment variable.

  • version_id (String) Secret's version ID.

Nested Schema for storage_mounts

Required:

  • bucket (String) Name of the mounting bucket.

  • mount_point_path (String) Path inside the container to access the directory in which the bucket is mounted.

Optional:

  • prefix (String) Prefix within the bucket. If you leave this field empty, the entire bucket will be mounted.

  • read_only (Boolean) Mount the bucket in read-only mode.

Nested Schema for image

Read-Only:

  • 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 (String) URL of image that will be deployed as Yandex Cloud Serverless Container.

  • work_dir (String) Working directory for Yandex Cloud Serverless Container.

Nested Schema for log_options

Read-Only:

  • disabled (Boolean) 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.

Предыдущая
Следующая