2016-12-09 18:56:48 +01:00
---
layout: "aws"
page_title: "AWS: aws_lightsail_domain"
sidebar_current: "docs-aws-resource-lightsail-domain"
description: |-
2017-02-18 23:48:50 +01:00
Provides an Lightsail Domain
2016-12-09 18:56:48 +01:00
---
# aws\_lightsail\_domain
Creates a domain resource for the specified domain (e.g., example.com).
You cannot register a new domain name using Lightsail. You must register
2017-02-18 23:48:50 +01:00
a domain name using Amazon Route 53 or another domain name registrar.
If you have already registered your domain, you can enter its name in
this parameter to manage the DNS records for that domain.
2016-12-09 18:56:48 +01:00
2017-06-01 19:36:32 +02:00
~> **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail" ](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail ) for more details
2016-12-09 18:56:48 +01:00
## Example Usage, creating a new domain
2017-04-17 12:17:54 +02:00
```hcl
2016-12-09 18:56:48 +01:00
resource "aws_lightsail_domain" "domain_test" {
domain_name = "mydomain.com"
}
```
## Argument Reference
The following arguments are supported:
* `domain_name` - (Required) The name of the Lightsail domain to manage
## Attributes Reference
The following attributes are exported in addition to the arguments listed above:
* `id` - The name used for this domain
2017-06-01 19:36:32 +02:00
* `arn` - The ARN of the Lightsail domain