ubuntu@ip-172-31-41-150:~$ export DATABASE_USER=$(aws ssm get-parameters --region ap-northeast-2 --names DATABASE_USER --query Parameters[0].Value | sed 's/"//g')
An error occurred (UnrecognizedClientException) when calling the GetParameters operation: The security token included in the request is invalid.
$ ubuntu@ip-172-31-41-150:~/.aws$ aws ssm get-parameters --region ap-northeast-2 --names DATABASE_USER --query Parameters[0].Value | sed 's/"//g'
admin # 데이터베이스 서버에 유저명을 제대로 가져옴.
참고