File tree 2 files changed +30
-4
lines changed
2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ resource "tls_self_signed_cert" "ca" {
25
25
organization = var. organization_name
26
26
}
27
27
28
- dns_names = [ " clouddrove.com " ]
28
+ dns_names = var . dns_names
29
29
30
30
validity_period_hours = 87600
31
31
is_ca_certificate = true
@@ -57,7 +57,7 @@ resource "tls_cert_request" "root" {
57
57
organization = var. organization_name
58
58
}
59
59
60
- dns_names = [ " clouddrove.com " ]
60
+ dns_names = var . dns_names
61
61
}
62
62
63
63
resource "tls_locally_signed_cert" "root" {
@@ -98,7 +98,7 @@ resource "tls_cert_request" "server" {
98
98
organization = var. organization_name
99
99
}
100
100
101
- dns_names = [ " clouddrove.com " ]
101
+ dns_names = var . dns_names
102
102
}
103
103
104
104
resource "tls_locally_signed_cert" "server" {
@@ -131,7 +131,9 @@ resource "aws_ec2_client_vpn_endpoint" "default" {
131
131
client_cidr_block = var. cidr_block
132
132
133
133
authentication_options {
134
- type = " certificate-authentication"
134
+ type = var. type
135
+ saml_provider_arn = var. saml_arn
136
+ self_service_saml_provider_arn = var. self_saml_arn
135
137
root_certificate_chain_arn = join (" " , aws_acm_certificate. root . * . arn )
136
138
}
137
139
Original file line number Diff line number Diff line change @@ -86,4 +86,28 @@ variable "network_cidr" {
86
86
type = list (any )
87
87
default = []
88
88
description = " Client Network CIDR"
89
+ }
90
+
91
+ variable "dns_names" {
92
+ type = list (any )
93
+ default = [" clouddrove.com" ]
94
+ description = " List of DNS names for which a certificate is being requested."
95
+ }
96
+
97
+ variable "type" {
98
+ type = string
99
+ default = " certificate-authentication"
100
+ description = " The type of client authentication to be used. "
101
+ }
102
+
103
+ variable "saml_arn" {
104
+ type = string
105
+ default = " "
106
+ description = " The ARN of the IAM SAML identity provider. "
107
+ }
108
+
109
+ variable "self_saml_arn" {
110
+ type = string
111
+ default = " "
112
+ description = " The ARN of the IAM SAML identity provider for the self service portal. "
89
113
}
You can’t perform that action at this time.
0 commit comments