Skip to content

Create ACM certificate with DNS validation and validate using Cloudflare Hosted Zone

License

Notifications You must be signed in to change notification settings

Flaconi/terraform-aws-acm-cloudflare

Repository files navigation

Terraform module: AWS Certificate manager with Cloudflare validation

lint test Tag Terraform License

Create ACM certificate with DNS validation and validate using Cloudflare Hosted Zone

Providers

Name Version
aws >= 5
cloudflare >= 4.20

Requirements

Name Version
terraform >= 1.0
aws >= 5
cloudflare >= 4.20

Required Inputs

The following input variables are required:

Description: The Cloudflare API token.

Type: string

Description: The Name of the zone to contain this record.

Type: string

Optional Inputs

The following input variables are optional (have default values):

Description: Whether to create ACM certificate

Type: bool

Default: true

Description: Whether to validate certificate by creating DNS record

Type: bool

Default: true

Description: Whether to allow overwrite of Route53 records

Type: bool

Default: true

Description: Whether to wait for the validation to complete

Type: bool

Default: true

Description: Specifies whether certificate details should be added to a certificate transparency log

Type: bool

Default: true

Description: A domain name for which the certificate should be issued

Type: string

Default: ""

Description: A list of domains that should be SANs in the issued certificate

Type: list(string)

Default: []

Description: A mapping of tags to assign to the resource

Type: map(string)

Default: {}

Description: The TTL of DNS recursive resolvers to cache information about this record.

Type: number

Default: 120

Outputs

Name Description
acm_certificate_arn The ARN of the certificate
acm_certificate_domain_validation_options A list of attributes to feed into other resources to complete certificate validation. Can have more than one element, e.g. if SANs are defined.
distinct_domain_names List of distinct domains names used for the validation.
validation_dns_record_fqdns List of FQDNs built using the zone domain and name.
validation_domains List of distinct domain validation options. This is useful if subject alternative names contain wildcards.

License

MIT License

Copyright (c) 2021 Flaconi GmbH