Skip to content

Commit

Permalink
add the data block back in
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 committed Nov 18, 2024
1 parent 63afa79 commit 3bb5b4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/environments/tribunals/cloudfront.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_cloudfront_distribution" "tribunals_distribution" {

aliases = ["*.${var.networking[0].application}.${var.networking[0].business-unit}-${local.environment}.modernisation-platform.service.justice.gov.uk"]
origin {
domain_name = "${var.networking[0].application}.${var.networking[0].business-unit}-${local.environment}.modernisation-platform.service.justice.gov.uk"
Expand Down Expand Up @@ -78,6 +79,10 @@ resource "aws_acm_certificate_validation" "cloudfront_cert_validation" {
certificate_arn = aws_acm_certificate.cloudfront.arn
}

data "aws_ec2_managed_prefix_list" "cloudfront" {
name = "com.amazonaws.global.cloudfront.origin-facing"
}

resource "aws_security_group" "tribunals_lb_sg_cloudfront" {
name = "tribunals-load-balancer-sg-cf"
description = "control access to the load balancer using cloudfront"
Expand Down

0 comments on commit 3bb5b4a

Please sign in to comment.