I'm trying to run eb create to deploy my Django project to AWS. The error I'm getting is ERROR: ServiceError - Configuration validation exception: Invalid option specification (Namespace: 'aws:elasticbeanstalk:container:python:staticfiles', OptionName: '/static/'): Unknown configuration setting.
I'm unsure what this error means and there's not much I can find on it.
I've tried to define this variable in .ebextensions/django.config.
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango.wsgi:application
aws:elasticbeanstalk:container:python:staticfiles:
/static/: 'frontend/views/build/static/'
My settings.py is configured with the following vars:
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'frontend/views/build/static')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
I'm trying to run this ebs instance on Amazon Linux 2