Skip to content

Commit

Permalink
new bucket name
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraue committed Apr 2, 2024
1 parent 7f2c087 commit 2733bd6
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_s3_bucket" "zwell-static-hosting-bucket" {
bucket = "app2.zwellhome.com"
bucket = "app.zwell.io"
}

resource "aws_s3_bucket_website_configuration" "static-hosting-config" {
Expand Down Expand Up @@ -36,31 +36,31 @@ resource "aws_s3_bucket_policy" "static-hosting-policy" {
Resource = [
"${aws_s3_bucket.zwell-static-hosting-bucket.arn}/*"
]
Condition = {
"IpAddress" = {
"aws:SourceIp" = [
"173.245.48.0/20",
"103.21.244.0/22",
"103.22.200.0/22",
"103.31.4.0/22",
"141.101.64.0/18",
"108.162.192.0/18",
"190.93.240.0/20",
"188.114.96.0/20",
"197.234.240.0/22",
"198.41.128.0/17",
"162.158.0.0/15",
"104.16.0.0/13",
"104.24.0.0/14",
"172.64.0.0/13",
"131.0.72.0/22"
]
}
}
}
]
})
}

# IP Adresses are cloudflare's proxy ips
# https://www.cloudflare.com/ips-v4/#
# https://www.cloudflare.com/ips-v4/#
# Condition = {
# "IpAddress" = {
# "aws:SourceIp" = [
# "173.245.48.0/20",
# "103.21.244.0/22",
# "103.22.200.0/22",
# "103.31.4.0/22",
# "141.101.64.0/18",
# "108.162.192.0/18",
# "190.93.240.0/20",
# "188.114.96.0/20",
# "197.234.240.0/22",
# "198.41.128.0/17",
# "162.158.0.0/15",
# "104.16.0.0/13",
# "104.24.0.0/14",
# "172.64.0.0/13",
# "131.0.72.0/22"
# ]
# }
# }

0 comments on commit 2733bd6

Please sign in to comment.