# Sample terraform template for endpoint attachment creation

The following is a sample terraform template for endpoint attachment creation.

> [!NOTE]
> **Note:**This sample is not specific to any connector. It just shows how an endpoint attachment creation terraform template looks like. You must repurpose this sample based on your requirements.

```terraform
resource "google_integration_connectors_endpoint_attachment" "default" {
  name               = "test-endpoint-attachment"
  location           = "us-central1"
  description        = "tf created description"
  service_attachment = "projects/connectors-example/regions/us-central1/serviceAttachments/test"
  labels = {
    foo = "bar"
  }
}
```