Comments (7)
@Rendanic there should be no need to execute postinstall
on your own, it is part of npm install
process itself. Also, you may want to use SAM as deployment mechanism, more elegant than serverless IMHO - https://github.com/base2Services/shelvery-aws-backups/blob/develop/deploy-sam-template.sh
from shelvery-aws-backups.
I tried SAM and it worked after some modifications to the script.
The example needs some tweaks to work on my side. I'll create a PR to make it more flexible for other users.
Hopefulle the doc for serverless will be modified, because it doesn't work at the moment.
from shelvery-aws-backups.
@Rendanic can you point us to exact point that failed with npm. I tried and used doco with success yesterday, I'm unclear on this line -
postinstall /usr/local/lib/node_modules/serverless/
as I couldn't find it in the doco
from shelvery-aws-backups.
docker run --rm -it -v $HOME/.aws:/root/.aws -w /src node:latest bash
git clone https://github.com/base2services/shelvery && cd shelvery
npm install -g serverless
root@1530a29db151:/src/shelvery# node postinstall
I get the following error from 'node postinstall'
internal/modules/cjs/loader.js:1017
throw err;
^Error: Cannot find module '/src/shelvery/postinstall'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1014:15)
at Function.Module._load (internal/modules/cjs/loader.js:884:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
from shelvery-aws-backups.
from shelvery-aws-backups.
Thanks for the fast reply.
That was my first serverless deployment and I tried it from the documentation.
Hint: Change the commands in command or command
from shelvery-aws-backups.
Yeah, was replying from my phone via email, otherwise I would put command
from shelvery-aws-backups.
Related Issues (20)
- Recommendations and best practices HOT 6
- Can we have shelvery wrapped as Cfhighlander module HOT 2
- Update the sam deploy script to use the sam cli HOT 1
- How to limit AMI creation to 1 EC2 with aws cli? HOT 4
- Problem with clean_backups and long retention time HOT 2
- yaml error while running the code in AWS Lambda HOT 4
- shelvery.data s3 bucket should be set to block all public access
- support latest version of pyyaml
- shelvery fails to copy shared backup
- improve integration tests and add test cases
- create github action to release shelvery pip package to pypi
- local variable 'current_policy' referenced before assignment HOT 1
- don't take backup when retention is set to 0 and fall back to next backup type
- handle sharing rds snapshot rate limiting HOT 1
- Fix unit tests
- Ability to configure bucket names
- Listing large volume of snapshots on cleanup times out lambda function HOT 2
- documentDB snapshot support HOT 1
- AWS EBS - Snapshot copies to another region(s) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shelvery-aws-backups.