You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm trying to install AWS CLI using pipelines with the following commands :
# Installe and init AWS CLI
- apt-get update && apt-get install -y python-dev
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install --upgrade --user awscli
Then when I run :
aws --version
Throws this error
bash: aws: command not found
Any help?
Hi @Augusto Cordero ,
Install awscli from apt
- apt-get update && apt-get install -y awscli
- aws --version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that the version installed with this command is not the latest version and cannot handle the aws commands : ecr and ecs, which are what I need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would then recommend using Python 3
- apt-get update && apt-get install -y python3-pip
- pip3 install -U awscli
- aws --version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edwin - Do you have another base image for builds you can recommend that already contains the aws CLI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @AJ Steers ,
If all your doing is running awscli commands in the image, then i would recommend a lightweight alpine image .. governmentpaas/awscli - which is based on governmentpaas/curl-ssl
More options - awscli docker hub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks very much! I'm also looking for python3.5+ so I might just have to roll my own image to get both. I did a quick search on dockerhub but nothing popped up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did end up building my own image `aaronsteers/builder:python3.7-aws`. I've setup automated build and made the image public on dockerhub.com:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian also has an alpine image for the awscli: https://hub.docker.com/r/atlassian/pipelines-awscli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.