Skip to content

Commit 6a8a1ab

Browse files
author
Himani Anil Deshpande
committed
Using classic domain for installing aws cli in china
1 parent 43ccc6f commit 6a8a1ab

File tree

1 file changed

+2
-0
lines changed
  • cookbooks/aws-parallelcluster-platform/recipes/install

1 file changed

+2
-0
lines changed

cookbooks/aws-parallelcluster-platform/recipes/install/awscli.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
awscli_url = "https://aws-sdk-common-infra-dca-prod-deployment-bucket.s3.#{aws_region}.#{aws_domain}/aws-cli-v2/linux/x86_64/awscli-exe-linux-x86_64.zip"
2727
elsif region.start_with?("us-isob-")
2828
awscli_url = "https://aws-sdk-common-infra-lck-prod-deployment-bucket.s3.#{aws_region}.#{aws_domain}/aws-cli-v2/linux/x86_64/awscli-exe-linux-x86_64.zip"
29+
elsif region.start_with?("cn-")
30+
awscli_url = "https://awscli.#{CLASSIC_AWS_DOMAIN}/awscli-exe-linux-#{node['kernel']['machine']}.zip"
2931
end
3032

3133
remote_file 'download awscli bundle from s3' do

0 commit comments

Comments
 (0)