Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • cloudregistry_lifecycle_policy
          • cloudregistry_registry
          • cloudregistry_registry_ip_permission
  1. Terraform reference
  2. Resources
  3. Cloud Registry
  4. Data Sources
  5. cloudregistry_lifecycle_policy

yandex_cloudregistry_lifecycle_policy (DataSource)

Written by
Yandex Cloud
Updated at April 9, 2026

A LifecyclePolicy resource.

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). Output only. Creation timestamp.
  • created_by (Read-Only) (String). Output only. ID of the user who created the lifecycle policy.
  • description (String). Description of the lifecycle policy. 0-1024 characters long.
  • id (String). ID of the lifecycle policy to return.
  • modified_at (Read-Only) (String). Output only. Modification timestamp.
  • modified_by (Read-Only) (String). Output only. ID of the user who last modified the lifecycle policy.
  • name (String). Name of the lifecycle policy.
  • policy_id (String). ID of the lifecycle policy to return.
  • registry_id (Required)(String). ID of the registry that the lifecycle policy belongs to.
  • rules [Block]. List of lifecycle rules.
    • delete [Block]. Rule that deletes artifacts.
      • always (Bool). Always delete (use with caution).
      • cooldown_period_days (Number). Cooldown period in days before deletion.
      • older_than_days (Number). Delete artifacts older than specified days.
      • type (String). Type of deletion.
      • version_condition [Block]. Delete artifacts by version count condition.
        • versions_count_greater_than (Number). Delete when version count exceeds this number.
    • docker_filters [Block]. Docker-specific filters.
      • tag_status (String). Filter by tag status.
    • keep_by_age [Block]. Rule that keeps artifacts by age.
      • younger_than_days (Number). Keep artifacts younger than this number of days.
    • keep_by_version [Block]. Rule that keeps artifacts by version count.
      • keep_versions_count (Number). Number of versions to keep.
    • maven_filters [Block]. Maven-specific filters.
      • version_type (String). Filter by version type.
    • path_prefix (String). Path prefix to which the rule applies.
    • version_regexp (String). Regular expression pattern to match package version or docker tag.
  • state (String). Current state of the lifecycle policy.
  • timeouts [Block].
    • create (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    • delete (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    • read (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    • update (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

Was the article helpful?

Previous
logging_group
Next
cloudregistry_registry
© 2026 Direct Cursus Technology L.L.C.