Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tutorial fails for AWS Node.js

I am currently working through AWS's Node.js tutorial, but am stymied at the deployment phase. When I try to upload the provided source bundle, the build fails and I get the following error:

Unable to deploy application version: Configuration validation exception: Invalid option specification (Namespace: 'aws:elasticbeanstalk:container:nodejs:staticfiles', OptionName: '/static'): Unknown configuration setting.

Where does this error come from, and where can I look to fix it?

like image 859
Nathan Avatar asked Aug 07 '26 19:08

Nathan


1 Answers

"The current configuration assumes that you are using Amazon Linux AMI (pre-Amazon Linux 2), but the current default image is "Amazon Linux 2" and the static file parameter has changed."

Solution:

  • edit .ebextensions/options.config file
  • change:
   aws:elasticbeanstalk:container:nodejs:staticfiles:

to

   aws:elasticbeanstalk:environment:proxy:staticfiles:

reference: https://github.com/aws-samples/eb-node-express-sample/pull/21/files

like image 53
sherwin water Avatar answered Aug 10 '26 09:08

sherwin water