Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
BEW111 committed Aug 18, 2024
1 parent 98767d4 commit 9f58854
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions infrastructure/backend/create_client_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ENV_FILE="../../client/.env"
ALB_DNS=$(terraform output -raw alb_dns_name)
echo "REACT_APP_BACKEND_URL=http://$ALB_DNS" > $ENV_FILE
14 changes: 7 additions & 7 deletions infrastructure/client/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "local_file" "dotenv" {
}

provider "aws" {
region = "us-west-1" # Set your desired region
region = "us-west-1" # Set your desired region
access_key = var.aws_access_key_id
secret_key = var.aws_secret_access_key
}
Expand Down Expand Up @@ -121,17 +121,17 @@ resource "aws_cloudfront_distribution" "cdn" {

# Handle 403 errors by serving index.html with a 200 status code
custom_error_response {
error_code = 403
response_code = 200
response_page_path = "/index.html"
error_code = 403
response_code = 200
response_page_path = "/index.html"
}

# Default root object
default_root_object = "index.html"

enabled = true
is_ipv6_enabled = true
price_class = "PriceClass_100"
enabled = true
is_ipv6_enabled = true
price_class = "PriceClass_100"

restrictions {
geo_restriction {
Expand Down

0 comments on commit 9f58854

Please sign in to comment.