Skip to content

Commit

Permalink
change part of the code for uzing aws_cli_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Semenov committed Nov 8, 2023
1 parent b7f5a05 commit 6b41dca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@
# Using bundled install option:
# http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os

file { '/opt/awscli-bundle':
file { '/opt/aws':
ensure => 'directory',
}

archive { 'awscli-bundle.zip':
archive { 'awscli-exe-linux-x86_64.zip':
ensure => present,
path => '/opt/awscli-bundle/awscli-bundle.zip',
source => 'https://s3.amazonaws.com/aws-cli/awscli-bundle.zip',
path => '/opt/aws/awscli-exe-linux-x86_64.zip',
source => 'https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip',
extract => true,
extract_path => '/opt',
creates => '/opt/awscli-bundle/install',
creates => '/opt/aws/install',
cleanup => true,
}

exec { 'install_aws_cli':
command => '/opt/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws',
command => '/opt/aws/install -i /usr/local/aws-cli -b /usr/local/bin',
refreshonly => true,
subscribe => Archive['awscli-bundle.zip'],
subscribe => Archive['awscli-exe-linux-x86_64.zip'],
}
}
}
Expand Down

0 comments on commit 6b41dca

Please sign in to comment.