Skip to content

Commit

Permalink
Merge pull request #8998 from ministryofjustice/TM-775
Browse files Browse the repository at this point in the history
TM-775 Allow Dev Workspace to DEV env as well
  • Loading branch information
vc13837 authored Dec 6, 2024
2 parents 92d6c30 + ae4f3c8 commit e6dbb9c
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 1 deletion.
221 changes: 221 additions & 0 deletions terraform/environments/apex/aws_waf_ipset_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
81.134.202.29/32
54.240.197.225/32
157.203.176.138/32
157.203.176.139/32
157.203.176.140/32
157.203.177.190/32
157.203.177.191/32
157.203.177.192/32
62.25.109.0/24
85.115.52.0/24
85.115.53.0/24
85.115.54.0/24
213.121.161.0/24
195.59.75.0/24
194.33.192.0/24
194.33.193.0/24
194.33.196.0/24
194.33.197.0/24
35.177.125.252/32
35.177.137.160/32
13.55.255.216/32
13.55.255.217/32
13.55.255.218/32
13.55.255.219/32
13.55.255.220/32
13.55.255.221/32
13.55.255.222/32
13.55.255.223/32
13.56.32.200/32
13.56.32.201/32
13.56.32.202/32
13.56.32.203/32
13.56.32.204/32
13.56.32.205/32
13.56.32.206/32
13.56.32.207/32
13.112.191.184/32
13.112.191.185/32
13.112.191.186/32
13.112.191.187/32
13.112.191.188/32
13.112.191.189/32
13.112.191.190/32
13.112.191.191/32
13.124.145.16/32
13.124.145.17/32
13.124.145.18/32
13.124.145.19/32
13.124.145.20/32
13.124.145.21/32
13.124.145.22/32
13.124.145.23/32
13.127.70.136/32
13.127.70.137/32
13.127.70.138/32
13.127.70.139/32
13.127.70.140/32
13.127.70.141/32
13.127.70.142/32
13.127.70.143/32
18.231.194.8/32
18.231.194.9/32
18.231.194.10/32
18.231.194.11/32
18.231.194.12/32
18.231.194.13/32
18.231.194.14/32
18.231.194.15/32
34.228.4.208/32
34.228.4.209/32
34.228.4.210/32
34.228.4.211/32
34.228.4.212/32
34.228.4.213/32
34.228.4.214/32
34.228.4.215/32
34.228.4.216/32
34.228.4.217/32
34.228.4.218/32
34.228.4.219/32
34.228.4.220/32
34.228.4.221/32
34.228.4.222/32
34.228.4.223/32
34.250.63.248/32
34.250.63.249/32
34.250.63.250/32
34.250.63.251/32
34.250.63.252/32
34.250.63.253/32
34.250.63.254/32
34.250.63.255/32
35.157.127.248/32
35.157.127.249/32
35.157.127.250/32
35.157.127.251/32
35.157.127.252/32
35.157.127.253/32
35.157.127.254/32
35.157.127.255/32
35.176.92.32/32
35.176.92.33/32
35.176.92.34/32
35.176.92.35/32
35.176.92.36/32
35.176.92.37/32
35.176.92.38/32
35.176.92.39/32
35.182.14.48/32
35.182.14.49/32
35.182.14.50/32
35.182.14.51/32
35.182.14.52/32
35.182.14.53/32
35.182.14.54/32
35.182.14.55/32
52.15.247.208/32
52.15.247.209/32
52.15.247.210/32
52.15.247.211/32
52.15.247.212/32
52.15.247.213/32
52.15.247.214/32
52.15.247.215/32
52.43.76.88/32
52.43.76.89/32
52.43.76.90/32
52.43.76.91/32
52.43.76.92/32
52.43.76.93/32
52.43.76.94/32
52.43.76.95/32
52.47.73.72/32
52.47.73.73/32
52.47.73.74/32
52.47.73.75/32
52.47.73.76/32
52.47.73.77/32
52.47.73.78/32
52.47.73.79/32
52.221.221.128/32
52.221.221.129/32
52.221.221.130/32
52.221.221.131/32
52.221.221.132/32
52.221.221.133/32
52.221.221.134/32
52.221.221.135/32
177.71.207.16/32
177.71.207.17/32
177.71.207.18/32
177.71.207.19/32
177.71.207.20/32
177.71.207.21/32
177.71.207.22/32
177.71.207.23/32
51.149.250.0/24
51.149.249.0/29
194.33.249.0/29
51.149.249.32/29
194.33.248.0/29
20.49.214.199/32
20.49.214.228/32
18.169.147.172/32
35.176.93.186/32
18.130.148.126/32
35.176.148.126/32
178.162.206.244/32
159.122.168.9/32
212.78.83.12/32
212.78.83.16/32
196.245.151.42/32
196.244.191.18/32
23.92.127.2/32
169.51.2.18/32
108.181.70.3/32
23.106.37.99/32
85.195.116.134/32
185.136.156.82/32
151.106.52.134/32
46.246.122.10/32
94.75.211.74/32
94.75.211.73/32
82.103.145.126/32
185.246.208.82/32
185.152.65.167/32
185.180.12.65/32
185.93.3.65/32
82.103.136.16/32
185.70.76.23/32
5.172.196.188/32
52.57.132.90/32
52.48.244.35/32
52.59.147.246/32
52.59.46.112/32
52.210.232.124/32
52.209.186.226/32
52.209.34.226/32
82.103.139.165/32
89.163.242.206/32
89.163.146.247/32
185.39.146.214/32
185.39.146.215/32
37.252.231.50/32
94.247.174.83/32
46.20.45.18/32
178.255.153.2/32
178.255.152.2/32
194.33.200.0/21
194.33.216.0/23
194.33.218.0/24
128.77.75.64/26
20.26.11.71/32
20.26.11.108/32
51.149.251.0/24
51.149.249.64/29
52.56.212.11/32
35.177.173.197/32
35.176.254.38/32
35.177.145.193/32
18.130.39.94/32
4 changes: 3 additions & 1 deletion terraform/environments/apex/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# }

locals {
ip_set_list = [for ip in split("\n", chomp(file("${path.module}/aws_waf_ipset.txt"))) : ip]
ip_set_dev = [for ip in split("\n", chomp(file("${path.module}/aws_waf_ipset_dev.txt"))) : ip]
ip_set_prod = [for ip in split("\n", chomp(file("${path.module}/aws_waf_ipset.txt"))) : ip]
ip_set_list = local.environment == "development" ? local.ip_set_dev : local.ip_set_prod
}

resource "aws_waf_ipset" "wafmanualallowset" {
Expand Down

0 comments on commit e6dbb9c

Please sign in to comment.