File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,7 @@ jobs:
703703 GOVCLOUD_AWS_DEFAULT_REGION : ((AWS_GOVCLOUD_PACKER_REGION))
704704 GOVCLOUD_AWS_SECRET_ACCESS_KEY : ((packer_user_gov_aws_access_key.password))
705705 WINDOWS_STEMCELLS_GCP_CREDENTIALS_JSON : *gcp_account_json
706- ALLOWED_IP_ADDRESSES : 35.197.92.68 34.169.1.255 34.82.52.87 34.168.69.249 34.82.182.73
706+ ALLOWED_CIDRS : 35.197.92.68/32 34.169.1.255/32 34.82.52.87/32 34.168.69.249/32 34.82.182.73/32 34.145.18.128/26
707707 - put : main-version
708708 inputs : detect
709709 params :
Original file line number Diff line number Diff line change 88# Set firewall rules in the GCP project if needed
99if [ " ${CONFIGURE_GCP:- } " == " true" ]; then
1010 comma_separated_external_ips=" "
11- for external_ip in ${ALLOWED_IP_ADDRESSES } ; do
12- comma_separated_external_ips=" ${external_ip} /32 ,${comma_separated_external_ips} "
11+ for allowed_cidr in ${ALLOWED_CIDRS } ; do
12+ comma_separated_external_ips=" ${allowed_cidr} ,${comma_separated_external_ips} "
1313 done
1414 comma_separated_external_ips=" ${comma_separated_external_ips% ,} "
1515
2222
2323# Set firewall rules in the AWS project
2424aws_ip_ranges=" "
25- for external_ip in ${ALLOWED_IP_ADDRESSES } ; do
26- aws_ip_ranges=" {CidrIp=${external_ip} /32 },${aws_ip_ranges} "
25+ for allowed_cidr in ${ALLOWED_CIDRS } ; do
26+ aws_ip_ranges=" {CidrIp=${allowed_cidr} },${aws_ip_ranges} "
2727done
2828aws_ip_ranges=" ${aws_ip_ranges% ,} "
2929
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ params:
1414 GOVCLOUD_AWS_DEFAULT_REGION :
1515 GOVCLOUD_AWS_SECRET_ACCESS_KEY :
1616 WINDOWS_STEMCELLS_GCP_CREDENTIALS_JSON :
17- ALLOWED_IP_ADDRESSES :
17+ ALLOWED_CIDRS :
1818
1919run :
2020 path : bosh-windows-stemcell-builder-ci/ci/tasks/firewall-rules/configure-windows-firewall-rules.sh
You can’t perform that action at this time.
0 commit comments