-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add AWS CLI * Fix hash for AWS CLI * Update AWS CLI version
- Loading branch information
1 parent
5ec99c7
commit 53ce52a
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters