CmdID

CmdID / aws / aws lightsail

aws lightsail create-domain

Creates a domain resource for the specified domain (example.com). AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a domain (DNS zone)

The following create-domain example creates a DNS zone for the specified domain.

Note: Lightsail's domain-related API operations are available in only the us-east-1 Region. If your CLI profile is configured to use a different Region, you must include the --region us-east-1 parameter or the command fails.

aws lightsail create-domain --region us-east-1 --domain-name example.comIdentify
--regionThe region to use.
--domain-nameThe domain name to manage (example.com).
Its output
{
    "operation": {
        "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "resourceName": "example.com",
        "resourceType": "Domain",
        "createdAt": 1569864291.92,
        "location": {
            "availabilityZone": "all",
            "regionName": "global"
        },
        "isTerminal": true,
        "operationType": "CreateDomain",
        "status": "Succeeded",
        "statusChangedAt": 1569864292.109
    }
}

For more information, see DNS in Amazon Lightsail and Creating a DNS zone to manage your domain's DNS records in Amazon Lightsail in the Lightsail Developer Guide.

Options

2 in the AWS CLI reference
--domain-nameThe domain name to manage (example.com).
--tagsThe tag keys and optional values to add to the resource during create.