AWS cli tools with session manager plugin in custom image

Hi all, I’m quite new to the ublue way and want to do things in best practice way. I need AWS cli tools with the session manager plugin (a service) running on aurora dx to be able to connect to dev containers running on ec2 and to build ssh port forwards to connect to databases from DB beaver flatpak. I created my own repo for extending the dx image but run in problems. The normal AWS cli tools I can install via zip in /usr/lib but the session manager is only available as rpm and wants to install in /usr/local/… This is not available at build time of the image. I could create that folder during image build but this would I guess impact the runtime behavior of the image. Because in a running normal aurora-dx it is a link to /var/usrLocal which has a lot of folders in it and I guess they would be broken afterwards?

I want to provide the image ready to use for my team so toolbox may not work.

Any Ideas, best practices?

Kind regards

Martin