Created
June 7, 2020 18:38
-
-
Save desaijay315/71bdb21d0395a6c2dbc1b4018ac97b01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- name: Download AWS CLI bundle. | |
shell: "cd /tmp && rm -rf /tmp/awscli* && curl 'https://s3.amazonaws.com/aws-cli/awscli-bundle.zip' -o 'awscli-bundle.zip'" | |
- name: Update repositories cache and install "unzip" package | |
apt: | |
name: unzip | |
update_cache: yes | |
- name: Unzip AWS CLI bundle. | |
shell: "cd /tmp && unzip awscli-bundle.zip" | |
- name: Run AWS CLI installer. | |
shell: "/tmp/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws" | |
- name: Log into aws ecr docker registry | |
when: jupyterhub__notebook_registry != '' | |
shell: "$(/usr/local/bin/aws ecr get-login --no-include-email --region us-east-1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment