Skip to content

Commit

Permalink
Apply auto-formatting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
weco-bot committed Jul 3, 2024
1 parent cd25e63 commit b4f2484
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions terraform/monitoring/ingest_inspector/certificate.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The ACM certificate must be created in the us-east-1 region to work with CloudFront
resource "aws_acm_certificate" "ingest_inspector_certificate" {
provider = aws.us-east-1
provider = aws.us-east-1
domain_name = var.domain_name
validation_method = "DNS"

Expand Down Expand Up @@ -30,7 +30,7 @@ resource "aws_route53_record" "cert_validation" {
}

resource "aws_acm_certificate_validation" "validation" {
provider = aws.us-east-1
certificate_arn = aws_acm_certificate.ingest_inspector_certificate.arn
provider = aws.us-east-1
certificate_arn = aws_acm_certificate.ingest_inspector_certificate.arn
validation_record_fqdns = [for record in aws_route53_record.cert_validation : record.fqdn]
}
6 changes: 3 additions & 3 deletions terraform/monitoring/ingest_inspector/dns.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Add an A record to the wellcomecollection.org hosted zone
resource "aws_route53_record" "cdn" {
provider = aws.dns
zone_id = data.aws_route53_zone.weco_zone.id
name = var.domain_name
type = "A"
zone_id = data.aws_route53_zone.weco_zone.id
name = var.domain_name
type = "A"

alias {
name = aws_cloudfront_distribution.ingest_inspector_cloudfront_distribution.domain_name
Expand Down
4 changes: 2 additions & 2 deletions terraform/monitoring/ingest_inspector/lambda_backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ module "ingest_inspector_lambda" {
environment = {
variables = {
# The wellcome_storage_service Python package will not successfully import unless there is a HOME environment variable
"HOME" = "dummy_value"
"COGNITO_CLIENT_ID_SECRET_NAME" = aws_secretsmanager_secret.ingest_inspector_cognito_client_id.name
"HOME" = "dummy_value"
"COGNITO_CLIENT_ID_SECRET_NAME" = aws_secretsmanager_secret.ingest_inspector_cognito_client_id.name
"COGNITO_CLIENT_SECRET_SECRET_NAME" = aws_secretsmanager_secret.ingest_inspector_cognito_client_secret.name
}
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/monitoring/ingest_inspector/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ provider "aws" {
}

region = "us-east-1"
alias = "us-east-1"
alias = "us-east-1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ resource "aws_cloudfront_distribution" "ingest_inspector_cloudfront_distribution
}

viewer_certificate {
acm_certificate_arn = aws_acm_certificate.ingest_inspector_certificate.arn
ssl_support_method = "sni-only"
acm_certificate_arn = aws_acm_certificate.ingest_inspector_certificate.arn
ssl_support_method = "sni-only"
minimum_protocol_version = "TLSv1.2_2021"
}

Expand Down

0 comments on commit b4f2484

Please sign in to comment.