Skip to content

Commit 693654a

Browse files
author
Sean Smith
committed
Move region check to base_install
Signed-off-by: Sean Smith <[email protected]>
1 parent 821957d commit 693654a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

recipes/base_install.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
end
5252
end
5353

54+
# AWS CLI China Mirror
55+
if node['cfncluster']['cfn_region'].start_with?("cn-")
56+
node.default['cfncluster']['awscli']['url'] = "https://s3.cn-north-1.amazonaws.com.cn/cn-north-1-aws-parallelcluster/aws-cli/awscli-bundle.zip"
57+
else
58+
node.default['cfncluster']['awscli']['url'] = "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
59+
end
60+
5461
bash "install awscli" do
5562
cwd Chef::Config[:file_cache_path]
5663
code <<-CLI

0 commit comments

Comments
 (0)