Skip to content

Commit a747c68

Browse files
committed
awscli install
1 parent 5b772dc commit a747c68

File tree

1 file changed

+5
-8
lines changed
  • cookbooks/aws-parallelcluster-platform/recipes/install

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
file_cache_path = Chef::Config[:file_cache_path]
2222
region = aws_region
23-
awscli_url = "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
23+
awscli_url = "https://awscli.#{aws_domain}/awscli-exe-linux-#{node['kernel']['machine']}.zip"
2424

2525
if region.start_with?("us-iso-")
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"
@@ -42,10 +42,11 @@
4242
overwrite true
4343
end
4444

45+
bash 'install awscli' do
46+
code "#{file_cache_path}/awscli/aws/install -i /usr/local/aws -b /usr/local/bin"
47+
end
48+
4549
if region.start_with?("us-iso")
46-
bash 'install awscli' do
47-
code "#{file_cache_path}/awscli/aws/install -i /usr/local/aws -b /usr/local/bin"
48-
end
4950

5051
cookbook_file "#{node['cluster']['scripts_dir']}/iso-ca-bundle-config.sh" do
5152
source 'isolated/iso-ca-bundle-config.sh'
@@ -59,8 +60,4 @@
5960
execute "patch ca bundle" do
6061
command "sh #{node['cluster']['scripts_dir']}/iso-ca-bundle-config.sh"
6162
end
62-
else
63-
bash 'install awscli' do
64-
code "#{cookbook_virtualenv_path}/bin/python #{file_cache_path}/awscli/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws"
65-
end
6663
end

0 commit comments

Comments
 (0)