File tree Expand file tree Collapse file tree 6 files changed +0
-50
lines changed Expand file tree Collapse file tree 6 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -275,5 +275,4 @@ module "acm" {
275275 count = var. create_acm ? 1 : 0
276276
277277 amazon_issued_certificates = try (var. acm_amazon_issued_certificates , {})
278- imported_certificates = try (var. acm_imported_certificates , {})
279278}
Original file line number Diff line number Diff line change @@ -25,21 +25,3 @@ resource "aws_acm_certificate" "amazon_issued" {
2525
2626 tags = merge (var. tags , each. value . tags )
2727}
28-
29- # ###############################################################################
30- # ACM imported certificates
31- # ###############################################################################
32-
33- resource "aws_acm_certificate" "imported" {
34- for_each = var. imported_certificates
35-
36- private_key = try (each. value . private_key , null )
37- certificate_body = try (each. value . certificate_body , null )
38- certificate_chain = try (each. value . certificate_chain , null )
39-
40- lifecycle {
41- create_before_destroy = true
42- }
43-
44- tags = merge (var. tags , each. value . tags )
45- }
Original file line number Diff line number Diff line change @@ -22,12 +22,3 @@ output "amazon_issued_acm_certificates_validation_records" {
2222 ]
2323 }
2424}
25-
26- # ###############################################################################
27- # ACM imported certificates
28- # ###############################################################################
29-
30- output "imported_acm_certificates_arns" {
31- description = " ARNs of the Imported ACM certificates."
32- value = { for k , v in aws_acm_certificate . imported : k => v . arn }
33- }
Original file line number Diff line number Diff line change @@ -18,17 +18,6 @@ variable "amazon_issued_certificates" {
1818 default = {}
1919}
2020
21- variable "imported_certificates" {
22- description = " List of imported certificates to use to create ACM certificates."
23- type = map (object ({
24- private_key = string
25- certificate_body = string
26- certificate_chain = optional (string , null )
27- tags = optional (map (string ), {})
28- }))
29- default = {}
30- }
31-
3221variable "tags" {
3322 description = " (Optional) Map of tags to assign to the resource."
3423 type = map (string )
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ output "amazon_issued_acm_certificates_validation_records" {
3030 value = try (module. acm [0 ]. amazon_issued_acm_certificates_validation_records , null )
3131}
3232
33- output "imported_acm_certificates_arns" {
34- description = " ARNs of the Imported ACM certificates."
35- value = try (module. acm [0 ]. imported_acm_certificates_arns , null )
36- }
37-
3833# ###############################################################################
3934# Application Load Balancer
4035# ###############################################################################
Original file line number Diff line number Diff line change @@ -132,9 +132,3 @@ variable "acm_amazon_issued_certificates" {
132132 type = any
133133 default = {}
134134}
135-
136- variable "acm_imported_certificates" {
137- description = " Imported ACM certificates to create."
138- type = any
139- default = {}
140- }
You can’t perform that action at this time.
0 commit comments