I am using the Elastic Beanstalk command line tool and function eb config put config. According to AWS Elastic Beanstalk documentation, you must specify your file according to * .cfg.yml and put it in the .elasticbeanstalk / saved_configs file ( http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-config .html # eb3-configexample ). I did it, and it made you write Yamla. I don’t know much about Yaml, but I have tried many different ways to write a configuration file, and I cannot get EB to accept it. Below is basically what, in my opinion, is the closest place to me (pay attention to the actual names and url that have been replaced below):
aws:
elasticbeanstalk:
create-configuration-template:
application_name: ProjectName
template_name: TemplateName
environment_id: EnvironmentName
- option_settings:
option_name: mongodb
value: "mongoAddress.com"
Error message for above:
ERROR: Error parsing configuration file as yaml or json. Yaml error: 'Invalid Yaml: while parsing a block mapping
in "<reader>", line 4, column 5:
application_name: ProjectName
^
expected <block end>, but found BlockEntry
in "<reader>", line 7, column 5:
- option_settings:
^
', Json error: 'Invalid JSON: Unexpected character (a) at position 0.'
"-" option_settings, :
ERROR: Invalid Environment Configuration specification. Must specify configuration template version.
? ,
EDIT: AWS: http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/create-configuration-template.html