Resource: aws_lightsail_domain_entry

Creates a domain entry resource

Example Usage

resource "aws_lightsail_domain" "test" {
  domain_name = "mydomain.com"
}

resource "aws_lightsail_domain_entry" "test" {
  domain_name = aws_lightsail_domain.domain_test.domain_name
  name        = "www"
  type        = "A"
  target      = "127.0.0.1"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_lightsail_domain_entry using the id attribute. For example:

import {
  to = aws_lightsail_domain_entry.example
  id = "www,mydomain.com,A,127.0.0.1"
}

Using terraform import, import aws_lightsail_domain_entry using the id attribute. For example:

% terraform import aws_lightsail_domain_entry.example www,mydomain.com,A,127.0.0.1