Skip to content

Commit 0b7ea91

Browse files
committed
Revert "Remove region check from default.rb"
This reverts commit 7e52180.
1 parent 7e52180 commit 0b7ea91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

attributes/default.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
default['cfncluster']['nvidia']['cuda_url'] = 'https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux'
6161
# EFA
6262
default['cfncluster']['efa']['installer_url'] = 'https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz'
63+
# AWS CLI China Mirror
64+
if node['cfncluster']['cfn_region'].start_with?("cn-")
65+
default['cfncluster']['awscli']['url'] = "https://s3.cn-north-1.amazonaws.com.cn/cn-north-1-aws-parallelcluster/aws-cli/awscli-bundle.zip"
66+
else
67+
default['cfncluster']['awscli']['url'] = "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
68+
end
6369

6470
# Reboot after default_pre recipe
6571
default['cfncluster']['default_pre_reboot'] = 'true'

0 commit comments

Comments
 (0)