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
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • 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
          • cic_partner
          • cic_point_of_presence
          • cic_private_connection
          • cic_public_connection
          • cic_trunk_connection

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Cloud Interconnect
  4. Data Sources
  5. cic_public_connection

yandex_cic_public_connection (DataSource)

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

A PublicConnection resource.

Example usageExample usage

//
// Read an existing public connection.
//
data "yandex_cic_public_connection" "example" {
  public_connection_id = "public-connection-id"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). Creation timestamp in RFC3339 text format.
  • description (Read-Only) (String). Description of the publicConnection. 0-256 characters long.
  • folder_id (String). ID of the folder that the publicConnection belongs to.
  • id (String). ID of the PublicConnection resource to return.
    To get the publicConnection ID use a [PublicConnectionService.List] request.
  • ipv4_allowed_service_types (Read-Only) (List Of String). Cloud services that the publicConnection connects to.
  • ipv4_peer_announced_prefixes (Read-Only) (List Of String). IPv4 Peer Announced Prefixes
    It's an list of ip with format ipPrefix/length where address part of ipPrefix is 0
  • ipv4_peering [Block]. IPv4 peering config of connection
    • cloud_bgp_asn (Read-Only) (Number). CloudBgpAsn.
    • cloud_ip (Read-Only) (String). CloudIp.
      It's an ip with just an ipAddress format without mask.
    • peer_bgp_asn (Read-Only) (Number). PeerBgpAsn.
      PeerAsn excluding rfc5398 (excluding 64496 - 64511 and 65536 - 65551).
    • peer_bgp_md5_key (Read-Only) (String). PeerBgpMd5Key.
      Optional.
    • peer_ip (Read-Only) (String). PeerIp.
      It's an ip with just an ipAddress format without mask.
    • peering_subnet (Read-Only) (String). PeeringSubnet.
      It's an ip with format ipPrefix/length where address part of ipPrefix is 0.
  • labels (Read-Only) (Map Of String). Resource labels, key:value pairs.
    No more than 64 per resource.
    The maximum string length in characters for each value is 63.
    Each value must match the regular expression [-_0-9a-z]*.
    The string length in characters for each key must be 1-63.
    Each key must match the regular expression [a-z][-_0-9a-z]*.
  • name (Read-Only) (String). Name of the publicConnection.
    The name must be unique within the folder.
    Value must match the regular expression \|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?.
  • public_connection_id (String). ID of the PublicConnection resource to return.
    To get the publicConnection ID use a [PublicConnectionService.List] request.
  • status (Read-Only) (String). Status of the publicConnection.
  • 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).
  • trunk_connection_id (Read-Only) (String). ID of the trunk_connection that the publicConnection belongs to.
  • vlan_id (Read-Only) (Number). VLAN_ID that the privateConnection uses in multiplexing.
    Not used in connections over partners-II
    Value range: [1, 4095]

Was the article helpful?

Previous
cic_private_connection
Next
cic_trunk_connection
© 2026 Direct Cursus Technology L.L.C.