---
layout: "fastly"
page_title: "Fastly: fastly_domain"
sidebar_current: "docs-fastly-resource-domain"
description: |-
  Manage your domains on Fastly.
---

# fastly_domain

Domain management allows you to manage your domains on Fastly and the services that they interact with.

## Example Usage

Basic usage:

```terraform
resource "fastly_domain" "example" {
    fqdn = "example.com"
    service_id = "12345abcde"
    description = "This is a test domain."
}
```

## Import

Domains can be imported using the domain ID, e.g.

```sh
terraform import fastly_domain.example <domain_id>
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `fqdn` (String) The fully-qualified domain name for your domain (e.g. `www.example.com`, no trailing dot). Can be created, but not updated.

### Optional

- `description` (String) The description for your domain.
- `service_id` (String) The service_id associated with your domain or null if there is no association.

### Read-Only

- `domain_id` (String) The Domain Identifier (UUID).
- `id` (String) The ID of this resource.
