yandex_serverless_container (Data Source)
- Example usage
- Schema
- Optional
- Read-Only
- Nested Schema for connectivity
- Nested Schema for metadata_options
- Nested Schema for mounts
- Nested Schema for mounts.ephemeral_disk
- Nested Schema for mounts.object_storage
- Nested Schema for runtime
- Nested Schema for secrets
- Nested Schema for storage_mounts
- Nested Schema for image
- Nested Schema for log_options
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
connectivity
(Block List, Max: 1) (see below for nested schema)container_id
(String) Yandex Cloud Serverless Container ID used to define container.folder_id
(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-id
is used.metadata_options
(Block List, Max: 1) (see below for nested schema)mounts
(Block List) (see below for nested schema)name
(String) The resource name.runtime
(Block List, Max: 1) (see below for nested schema)secrets
(Block List) (see below for nested schema)storage_mounts
(Block List, Deprecated) (see below for nested schema)
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.
connectivity
Nested Schema for Required:
network_id
(String) Network the revision will have access to.
metadata_options
Nested Schema for 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.
mounts
Nested Schema for 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 arero
andrw
. -
object_storage
(Block List, Max: 1) Available mount types. Object storage as a mount. (see below for nested schema)
mounts.ephemeral_disk
Nested Schema for Required:
size_gb
(Number) Size of the ephemeral disk in GB.
Optional:
block_size_kb
(Number) Block size of the ephemeral disk in KB.
mounts.object_storage
Nested Schema for 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.
runtime
Nested Schema for Required:
type
(String) Type of the runtime for Yandex Cloud Serverless Container. Valid values arehttp
andtask
.
secrets
Nested Schema for 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.
storage_mounts
Nested Schema for 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.
image
Nested Schema for 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 ifimage.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.
log_options
Nested Schema for 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.