[Документация Yandex Cloud](../../index.md) > [Terraform в Yandex Cloud](../index.md) > Справочник Terraform > Ресурсы (англ.) > Billing > Resources > billing_cloud_binding

# yandex_billing_cloud_binding (Resource)

Bind cloud to billing account. Creating the bind, which connect the cloud to the billing account.
 For more information, see [the official documentation](../../billing/operations/pin-cloud.md).

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

## Example usage

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

## Arguments & Attributes Reference

- `billing_account_id` (**Required**)(String). The ID of billing account to bind cloud to.
- `cloud_id` (**Required**)(String). Service Instance ID.
- `id` (*Read-Only*) (String). The resource identifier.

## Import

The resource can be imported by using their `resource ID`. For getting it you can use Yandex Cloud [Web Console](https://console.yandex.cloud) or Yandex Cloud [CLI](../../cli/quickstart.md).

```shell
# 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
```