https://github.com/mediapop/terraform-aws-certificate
Simple way of creating validated certs over multiple domains and zones.
https://github.com/mediapop/terraform-aws-certificate
Last synced: 3 months ago
JSON representation
Simple way of creating validated certs over multiple domains and zones.
- Host: GitHub
- URL: https://github.com/mediapop/terraform-aws-certificate
- Owner: mediapop
- License: mit
- Created: 2018-05-28T08:11:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T00:55:49.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T08:11:38.393Z (5 months ago)
- Language: HCL
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 8
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Certificate
*This terraform module is maintained by [Media Pop](https://www.mediapop.co), a software consultancy. Hire us to solve your DevOps challenges.*
Create and automatically verify a certificate across one or many zones. CloudFront enabled (us-east-1).
# Usage
You can specify as many zones and records as you wish following this simple format:
```hcl
module "cert" {
source = "mediapop/certificate/aws"domains = {
"zone-name.com." = ["record.zone-name.com"]
"mediapop.co." = ["mediapop.co", "*.mediapop.co"]
}
}resource "aws_cloudfront_distribution" "redirect" {
viewer_certificate {
acm_certificate_arn = module.cert.arn
ssl_support_method = "sni-only"// ...
}// ...
}
```## Inputs
| Name | Description | Type | Required |
|------|-------------|:----:|:-----:|
| domains | Map of the zone names to records the certificate is for. | map | yes |## Outputs
| Name | Description | Type |
|------|-------------|:----:|
| arn | The certificate arn | string |## License
MIT