Skip to content

Commit e1546f5

Browse files
himani2411Himani Anil Deshpande
andauthored
Using classic domain for installing aws cli in china (#2897)
Co-authored-by: Himani Anil Deshpande <[email protected]>
1 parent 43ccc6f commit e1546f5

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)