Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • container_registry
          • container_registry_ip_permission
          • container_repository
          • container_repository_lifecycle_policy

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Container Registry
  4. Data Sources
  5. container_repository_lifecycle_policy

yandex_container_repository_lifecycle_policy (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Container Repository. For more information, see the official documentation.

Warning

Either lifecycle_policy_id or name and repository_id must be specified.

Example usageExample usage

//
// Get information about existing Container Repository Lifecycle Policy.
//
data "yandex_container_repository_lifecycle_policy" "my_lifecycle_policy_by_id" {
  lifecycle_policy_id = yandex_container_repository_lifecycle_policy.my_lifecycle_policy.id
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • description (Read-Only) (String). The resource description.
  • id (String).
  • lifecycle_policy_id (String). The ID of a specific Lifecycle Policy.
  • name (String). The resource name.
  • repository_id (String). The ID of the repository that the resource belongs to.
  • rule (Read-Only) (List Of Object).
    • description .
    • expire_period .
    • retained_top .
    • tag_regexp .
    • untagged .
  • status (Read-Only) (String). The status of lifecycle policy. Must be active or disabled.
  • timeouts [Block].
    • default (String).

Was the article helpful?

Previous
container_repository
Next
container_registry
© 2026 Direct Cursus Technology L.L.C.