I'm using eb create
to create a new environment. The file structure is:
myapp
'- .ebextensions
'- options.config
'- elasticbeanstalk
'- config.yml
However the environment variables are not created, which I can confirm via: Elastic Beanstalk > Environments > myenv Configuration.
My options.config
is:
option_settings:
- option_name: SPRING_PROFILES_ACTIVE
value: elasticbeanstalk
My config.yaml is:
branch-defaults:
feature/highscore:
environment: myapp-dev
group_suffix: null
main:
environment: null
group_suffix: null
deploy:
artifact: build/libs/my-app-name.zip
global:
application_name: my app name
branch: null
default_ec2_keyname: aws-eb
default_platform: Corretto 11 running on 64bit Amazon Linux 2
default_region: eu-central-1
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: null
repository: null
sc: git
workspace_type: Application
What am I doing wrong? Why are the environment variables not loaded in elastic beanstalk?