Exclude directories from elastic beanstalk deploy

ぃ、小莉子 提交于 2019-12-04 01:01:01

With the current eb cli v3.x elastic beanstalk supports the .ebignore file. It follows the same format as a .gitignore file and it replaces it on deploy.

If you want to use .ebignore then you need to copy your .gitignore into the file and then add the extra exclusions to the file. If you edit your .gitignore file in the future you will need to replicate any changes into you .ebignore file.

See elastic beanstalk docs for more details

Unfortunately, this is not currently possible. The best workaround right now is to create your own zip and tell the CLI to use it instead. You can do this by adding the following lines to .elasticbeanstalk/config.yml

deploy:
  artifact: /path/to/file.zip

If you can script your zip, you could add an alias like

alias ebdeploy="zip {your zip stuff here}; eb deploy"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!