Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • cloudregistry_folder
          • cloudregistry_lifecycle_policy
          • cloudregistry_registry
          • cloudregistry_registry_ip_permission
          • cloudregistry_scan_policy
  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 July 30, 2026
View in Markdown

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.
    • description (String). Description of the lifecycle policy rule
    • 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
cloudregistry_folder
Next
cloudregistry_registry
© 2026 Direct Cursus Technology L.L.C.