Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roninzp committed Feb 24, 2025
1 parent 3b6008f commit 762cc40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_to_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ jobs:
for id in $(aws cloudfront list-distributions --query "DistributionList.Items[*].Id" --output text); do
domains=$(aws cloudfront get-distribution-config --id $id --query "DistributionConfig.Aliases.Items" --output text)
if [[ "$domains" == "$CLOUDFRONT_DOMAIN" ]]; then
if [ ! -z "$CLOUDFRONT_DISTRIBUTION_ID" ]; then
echo "Error: Multiple CloudFront distributions found for domain: $CLOUDFRONT_DOMAIN"
exit 1
fi
echo "Found Distribution ID: $id for Domain: $CLOUDFRONT_DOMAIN"
CLOUDFRONT_DISTRIBUTION_ID=$id
fi
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ data "archive_file" "lambda_edge_redirect_to_s3_origin" {
resource "aws_lambda_function" "redirect_to_s3_origin" {
filename = "redirect_to_s3_origin.zip"
source_code_hash = data.archive_file.lambda_edge_redirect_to_s3_origin.output_base64sha256
function_name = "func${local.short}RedirectoToS3origin"
function_name = "func${local.short}RedirectToS3origin"
role = aws_iam_role.lambda_edge_redirect_to_s3_origin
handler = "index.handler"
publish = true
Expand Down

0 comments on commit 762cc40

Please sign in to comment.