Skip to content

Commit

Permalink
Add AWS CLI (#88)
Browse files Browse the repository at this point in the history
* Add AWS CLI

* Fix hash for AWS CLI

* Update AWS CLI version
  • Loading branch information
digitalsleuth authored Aug 22, 2023
1 parent 5ec99c7 commit 53ce52a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions sift/packages/aws-cli.sls
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions sift/packages/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ include:
- sift.packages.xmount
- sift.packages.zenity
- sift.packages.python3-debian
- sift.packages.aws-cli

sift-packages:
test.nop:
Expand Down Expand Up @@ -410,3 +411,4 @@ sift-packages:
- sls: sift.packages.xmount
- sls: sift.packages.zenity
- sls: sift.packages.python3-debian
- sls: sift.packages.aws-cli

0 comments on commit 53ce52a

Please sign in to comment.