aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Include SessionManagerPlugin in Docker image

Open utterlyforked opened this issue 4 years ago • 25 comments

The provided Amazon/aws-cli docker image is a great solution for deploying the AWS-CLI easily. I don't need to install the CLI or dependencies on my local machine. It does not however support the use of AWS SSM because the SessionManagerPlugin is not installed in the image.

Please include the AWS SSM Plugin in the image.

utterlyforked avatar Jul 14 '20 08:07 utterlyforked

Thanks for the feature request, @utterlyforked!

kdaily avatar Jul 15 '20 20:07 kdaily

How can we help to get the one-liner change into the image? My Dockerfile just because of this optional-but-actually-mandatory plugin:

FROM amazon/aws-cli

RUN curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "session-manager-plugin.rpm" && \
    yum install -y ./session-manager-plugin.rpm

aries1980 avatar Jul 17 '21 13:07 aries1980

This would be amazing if it could get fixed up. This removes the docker image as an option for us :(

andymac4182 avatar Feb 21 '22 06:02 andymac4182

Dear AWS have you given up on this project?

horttanainen avatar Apr 05 '22 08:04 horttanainen

If someone could explain us why this is a hard thing to add give the solution above, that would hush away the thoughts on this project has a bad governance.

aries1980 avatar Apr 05 '22 08:04 aries1980

+1

alimeerutech avatar Apr 13 '22 20:04 alimeerutech

How can this one line change be open for 2 years already?

dieterrosch avatar Jul 04 '22 12:07 dieterrosch

+1

realsby avatar Nov 03 '22 20:11 realsby

+1

kevkearney avatar Nov 09 '22 17:11 kevkearney

+100500

alexinfoblox avatar Nov 24 '22 09:11 alexinfoblox

+1

mshytikov avatar May 01 '23 10:05 mshytikov

+1

NikDevPHP avatar May 03 '23 06:05 NikDevPHP

Hi all, thanks for your patience. This feature request just came up in discussions with the team. The consensus was that this is a reasonable request, but there are still some tradeoffs to consider here. There is some concern about bloating the latest image by including the plugin when only a subset of CLI users may need this. Further investigation and discussion is needed but in the meantime we still want to continue tracking the issue here. Please :+1: the issue if you are also interested in seeing this.

tim-finnigan avatar Jun 13 '23 17:06 tim-finnigan

Maybe tag the image separately, similar to how many projects publish images with tag modifiers like "full" "slim" "buster" "debian" etc...

lorengordon avatar Jun 13 '23 17:06 lorengordon

Thanks @lorengordon for the suggestion, that is a path forward that the team is considering here.

tim-finnigan avatar Jun 13 '23 18:06 tim-finnigan

In case it's useful for anyone, we were using this in github actions, so I created a very small repository to customize the action. Since it's public, feel free to use it if anyone is on the same situation, like:

name: Whatever task you want to perform requiring the session manager plugin
uses: KadooRegalos/AwsCliSMP@master
env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
  args: your aws cli command, like ecs execute-command to perform database migrations on a running task

So basically, the only change is on the "uses" line, where instead of the official aws cli docker image, we have our repo action "KadooRegalos/AwsCliSMP@master"

Disruption avatar Jul 07 '23 16:07 Disruption

@tim-finnigan is there any news on this issue? The container offered here is almost useful, but ultimately not universally useful without the missing SSM tools.

smeyfroi avatar Jan 25 '24 16:01 smeyfroi

Creating an image with the SM plugin and having it tagged as much, keeping the version without that tag lighter sure seems like the way to do it. I hope we see this as it's causing an ECS implementation hurdle for our company.

timnolte avatar Feb 09 '24 20:02 timnolte