diff --git a/sift/packages/aws-cli.sls b/sift/packages/aws-cli.sls new file mode 100644 index 0000000..c3ddb9c --- /dev/null +++ b/sift/packages/aws-cli.sls @@ -0,0 +1,42 @@ +# Name: AWS CLI +# Website: https://docs.aws.amazon.com/cli/ +# Description: Command Line Interface for interacting with AWS Cloud components +# Category: +# Author: Amazon +# License: Apache License v2.0 (https://github.com/aws/aws-cli/blob/develop/LICENSE.txt) +# Version: 2.13.11 +# Notes: + +{% set hash = '8e2146b409a3c840524cca52f221437d1c31d90242dbd772ed835d6b870952ac' %} + +aws-cli-download: + file.managed: + - name: /tmp/awscli-exe-linux-x86_64.zip + - source: https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip + - source_hash: sha256={{ hash }} + - makedirs: True + +aws-cli-extract: + archive.extracted: + - name: /tmp/ + - source: /tmp/awscli-exe-linux-x86_64.zip + - enforce_toplevel: False + - overwrite: True + - require: + - file: aws-cli-download + +aws-cli-install: + cmd.run: + - name: /tmp/aws/install -u + - shell: /bin/bash + - require: + - file: aws-cli-download + - archive: aws-cli-extract + +aws-cli-cleanup: + file.absent: + - names: + - /tmp/awscli-exe-linux-x86_64.zip + - /tmp/aws/ + - require: + - cmd: aws-cli-install diff --git a/sift/packages/init.sls b/sift/packages/init.sls index 542e105..45795b2 100644 --- a/sift/packages/init.sls +++ b/sift/packages/init.sls @@ -202,6 +202,7 @@ include: - sift.packages.xmount - sift.packages.zenity - sift.packages.python3-debian + - sift.packages.aws-cli sift-packages: test.nop: @@ -410,3 +411,4 @@ sift-packages: - sls: sift.packages.xmount - sls: sift.packages.zenity - sls: sift.packages.python3-debian + - sls: sift.packages.aws-cli