Skip to content

Conversation

@shaswot77
Copy link

@shaswot77 shaswot77 commented Jan 26, 2026

Summary

  • Fixes SLS_AWS_SDK_V3 - Unable to access SSM Parameters #132
  • Deployment with SLS_AWS_SDK_V3=1 was failing ${ssm:...} resolution with UnrecognizedClientException because Serverless forced early resolution of AWS SDK v2 credentials and copied them into SDK v3. Since credentials sourced from environment variables were not valid at that point in execution, the resolved credentials were incorrect and then reused by SDK v3.
  • We now await getPromise/refreshPromise (when present) in _resolveV2CredentialsForV3, so the v3 client config receives real accessKeyId,secretAccessKey and sessionToken. If no keys are available, we return undefined and allow SDK v3 to fall back to its own credential provider chain

Refactored AWS provider to resolve and hydrate v2 credentials asynchronously before building v3 client config. Updated related methods to be async and added logic to handle lazy credential providers, improving compatibility with various AWS credential sources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SLS_AWS_SDK_V3 - Unable to access SSM Parameters

1 participant