Skip to content

Conversation

@rahulrajaram
Copy link
Collaborator

@rahulrajaram rahulrajaram commented Apr 12, 2025

Issue #, if available:

Description of changes:

[This PR replaces #535]

This commit adds support eb deploy ... --archive <ZIP|dir> so that customers can point to arbitrary directories/ZIP files to deploy to existing environments. In the presence of the --archive argument, eb deploy will ignore the .elasticbeanstalk/config.yml file if it is present. If it is not present, it will operate in its absence. The --archive argument will accept directories or ZIP files. If the argument is a directory, eb deploy will ZIP the directory and save it in the ~/.ebartifacts/archives directory. It will upload it to S3 and invoke EB::CreateApplicationVersion with the artifact. Like with the eb-deploy flow without --archive, it will proceed to perform an EB::UpdateEnvironment and wait for the update to complete.

One limitation of the current approach is that it requires the environment to already exist. It would be nice to have eb deploy issue an environment trigger based on the eb create's sane defaults.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rahulrajaram rahulrajaram changed the base branch from PeripheralEBMigrateEnhancements to master April 12, 2025 06:49
@rahulrajaram rahulrajaram requested review from a team and praegt April 12, 2025 06:52
This commit adds support 'eb deploy ... --archive <ZIP|dir>' so that
customers can point to arbitrary directories/ZIP files to deploy to
existing environments.  In the presence of the '--archive' argument, 'eb
deploy' will ignore the .elasticbeanstalk/config.yml file and operate in
its absence. The '--archive' argument will accept directories or ZIP
files. If the argument is a directory, 'eb deploy' will ZIP the
directory and save it in the '~/.ebartifacts/archives' directory. It
will upload it to S3 and invoke EB::CreateApplicationVersion with the
artifact. Like with the eb-deploy flow without '--archive', it will
proceed to perform an EB::UpdateEnvironment and wait for the update to
complete.
@rahulrajaram rahulrajaram force-pushed the PeripheralEBMigrateEnhancements branch from e9d1efd to 38f78f6 Compare April 13, 2025 16:43
@rahulrajaram rahulrajaram requested a review from amjadsy April 14, 2025 17:21
@rahulrajaram
Copy link
Collaborator Author

Tests pass against Python 3.12 and 3.9. Will fix Github Action credentials problem subsequently

@rahulrajaram rahulrajaram merged commit b8eb8ec into aws:master Apr 14, 2025
6 of 12 checks passed
@rahulrajaram rahulrajaram deleted the PeripheralEBMigrateEnhancements branch April 14, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants