Reputation: 373
I thought I could just copy it into .ebextensions and then go
config= require("../.ebextensions/config.json")
in my lib/server.js, but not so. Do I have to subscribe to some native config game or can I just have my secret files copied over with
eb deploy
Upvotes: 0
Views: 501
Reputation: 373
To add a file onto the list of files in git I have done the below. This is deploying what's on the file system, so I guess this should be improved to fetch a branch from git and zip that up
rm package.zip
zip package.zip `echo config/config.json; git ls-tree --full-tree -r HEAD | awk '{print $4}'`
eb deploy
and append to .elasticbeanstalk/config.yml
deploy:
artifact: package.zip
Upvotes: 1
Reputation: 7997
assuming you meant eb deploy
and not eb debloy
, make sure you committed these config files.
Upvotes: 0