https://github.com/wearetechnative/terraform-aws-ssl-certificate
https://github.com/wearetechnative/terraform-aws-ssl-certificate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wearetechnative/terraform-aws-ssl-certificate
- Owner: wearetechnative
- License: apache-2.0
- Created: 2023-12-08T13:52:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-14T12:32:06.000Z (over 1 year ago)
- Last Synced: 2025-01-31T12:12:35.482Z (over 1 year ago)
- Language: HCL
- Size: 153 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform AWS SSL Certificate 
[](https://www.technative.nl)
Helper module to simplify ACM certificate fetching and validation. Tested and
used for ALB and CloudFront.
Use an us-east-1 provider for aws.acm_certificate_region if you need
certificates for CloudFront.
When `var.domain_name_override` is provided then `var.hosted_zone_id` is
assumed NULL and then certificates will be created assuming an external DNS
will verify this. The module will output on `manual_provisioning_instructions`
on how to verify and this output can also be reused by other providers (e.g.
CloudFlare).
## How does it work
...
## Usage
To use this module ...
```hcl
{
some_conf = "might need explanation"
}
```
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >=4.21.0 |
| [aws.acm\_certificate\_region](#provider\_aws.acm\_certificate\_region) | >=4.21.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_acm_certificate.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate) | resource |
| [aws_acm_certificate_validation.validation_wait](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate_validation) | resource |
| [aws_route53_record.caa](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
| [aws_route53_record.validation_record](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
| [aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [domain\_name\_override](#input\_domain\_name\_override) | Domain name to create SSL certificate for if hosted\_zone\_id is not provided. Will prepend var.name with a dot in front of it. | `string` | `null` | no |
| [hosted\_zone\_id](#input\_hosted\_zone\_id) | Authoritative hosted zone that can validate the SSL certificate. Set to null for manual certificate provisioning. | `string` | n/a | yes |
| [name](#input\_name) | Full service name to add to domain name. | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [acm\_certificate\_arn](#output\_acm\_certificate\_arn) | n/a |
| [acm\_certificate\_fqdn](#output\_acm\_certificate\_fqdn) | n/a |
| [manual\_provisioning\_instructions](#output\_manual\_provisioning\_instructions) | n/a |