Install localstack on ubuntu: https://medium.com/testvagrant/how-to-install-localstack-natively-on-ubuntu-18-04-step-by-step-ca344b7b7d78
Extra step: in case the localstack command is not recognized:
Go to /home/<user>/.local/bin
and check if localstack is present
add it to path by echo $PATH
and adding the items after a :
Download aws cli v2
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Install awslocal cli wrapper
pip install awscli-local
check using awslocal sts get-caller-identity