Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

punctuationmarks's avatar

Access tinker or database when deploying on AWS Elastic Beanstalk

New to using host providers like AWS. I have a Laravel 6 app that I don't want to have a register page for the user and was planning on manually adding the users (only 2 users, the app is a simple crud for a local artist) to the app, but not entire sure where I do that with Elastic Beanstalk. I have the app deployed and connected to a MySQL database through EC2. Should I ssh into the EC2 instance? Can I use tinker or do I need to use MySQL?

0 likes
2 replies
bobbybouwmann's avatar

Well, AWS Elastic Beanstalk is only a service that helps you deploy your website. It won't help you manage your data in the database for example. As you said in your own question, you have the database installed on the EC2 server.

You have two ways of managing your database that is on the server. Use a database management tool like TablePlus or Sequel Pro (for mac). Or SSH into the server and then login into MySQL to perform queries there. The last option is all command line.

If you're new I highly recommend you to use a database tool ;)

1 like
punctuationmarks's avatar

Thank you! I ended up just using the .ebextensions/config and seeding the database, which seemed more straight forward to me (not sure if it's good practice though)

Please or to participate in this conversation.