Skip to content

Instantly share code, notes, and snippets.

@desaijay315
Created June 7, 2020 18:38
Show Gist options
  • Save desaijay315/71bdb21d0395a6c2dbc1b4018ac97b01 to your computer and use it in GitHub Desktop.
Save desaijay315/71bdb21d0395a6c2dbc1b4018ac97b01 to your computer and use it in GitHub Desktop.
- 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