Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws beanstalk config options for document root

I'm trying to predefine instance settings via config file but it just won't take it... if I create the environment it never reflects the settings. I think I might just miss something obvious but can't find a solution. I probably terminated and created the env now 30 times with different config file names and different yaml syntax.

.elasticbeanstalk/production.config:

option_settings:
  - namespace: 'aws:elasticbeanstalk:container:php:phpini':
    option_name: document_root
    value: /htdocs
  - namespace: 'aws:autoscaling:asg':
    option_name: MinSize
    value: 2
  - namespace: 'aws:autoscaling:asg':
    option_name: MaxSize
    value: 8
  - namespace: 'aws:elasticbeanstalk:application:environment':
    option_name: env
    value: production
like image 832
Toby Avatar asked Oct 15 '25 18:10

Toby


1 Answers

That file belongs in the .ebextensions folder and not in .elasticbeanstalk

like image 65
Tal Avatar answered Oct 18 '25 09:10

Tal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!