So I am using ghcr as my container registry and having some images there. Trying to deploying those image using aws ecs and task definitions through terraform. In task definition, I have specified the image url and repository credentials. To access my image, I need to provide my ghcr username and token. I have stored my ghcr username and token as json object, in aws secret manager and aws ssm paraters as well.
{username: xxx,password: xxx}
If I use aws secret manager key arn as credentialsParameter, it works. If I use aws ssm parameter arn there, it is giving error. How to use ssm parameter which has text as above json object in credentialsParameter ? Is there is anyway or workaround to do that ? or I should use only secret manager key arn.