Package Details: aws-session-manager-plugin 1.2.312.0-2

Git Clone URL: (read-only, click to copy)
Package Base: aws-session-manager-plugin
Description: AWS Session Manager Plugin for aws-cli.
Upstream URL:
Keywords: aws aws-cli plugin session-manager
Licenses: custom
Submitter: CallumDenby
Maintainer: P67 (whynothugo, ChrisLane)
Last Packager: ChrisLane
Votes: 11
Popularity: 0.57
First Submitted: 2019-09-17 12:47 (UTC)
Last Updated: 2022-04-06 13:22 (UTC)

Latest Comments

P67 commented on 2022-04-06 11:41 (UTC)

@ChrisLane - Indeed, did it manually at first. Generated through makepkg now.

I'll add you to the co-maintainers, along with @whynothugo so this project can be maintained properly. If you want, you can of course take maintainer instead of just co.

ChrisLane commented on 2022-04-06 11:22 (UTC)

@P67 I'm happy to help maintain or own.

Also, it looks like you might've updated .SRCINFO manually since it's not currently valid. Happy to fix for you but if not here's a diff:

diff --git a/.SRCINFO b/.SRCINFO
index d903194..2db63ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = aws-session-manager-plugin
    pkgrel = 1
    url =
    arch = x86_64
+   arch = aarch64
    license = custom
    depends = aws-cli
    options = !strip
@@ -12,10 +13,9 @@ pkgbase = aws-session-manager-plugin
    backup = usr/sessionmanagerplugin/LICENSE
    backup = usr/sessionmanagerplugin/seelog.xml
    backup = usr/sessionmanagerplugin/VERSION
-   source_x86_64 =
-   sha512sums_x86_64 = 0ee3978e197308395f85126ce9a59e427c50b0e3832cb2337b2ca29a687463b7238668e431e18b3a0be5dc9c278d5c9663cfb1d6fcdee5abc4673b900855c16a    
-   source_aarch64 =
+   source_x86_64 = aws-session-manager-plugin-1.2.312.0.deb::
+   sha512sums_x86_64 = 0ee3978e197308395f85126ce9a59e427c50b0e3832cb2337b2ca29a687463b7238668e431e18b3a0be5dc9c278d5c9663cfb1d6fcdee5abc4673b900855c16a
+   source_aarch64 = aws-session-manager-plugin-1.2.312.0-aarch64.deb::
    sha512sums_aarch64 = fb07b660598ac5f6f765a040d2e1efa9b4df62e1b2558b1a259db21c6f53cafbb7ddf27262002156bad67b23da865e9181d972f6d57c7bd371d24cb5d899d7e6

 pkgname = aws-session-manager-plugin

whynothugo commented on 2022-04-06 10:08 (UTC)

I can help co-maintain this. I use it little, but use it on both x86_64 and aarch64.

P67 commented on 2022-04-06 09:56 (UTC)

I've updated the PKGBUILD to the new 1.2.312.0 version, including aarch64 support and also cleaned up Contributors/maintainers from the PKGBUILD contributor comments.

I am however no longer actively using ArchLinux (As a main machine, hence the slower updates.); if someone wishes to co-maintain or own the package, please step forward.

whynothugo commented on 2022-03-23 00:15 (UTC)

I can leave patches if anything breaks for it for me only on aarch64.

P67 commented on 2022-03-22 21:40 (UTC) (edited on 2022-03-22 21:41 (UTC) by P67)

I personally cannot test aarch64 builds from build to install and functionality due to the sheer lack of having no system with this architecture in my possession.

I can however add it to supply this functionality based on the sums that are gotten from the files, if that's OK?

whynothugo commented on 2022-03-22 11:56 (UTC)

Sorry for the noise. This diff is more solid:

diff --git a/PKGBUILD b/PKGBUILD
index a0bd65b..1fbc2ba 100644
@@ -6,14 +6,16 @@ pkgname=aws-session-manager-plugin
 pkgdesc="AWS Session Manager Plugin for aws-cli."
+arch=('x86_64' 'aarch64')
 backup=('usr/lib/systemd/system/session-manager-plugin.service' 'usr/sessionmanagerplugin/LICENSE' 'usr/sessionmanagerplugin/seelog.xml' 'usr/sessionmanagerplugin/VERSION')
 options=('!strip' '!emptydirs')

I had to specify different names for both sources, otherwise tools like updpkgsums and some AUR helpers mix them up. This'll probably make updating the package in future more of a breeze too, since the filename won't collide for checksums any more.

P67 commented on 2022-03-15 12:29 (UTC)

Bumped the version. The patch concerning checksums I'll implement in either next release or asap as well. Thanks!

bobsaintcool commented on 2022-03-07 23:08 (UTC)

In addition to @yan12125 patch could you consider bumping the version to the last release please?

Below is another patch:

@@ -3,7 +3,7 @@
 # Contributor: Callum Denby

 pkgdesc="AWS Session Manager Plugin for aws-cli."
@@ -13,7 +13,7 @@ depends=('aws-cli')
 backup=('usr/lib/systemd/system/session-manager-plugin.service' 'usr/sessionmanagerplugin/LICENSE' 'usr/sessionmanagerplugin/seelog.xml' 'usr/sessionmanagerplugin/VERSION')
 options=('!strip' '!emptydirs')

yan12125 commented on 2022-02-19 18:05 (UTC)

Even when Amazon does not replace files, checksums can still fail as deb files for different versions are downloaded as the same name. Please reconsider adding $pkgname-$pkgver.deb to the source array as suggested by @gdamjan and Arch package guidelines [1]. Here is the complete patch:

diff --git a/PKGBUILD b/PKGBUILD
index 161aea3..5c67d19 100644
@@ -12,7 +12,7 @@ license=('custom')
 backup=('usr/lib/systemd/system/session-manager-plugin.service' 'usr/sessionmanagerplugin/LICENSE' 'usr/sessionmanagerplugin/seelog.xml' 'usr/sessionmanagerplugin/VERSION')
 options=('!strip' '!emptydirs')



vanaoff commented on 2021-11-21 19:40 (UTC)

Hey, I think pkgrel in .SRCINFO was forgotten to bump to 2.

P67 commented on 2021-09-28 17:51 (UTC)

Hey hey, sorry missed that one. - Adjusted in release 2 now.

@SpineEyE: The PKGBUILD does refer to a ${pkgver}:

christoph.gysin commented on 2021-09-28 12:19 (UTC) (edited on 2021-09-28 12:19 (UTC) by christoph.gysin)

.SRCINFO still refers to

SpineEyE commented on 2021-09-23 14:45 (UTC)

Download validation fails. You should use ${pkgver} in the source location.

P67 commented on 2021-08-27 09:24 (UTC)

Hey @dhummel.

Indeed, I've released a new pkgrel, removing these extra spaces. Thanks!

dhummel commented on 2021-08-11 04:46 (UTC) (edited on 2021-08-11 04:51 (UTC) by dhummel)

There seems to be some extra spaces after pkgver:

diff --git a/PKGBUILD b/PKGBUILD
index 4d21d36..335b629 100644
@@ -3,7 +3,7 @@
 # Contributor: Callum Denby <>

 pkgdesc="AWS Session Manager Plugin for aws-cli."

ElijahLynn commented on 2021-07-09 21:33 (UTC) (edited on 2021-07-09 21:34 (UTC) by ElijahLynn)

For those getting the validity check failure and using yay:

rm -rf ~/.cache/yay/aws-session-manager-plugin/

languitar commented on 2021-03-25 08:44 (UTC)

Removing the cached file helped. Pretty annoying when upstream changes contents without changing versions.

troyengel commented on 2021-03-24 18:47 (UTC) (edited on 2021-03-24 23:04 (UTC) by troyengel)

@gdamjan - it's in a numbered subdirectory if you look, the problem is a vendor is secretly replacing one archive file with another by the same name, something which Amazon has done before with this package if you read past comments. The only real solution is to wait a bit until the final one reveals itself then update the PKGBUILD to match what everyone sees. A vendor really should not be doing what they do, the shasum of a released (tarball, package, etc.) should never change - you bump the version if you do that, which they do not - it appears that they just repackage and overwrite the same named file.

2021-03-24 23:00 UTC - the archive downloaded from my laptop just now matches the same sha512sum as when I built the update about 23h ago; no change here yet, PKGBUILD working

gdamjan commented on 2021-03-24 14:59 (UTC) (edited on 2021-03-24 15:02 (UTC) by gdamjan)

ahh, the archive seems to have been cached. maybe change source=($pkgname-$pkgver.deb::…the url)

gdamjan commented on 2021-03-24 14:57 (UTC)

b581e68546f102df1b196feeb852f5029495c8c5671efa4493b0ede4b7acb5daa6ded4fd632dfe5d17c2439e20c016597ce5ec0d08eb4209ce81f17767b94238 session-manager-plugin.deb

troyengel commented on 2021-03-24 13:32 (UTC)

@languitar - this has happened before with Amazon's download, I just updated my work laptop and it validated fine. I suspect that (a) they swapped out the package with a hidden fix, and (b) there's a geo-based CDN delivering the download and I'm getting one version of the DEB, you're getting another version as the CDNs are not in sync (as it's the same filename, one of them simply skipped re-syncing it).

Since it's passing sha512sum for me just now, I'll assume this laptop hit the same CDN as my other machine last night - for now, you can just edit the pkgbuild until they converge upstream and we get the same DEB file (sha512) for everyone... (and we can update the pkgbuild when the dust settles, if needed)

languitar commented on 2021-03-24 08:15 (UTC)

For me, the validity check fails now

troyengel commented on 2021-03-24 00:04 (UTC)

P67 must be out right now, backup maintainer here - I updated to the new release and deprecated 32bit support while I was in there.

P67 commented on 2021-01-04 10:24 (UTC)

Huh, That's typical.

I updated the package with the sha512sum makepkg -g gave back. That URL is the same it had gotten, but gives back a wholly different sha512sum as the curl apparently. To make it even more wonky, I do get the b581... sum now.

Should be fixed in the released just now!

troyengel commented on 2021-01-03 14:14 (UTC)

@Canha I confirm the same, AWS has updated the same-named package in some way which has changed the SH512 signature, this is not the first time this has happened. Until @P67 gets a moment to update the PKGBUILD for us, use curl and calculate it manually and update your PKGBUILD:

$ curl -sO

$ sha512sum session-manager-plugin.deb 
b581e68546f102df1b196feeb852f5029495c8c5671efa4493b0ede4b7acb5daa6ded4fd632dfe5d17c2439e20c016597ce5ec0d08eb4209ce81f17767b94238  session-manager-plugin.deb what I'm seeing as of this writing.

Canha commented on 2021-01-03 13:40 (UTC) (edited on 2021-01-03 13:42 (UTC) by Canha)

Currently getting:

==> Retrieving sources...
  -> Found session-manager-plugin.deb
==> Validating source_x86_64 files with sha512sums...
    session-manager-plugin.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!
error downloading sources: aws-session-manager-plugin

ElijahLynn commented on 2020-05-16 03:19 (UTC) (edited on 2020-05-16 03:28 (UTC) by ElijahLynn)

[RESOLVED - see bottom] I am getting the error:

session-manager-plugin.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!
Error downloading sources: aws-session-manager-plugin

The issue appears to be that has a sha256sum of d4d578a64210165ec434d658212304a968acb2efa49074868552427e738ea97c and the sha256sum in PKGBUILD is 21c7778ece8fadaf3f5510c7af5f90b6bbe1c41eb4d71cae57630c8bda8bba3bc19aabd44e2a0abcb56e18306cc05b060e377f2fb57ef78dcfd17bf1e784ce66.

Anyone else getting this?

I had previously installed with (my first PKGBUILD/AUR) so I do wonder if that may be confusing things, but it seems like the mismatched SHA is the issue.

UPDATE: NVM - Yeah, I was using sha256sum instead of sha512sum. It matches, and does seem to be because of my previous install. I yay --remove aws-session-manager-plugin and reinstalled but same error so then I rm -rf ~/.cache/yay/aws-session-manager-plugin and reinstalled and all is well.

troyengel commented on 2020-04-16 16:31 (UTC)

I really hated to do this, but as I've tried to contact the packager twice (he was initially responding to email, then went MIA) and received no replies I've used the Submit Request to the Arch TU team to add a co-maintainer or orphan the package so someone else can update it. @P67 I'll forward you the auto-generated email and keep you in the loop.

P67 commented on 2020-04-16 16:20 (UTC) (edited on 2020-04-16 16:21 (UTC) by P67)

Hey @CallumDenby. Is there a possibility to get this updated? I'd love to collaborate to keep this package up to date..

I've already got a working PKGFILE handy if need be.

languitar commented on 2020-03-27 13:02 (UTC)

Any chance to get this updated?

crou commented on 2019-11-22 02:30 (UTC)

@troyengel you are right, /opt is a much better location! I vote for it :-)

troyengel commented on 2019-11-21 20:07 (UTC) (edited on 2019-11-21 20:07 (UTC) by troyengel)

@crou I was thinking about that overnight as well, I think /opt would be a more LFHS standard / compliant path to use rather than /usr/local (spec)- Amazon is our vendor and delivering a binary payload, which matches the general concept of other vendor tooling we have in AUR (google-cloud-sdk, Zoom, etc.) and how it's delivered to users.

crou commented on 2019-11-21 18:59 (UTC) (edited on 2019-11-21 19:01 (UTC) by crou)

I haven't realized before, but is that expected to have this binary installed in /usr/sessionmanagerplugin/ ? /usr/local/sessionmanagerplugin would be more appropriate ;-)

troyengel commented on 2019-11-20 21:59 (UTC)

@CallumDenby I emailed you, easier to chat re: the versions. Not sure myself. :-/

troyengel commented on 2019-11-20 21:51 (UTC)

For anyone upgrading - because we just moved a non-package-tracked symlink into the package proper, you may see this when you attempt to upgrade to or above from an older version:

(1/1) checking for file conflicts                                                 [###############################################] 100%
error: failed to commit transaction (conflicting files)
aws-session-manager-plugin: /usr/bin/session-manager-plugin exists in filesystem

Just do a quick sudo rm /usr/bin/session-manager-plugin first then upgrade the package. Standard pacman behaviour, protecting you from possibly making a mistake.

CallumDenby commented on 2019-11-20 21:48 (UTC)

I found the same thing, I'm unsure whether to provide version 1.1.50 without it being documented within the web page. What do you advise?

troyengel commented on 2019-11-20 21:47 (UTC)

@CallumDenby I dug into the SHAs a bit, I think we're seeing a new version at the "latest" link which is not yet updated on the HTML page. After extracting the two payloads:

diff -uNr numbered/control/control latest/control/control
--- numbered/control/control    2019-10-11 17:28:21.000000000 -0500
+++ latest/control/control  2019-11-13 17:17:27.000000000 -0600
@@ -1,6 +1,6 @@
 Package: session-manager-plugin
 Architecture: amd64

(and other diffs saying the files don't match). Looks like a new is what "latest" actually is, not shrug

CallumDenby commented on 2019-11-20 21:45 (UTC)

/etc/init has now been removed, as has aws-session-manager-plugin.install

symlink is done within the package section in the PKGBUILD

CallumDenby commented on 2019-11-20 21:16 (UTC) (edited on 2019-11-20 21:17 (UTC) by CallumDenby)

@troyengel checksums were updated, but it seems the links below have different checksums which I didn't check. Now updated. Going to add the other suggestions you made now.

troyengel commented on 2019-11-20 21:05 (UTC)

Also, I'm the one who just flagged it out of date - I think you updated the version, but did not update the SHA/checksum as I get an error now.

$ pikaur -S aws-session-manager-plugin


:: AUR package will be installed:
 aws-session-manager-plugin             ->


==> Retrieving sources...
  -> Downloading session-manager-plugin.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3940k  100 3940k    0     0  4759k      0 --:--:-- --:--:-- --:--:-- 4753k
==> Validating source_x86_64 files with sha512sums...
    session-manager-plugin.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!

troyengel commented on 2019-11-20 21:02 (UTC)

Hi, can you please remove the automatic start and unit enablement of this package? I think you copied this from the Debian package, it doesn't belong on Arch.

You can pretty much delete this whole file and stop including it in the package install - the /usr/bin symlink needs moved out of the scripts above and into your PKGBUILD so that the system can properly track who owns it as a deployed "file" - when you link and remove in scripts, it's "untracked" and leads to problems. Link it in the PKGBUILD package() section and the tooling will automatically do the right thing. It will install/remove the symlink with the package on it's own.

E.g. good vs. bad:

$ ls -l /usr/bin/{bunzip2,session-manager-plugin}
lrwxrwxrwx 1 root root  5 Nov 12 06:52 /usr/bin/bunzip2 -> bzip2
lrwxrwxrwx 1 root root 52 Nov 20 14:41 /usr/bin/session-manager-plugin -> /usr/sessionmanagerplugin/bin/session-manager-plugin

$ pacman -Qo /usr/bin/{bunzip2,session-manager-plugin}
/usr/bin/bunzip2 is owned by bzip2 1.0.8-3
error: No package owns /usr/bin/session-manager-plugin

As Arch is a systemd system, we do not need /etc/init/session-manager-plugin.conf as well. This is the only package out of 1,270 on my system placing a file in /etc/init/ :)

dar10d6 commented on 2019-11-01 03:39 (UTC)

I also ran into this problem on Manjaro. I searched briefly online and couldn't figure what cleanBuild was (I'm new to Manjaro / Arch / AUR).

For reference, the solution that worked for me was:

# remove existing build files
pamac clean -b

# update, which clones a fresh git repo
pamac update

jdreaver commented on 2019-10-27 02:27 (UTC)

@CallumDenby cleanBuild worked! Thanks, I didn't know that was an option. I wonder why cleanBuild was required.

CallumDenby commented on 2019-10-27 01:17 (UTC)

@jdreaver Do you have any tips to reproduce this? I can't recreate it on my end. Can you post the sha512sum of your download or try cleanBuild?

jdreaver commented on 2019-10-26 20:56 (UTC)

Thanks for making this package in the AUR!

Unfortunately, I'm getting a validation error on the .deb file in the latest version. This is part of my output when updating with yay:

==> Making package: aws-session-manager-plugin (Sat 26 Oct 2019 01:54:56 PM PDT) ==> Retrieving sources... -> Found session-manager-plugin.deb ==> Validating source_x86_64 files with sha512sums... session-manager-plugin.deb ... FAILED ==> ERROR: One or more files did not pass the validity check!

CallumDenby commented on 2019-09-19 16:06 (UTC)

Thanks @gr211, updated with the changes.

gr211 commented on 2019-09-19 10:52 (UTC)


Thanks for this package. Made some changes here

to reflect the fact that files are being moved out of /usr/local into /usr.