Last active
December 6, 2023 06:47
-
-
Save poacosta/3e3cc1cd06838399fdf016e4a7620d7b to your computer and use it in GitHub Desktop.
Elastic Beanstalk CLI Cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command will list all your environments which are setup in Elastic Beanstalk (EB) | |
$ eb list | |
EnvironmentName1 # Name of the first environment | |
EnvironmentName2 # Name of the second environment | |
EnvironmentName3 # Name of the third environment | |
# This command is used to display the status of the specified environment (EnvironmentName1) | |
$ eb status EnvironmentName1 | |
# The following command will set an environment variable (ENV_VAR_NAME) to a specific value (value) | |
# in a specific environment (-e EnvironmentName1) | |
$ eb setenv ENV_VAR_NAME=value -e EnvironmentName1 | |
# This command will print all environment variables for the specified environment (EnvironmentName1) | |
$ eb printenv EnvironmentName1 | |
# This command is used to upgrade the platform version of the specified environment (EnvironmentName1). | |
$ eb upgrade EnvironmentName1 | |
# Ref.: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EB CLI command reference: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.html