Skip to content

SLS_AWS_SDK_V3 - Unable to access SSM Parameters #132

@shaswot77

Description

@shaswot77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions