In one of the cells of Sagemaker notebook, I've set a variable
region="us-west-2"
In subsequent cell, I run following 2 shell commands
!echo $region
Output
us-west-2
However, unable to run aws shell command using this variable
!aws ecr get-login-password --region $region
$ variable-name
doesn't help inside jupyter cell ! shell command