Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • billing_cloud_binding

In this article:

  • Example usage
  • Schema
  • Required
  • Read-Only
  • Import
  1. Terraform reference
  2. Resources
  3. Cloud Billing
  4. Resources
  5. billing_cloud_binding

yandex_billing_cloud_binding (Resource)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Required
    • Read-Only
  • Import

Bind cloud to billing account. Creating the bind, which connect the cloud to the billing account.
For more information, see the official documentation.

Note: Currently resource deletion do not unbind cloud from billing account. Instead it does no-operations.

Example usageExample usage

//
// Create a new Billing Cloud Binding
//
resource "yandex_billing_cloud_binding" "foo" {
  billing_account_id = "foo-ba-id"
  cloud_id           = "foo-cloud-id"
}

SchemaSchema

RequiredRequired

  • billing_account_id (String) The ID of billing account to bind cloud to.
  • cloud_id (String) Service Instance ID.

Read-OnlyRead-Only

  • id (String) The resource identifier.

ImportImport

The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console or YC CLI.

The resource ID for the Billing Cloud Binding is defined as its billing_account_id separated by the /cloud/ string and followed the cloud_id.

# terraform import yandex_billing_cloud_binding.<resource Name> <ba_id>/cloud/<cloud_id>
terraform import yandex_billing_cloud_binding.my_ba_binding dn217**********7m4jq/cloud/b1g5q**********qa4f3

Was the article helpful?

Previous
billing_cloud_binding
Next
cdn_origin_group
© 2025 Direct Cursus Technology L.L.C.