Skip to content

Commit f5dffc6

Browse files
feat: Add support for private CA certificates (#155)
* feat: add support for private ca certs added example for private CA * chore: cleanup gitignore and remove example
1 parent 882e020 commit f5dffc6

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ No modules.
213213
| <a name="input_dns_ttl"></a> [dns\_ttl](#input\_dns\_ttl) | The TTL of DNS recursive resolvers to cache information about this record. | `number` | `60` | no |
214214
| <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | A domain name for which the certificate should be issued | `string` | `""` | no |
215215
| <a name="input_key_algorithm"></a> [key\_algorithm](#input\_key\_algorithm) | Specifies the algorithm of the public and private key pair that your Amazon issued certificate uses to encrypt data | `string` | `null` | no |
216+
| <a name="input_private_authority_arn"></a> [private\_authority\_arn](#input\_private\_authority\_arn) | Private Certificate Authority ARN for issuing private certificates | `string` | `null` | no |
216217
| <a name="input_putin_khuylo"></a> [putin\_khuylo](#input\_putin\_khuylo) | Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo! | `bool` | `true` | no |
217218
| <a name="input_subject_alternative_names"></a> [subject\_alternative\_names](#input\_subject\_alternative\_names) | A list of domains that should be SANs in the issued certificate | `list(string)` | `[]` | no |
218219
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ resource "aws_acm_certificate" "this" {
2424
validation_method = var.validation_method
2525
key_algorithm = var.key_algorithm
2626

27+
certificate_authority_arn = var.private_authority_arn
28+
2729
options {
2830
certificate_transparency_logging_preference = var.certificate_transparency_logging_preference ? "ENABLED" : "DISABLED"
2931
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ variable "key_algorithm" {
123123
default = null
124124
}
125125

126+
variable "private_authority_arn" {
127+
description = "Private Certificate Authority ARN for issuing private certificates"
128+
type = string
129+
default = null
130+
}
131+
126132
variable "putin_khuylo" {
127133
description = "Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo!"
128134
type = bool

wrappers/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module "wrapper" {
1212
dns_ttl = try(each.value.dns_ttl, var.defaults.dns_ttl, 60)
1313
domain_name = try(each.value.domain_name, var.defaults.domain_name, "")
1414
key_algorithm = try(each.value.key_algorithm, var.defaults.key_algorithm, null)
15+
private_authority_arn = try(each.value.private_authority_arn, var.defaults.private_authority_arn, null)
1516
putin_khuylo = try(each.value.putin_khuylo, var.defaults.putin_khuylo, true)
1617
subject_alternative_names = try(each.value.subject_alternative_names, var.defaults.subject_alternative_names, [])
1718
tags = try(each.value.tags, var.defaults.tags, {})

0 commit comments

Comments
 (0)