- Cannot resolve variable at "custom.ssm.secretPilott": An error occurred while calling one AWS dependency service

i have an error when deploying CICD , this is my serverless and how i set secrets : service: data-ingestion-pilott-order

plugins:

  • serverless-step-functions
  • serverless-plugin-aws-alerts

custom:
ssm:
secretPilott: ${ssm:/aws/reference/secretsmanager/data-ingestion-pilott-order-secrets-${opt:stage}}