Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running "serverless" from node_modules after installation #541

Open
mofolo opened this issue Jan 3, 2023 · 1 comment
Open

Running "serverless" from node_modules after installation #541

mofolo opened this issue Jan 3, 2023 · 1 comment

Comments

@mofolo
Copy link

mofolo commented Jan 3, 2023

This is a (Bug Report / Feature Proposal)

Bug Report

Description

After installing the dependency into the project all invokes show

Running "serverless" from node_modules

This causes an issue with the AWS Profile being loaded

In the Yaml:
profile: profile2

Profile 2 appears to be "loaded" but when you check the Credential token using

AWS.config.getCredentials(function (err) {
  if (err) console.log(err.stack);
  // credentials not loaded
  else {
    console.log("Access key:", AWS.config.credentials.accessKeyId);
  }
});

It returns the "default" AWS token.
This causes a whole bunch of errors within a project that works perfectly without the plugin.

Removing the plugin fixes these issues.

Additional Data

  • Serverless Framework Core Version you're using:
    Framework Core: 3.26.0 (local) 3.7.1 (global)
    Plugin: 6.2.2
    SDK: 4.3.2
  • The Plugin Version you're using:
    3.11.1
@mofolo
Copy link
Author

mofolo commented Jan 3, 2023

I forked a version of this without the serverless Peer-dependency in the package.json and this issue was resolved.

Maybe something to look into?
https://github.com/mofolo/serverless-step-functions-without-serverless

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

No branches or pull requests

1 participant