Skip to content

Commit

Permalink
updating cloudfront tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed Apr 1, 2024
1 parent 8105bf0 commit b486d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/primary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

deploy-frontend:
needs: detect-changes
if: github.ref != 'refs/heads/main' && needs.detect-changes.outputs.run-frontend == 'true'
if: github.ref == 'refs/heads/main' && needs.detect-changes.outputs.run-frontend == 'true'
uses: ./.github/workflows/deploy-frontend.yaml
with:
aws_region: us-east-1
Expand Down
2 changes: 2 additions & 0 deletions tofu/modules/services/frontend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ resource "aws_cloudfront_distribution" "appointment" {

viewer_certificate {
acm_certificate_arn = var.ssl_cert
cloudfront_default_certificate = false
ssl_support_method = "sni-only"
minimum_protocol_version = "TLSv1.2_2021"
}
}

Expand Down

0 comments on commit b486d9c

Please sign in to comment.