I have a simple pipeline for deployment of react app to s3 bucket along with CloudFront invalidation. AWS credentials (secured) where as AWS default region, S3 bucket name and CloudFront Distribution ID are defined in repository variables as unsecured. During execution of the pipeline, I see the aws s3 sync command fails because the secured deployment variables are not getting set in the execution context. The unsecured variables are working fine.
What am I doing wrong? Seems like a basic setup.