Gitlab CI/CD and SSM Variables

Hello guys, i’m trying to setup pipelines for my current project and i’m stucked on this issue, on my .ci file i have those variables that come from the repository variables.
image

And on my serverless file i have other variables that’s coming from ssm.

I think the problem is when the pipeline is running the gitlab is searching those variables on repository variables and not on the ssm. On my machine everything works well but the pipeline is returning this. how i can fix that?

Serverless variables

pipeline log