-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow optional extra ssl certs (#54)
* added the option for extra SSL certs * simplification of a variable name * upgraded awspec, terraform, and kitchen terraform
- Loading branch information
1 parent
9bcc0f2
commit af83c3a
Showing
9 changed files
with
130 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,83 @@ | ||
locals { | ||
tags = "${map("Environment", "test", "GithubRepo", "tf-aws-alb", "GithubOrg", "terraform-aws-modules", "Workspace", "${terraform.workspace}")}" | ||
log_bucket_name = "${var.log_bucket_name}-${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}" | ||
tags = "${map("Environment", "test", | ||
"GithubRepo", "tf-aws-alb", | ||
"GithubOrg", "terraform-aws-modules", | ||
"Workspace", "${terraform.workspace}", | ||
)}" | ||
|
||
log_bucket_name = "${var.log_bucket_name}-${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}" | ||
|
||
https_listeners_count = 2 | ||
|
||
https_listeners = "${list( | ||
map( | ||
"certificate_arn", aws_iam_server_certificate.fixture_cert.arn, | ||
"port", 443 | ||
), | ||
map( | ||
"certificate_arn", aws_iam_server_certificate.fixture_cert.arn, | ||
"port", 8443, | ||
"ssl_policy", "ELBSecurityPolicy-TLS-1-2-2017-01", | ||
"target_group_index", 1 | ||
) | ||
map( | ||
"certificate_arn", aws_iam_server_certificate.fixture_cert.0.arn, | ||
"port", 443, | ||
), | ||
map( | ||
"certificate_arn", aws_iam_server_certificate.fixture_cert.1.arn, | ||
"port", 8443, | ||
"ssl_policy", "ELBSecurityPolicy-TLS-1-2-2017-01", | ||
"target_group_index", 1, | ||
), | ||
)}" | ||
|
||
http_tcp_listeners_count = 3 | ||
|
||
http_tcp_listeners = "${list( | ||
map( | ||
"port", 80, | ||
"protocol", "HTTP" | ||
"protocol", "HTTP", | ||
), | ||
map( | ||
"port", 8080, | ||
"protocol", "HTTP", | ||
"target_group_index", 0 | ||
"target_group_index", 0, | ||
), | ||
map( | ||
"port", 8081, | ||
"protocol", "HTTP", | ||
"target_group_index", 1 | ||
) | ||
)}" | ||
"target_group_index", 1, | ||
), | ||
)}" | ||
|
||
target_groups_count = 2 | ||
|
||
target_groups = "${list( | ||
map("name", "foo", | ||
"backend_protocol", "HTTP", | ||
"backend_port", 80 | ||
"backend_port", 80, | ||
), | ||
map("name", "bar", | ||
"backend_protocol", "HTTP", | ||
"backend_port", 8080 | ||
) | ||
"backend_port", 8080, | ||
), | ||
)}" | ||
|
||
extra_ssl_certs_count = 4 | ||
|
||
extra_ssl_certs = "${list( | ||
map("certificate_arn", aws_iam_server_certificate.fixture_cert.0.arn, | ||
"https_listener_index","1", | ||
), | ||
map("certificate_arn", aws_iam_server_certificate.fixture_cert.1.arn, | ||
"https_listener_index","0", | ||
), | ||
map("certificate_arn", aws_iam_server_certificate.fixture_cert.2.arn, | ||
"https_listener_index","0", | ||
), | ||
map("certificate_arn", aws_iam_server_certificate.fixture_cert.3.arn, | ||
"https_listener_index","0", | ||
), | ||
)}" | ||
|
||
# helpful for debugging | ||
# https_listeners_count = 0 | ||
# https_listeners = "${list()}" | ||
# http_tcp_listeners_count = 0 | ||
# http_tcp_listeners = "${list()}" | ||
# target_groups_count = 0 | ||
# target_groups = "${list()}" | ||
# extra_ssl_certs_count = 0 | ||
# extra_ssl_certs = "${list()}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v3.0.0 | ||
v3.1.0 |