Skip to content

Instantly share code, notes, and snippets.

@vyk2rr
Last active October 22, 2022 18:39
Show Gist options
  • Save vyk2rr/05f6dbdfc439f6e76a9d60fc28cf974a to your computer and use it in GitHub Desktop.
Save vyk2rr/05f6dbdfc439f6e76a9d60fc28cf974a to your computer and use it in GitHub Desktop.
How to add an env variable in a deployment to an eb environment

create a file like:

.ebextensions/temporarily_set_env_variable.config

add:

+option_settings:
+  aws:elasticbeanstalk:application:environment:
+    API_ENDPOINT: www.example.com/api
git add .ebextensions/temporarily_set_env_variable.config

then:

eb deploy [environment] --staged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment