Giter Site home page Giter Site logo

beary / serverless-plugin-aws-cn-principal Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 5 KB

Resolve serverless invalid principal issue when deploying in China region.

Home Page: https://www.npmjs.com/package/serverless-plugin-aws-cn-principal

License: MIT License

JavaScript 100.00%
aws serverless-plugin

serverless-plugin-aws-cn-principal's Introduction

Hi there ๐Ÿ‘‹

serverless-plugin-aws-cn-principal's People

Contributors

beary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

serverless-plugin-aws-cn-principal's Issues

it does not support --package command

Thanks for making a good serverless plugin.!

environment:

$ node --version
v8.12.0
$ npx sls --version
1.40.0
$ pwd
/Users/xxx/yyy/zzz

if package command has a --package option, it fails:

$ npx sls package --verbose --package build-prodcn
Serverless: Using configuration:
{
  "packager": "yarn",
  "webpackConfig": "webpack.config.js",
  "includeModules": false,
  "packagerOptions": {}
}
Serverless: Removing /Users/xxx/yyy/zzz/.webpack
Serverless: Bundling with Webpack...
Time: 16947ms
Built at: 2019-04-15 11:22:52

... skip webpack build info ...

Serverless: Zip service: /Users/xxx/yyy/zzz/.webpack/service [1541 ms]
Serverless: Packaging service...
Serverless: Remove /Users/xxx/yyy/zzz/.webpack

  Error --------------------------------------------------

  ENOENT: no such file or directory, open '/Users/xxx/yyy/zzz/.serverless/serverless-state.json'

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     OS:                     darwin
     Node Version:           8.12.0
     Serverless Version:     1.40.0

if without a --package option, it succeeds:

$ npx sls package --verbose
Serverless: Using configuration:
{
  "packager": "yarn",
  "webpackConfig": "webpack.config.js",
  "includeModules": false,
  "packagerOptions": {}
}
Serverless: Removing /Users/xxx/yyy/zzz/.webpack
Serverless: Bundling with Webpack...
Time: 3406ms
Built at: 2019-04-15 11:23:15

Serverless: Zip service: /Users/xxx/yyy/zzz/.webpack/service [1537 ms]
Serverless: Packaging service...
Serverless: Remove /Users/xxx/yyy/zzz/.webpack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.