Skip to content

Commit

Permalink
Configure CA bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Jul 22, 2024
1 parent bbe5d64 commit c96e388
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cookbooks/aws-parallelcluster-platform/recipes/install/awscli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
code "#{file_cache_path}/awscli/aws/install -i /usr/local/aws -b /usr/local/bin"
end

bash 'Configure CA package' do
user 'root'
group 'root'
code <<-REQ
echo "Configure AWS CLI CA chain..."
echo -e '#!/bin/bash
export AWS_CA_BUNDLE=/etc/pki/us-isob-east-1/certs/ca-bundle.pem\n' > /etc/profile.d/aws_ca_bundle.sh
REQ
end

# if region.start_with?("us-iso")
# bash 'install awscli' do
# code "#{file_cache_path}/awscli/aws/install -i /usr/local/aws -b /usr/local/bin/aws"
Expand Down

0 comments on commit c96e388

Please sign in to comment.