This Terraform module provisions an AWS ACM (Amazon Certificate Manager) certificate for a given domain. It supports the creation of both regular and wildcard certificates and validates the certificate using DNS validation.
| Name | Version |
|---|---|
| terraform | >= 1.3.0 |
| aws | >= 4.0 |
| Name | Version |
|---|---|
| aws | >= 4.0 |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| project | Project name | string | - | yes |
| environment | Environment name | string | - | yes |
| domain | Domain for the certificate | string | - | yes |
| wildcard | Create wildcard certificate | bool | false | no |
| Name | Description |
|---|---|
| certificate_arn | The ARN of the validated ACM certificate |
This example demonstrates how to use the module to create an ACM certificate with an optional wildcard domain.
module "acm_certificate" {
source = "github.com/opstimus/terraform-aws-acm?ref=v<RELEASE>"
project = "my-project"
environment = "production"
domain = "example.com"
wildcard = true
}