AWS "eb deploy" always zips all files

I am new to using git with eb cli to deploy my code to awas elastic beanstalk. Despite the fact that it was most beneficial to deploy certain files on eb cli (from fixing), but every time I commit some files and deploy my application, eb cli zip the whole project, and it is too much to download all the time. Please help me, I read almost everything about this on the aws documentation and I don’t know anything there. Thank!

+4
source share
2 answers

EB CLI does not currently support incremental downloads of your application. Each time you use eb deployit will close your entire project and load it as a new version of the application.

EDIT:

Starting with version 3.8.0, the EB CLI now supports AWS CodeCommit.

You can configure the current git repository to work with code commit using the following commands.

$ eb codesource codecommit

What you walk through an interactive installation to use AWS CodeCommit. It is supported by the CLI CL for deploying incremental git, which is committed to the CodeCommit repository and then deployed to your Elastic Beanstalk environment.

For more information, check out the docs .

+1
source

, ; , zip eb deploy.

.elasticbeanstalk/config.yml:

deploy:
  artifact: some-custom-zip.zip

, .elasticbeanstalk. bash script, zip eb- Makefile.

Makefile:

some-custom-zip.zip: something.py another.py
    zip $@ something.py another.py

deploy: some-custom-zip.zip
    eb deploy

.PHONY: deploy
+7

Source: https://habr.com/ru/post/1650065/


All Articles