This is my first time deploying on AWS Elastic BeanStalk. I have built an application https://github.com/ChristopherPHolder/dribblz and decided I should deploy it on Elastic BeanStalk so I tried to follow their tutorial on https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
I have been trying to deploy it for 2 days now but don't know what else to try. It seems like there are many questions here related to Elastic BeanStalk but not all of them have answers and non of them seem to have the same issue as me.
I get this error:
ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
And if I inspect the logs I can narrow down the error to a problem with pipenv in the pipfile.
[ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with Pipfile file with error Command /bin/sh -c /usr/bin/python3.8 -m pipenv install --skip-lock failed with error exit status 1. Stderr:Traceback (most recent call last):
...
...
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 4 column 1 (char 35)
The line causing trouble seems to be
verify_ssl = true
However, I have tried deleting the pipfile and pipfile.lock as well as deleting the line that is causing the error in the pipfile.
I am attempting to create the virtual environment with python3.8 and locally run python3.8.11, I know that they use python3.8.5 but that should be causing the issue in my opinion.
I have looked at
deployment error - django to elastic beanstalk But that is a dependency-specific issue and it does not have an answer.
Deploying Django application To AWS ElasticBeanstalk But again same issue.
How to solve Update environment operation is complete, but with errors. For more information error in AWS Elasticbeanstalk Not clear at all
Python/Json:Expecting property name enclosed in double quotes But still, doesn't answer my question or give me any hints as to the nature of the error.
I have read quite a few more and gone through their documentation but I can't seem to find anything relevant to this issue.
What else can I look into? Does anyone have experience with an issue like this?