Skip to content

Commit

Permalink
Add output for key groups (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
adenot authored Dec 17, 2024
1 parent ed37b74 commit 61dd337
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ output "cloudfront_distribution_id" {
description = "CloudFront Distribution ID"
value = var.module_enabled ? aws_cloudfront_distribution.default[0].id : null
}

output "cloudfront_key_group_id" {
description = "CloudFront Key Group ID"
value = {
for k, keygroup in aws_cloudfront_key_group.default : k => keygroup.id
}
}
output "cloudfront_public_key_id" {
description = "CloudFront Key Group ID"
value = {
for k, publickey in aws_cloudfront_public_key.default : k => publickey.id
}
}

0 comments on commit 61dd337

Please sign in to comment.