The SSM Parameters though accessible via AWS CLI were not accessible using osls with AWS SDK V3 enabled and it works with it disabled. There are no issues with AWS Credentials and it was verified.
I am using AWS SSO than fixed credential.
Variables are referred like this in application - serverless.yaml
custom:
secrets: ${ssm:/aws/reference/secretsmanager/dev-api-service, null}
Above usage led to this error
Cannot resolve serverless.js: Variables resolution errored with:
UnrecognizedClientException: The security token included in the request is invalid.
I have also seen similar issue reported with serverless - serverless/serverless#13182
The SSM Parameters though accessible via AWS CLI were not accessible using
oslswith AWS SDK V3 enabled and it works with it disabled. There are no issues with AWS Credentials and it was verified.I am using AWS SSO than fixed credential.
Variables are referred like this in application -
serverless.yamlAbove usage led to this error
I have also seen similar issue reported with serverless - serverless/serverless#13182