Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ module "ecs" {

port_name = local.container_name
discovery_name = local.container_name
# Example TLS configuration
# tls = {
# issuer_cert_authority = {
# aws_pca_authority_arn = aws_acmpca_certificate_authority.this.arn
# }
# role_arn = module.tls_role.iam_role_arn
# kms_key = module.tls_role.kms_key_arn
# }
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion modules/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ resource "aws_ecs_service" "this" {

content {
dynamic "issuer_cert_authority" {
for_each = tls.value.issuer_cert_authority
for_each = [tls.value.issuer_cert_authority]

content {
aws_pca_authority_arn = issuer_cert_authority.value.aws_pca_authority_arn
Expand Down