Resource: aws_lightsail_certificate

Provides a lightsail certificate.

Example Usage

resource "aws_lightsail_certificate" "test" {
  name                      = "test"
  domain_name               = "testdomain.com"
  subject_alternative_names = ["www.testdomain.com"]
}

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_certificate using the certificate name. For example:

import {
  to = aws_lightsail_certificate.test
  id = "CertificateName"
}

Using terraform import, import aws_lightsail_certificate using the certificate name. For example:

% terraform import aws_lightsail_certificate.test CertificateName