Hi all! Every developer sooner or later has to deploy their applications to the cloud. In my case, after the development of the Telegram bot @rabotaUkraineBot, it became simply necessary to find a decent hosting for it. The very idea of developing a bot and the tools used for implementation are described in a separate article . The cloud platform candidates were the services of four well-known giants - Amazon Web Services (AWS), Google, Azure and Heroku. When choosing a hosting for myself, I set the following priorities: minimum price, ease of deployment, availability of additional services, flexibility. I will not immerse you in analytics and comparisons, I will immediately announce the winner - AWS. Why AWS, you ask? Because:
- a year of free use of AWS Free Tier , free resources under this offer are more than enough for my task;
- in AWS everything is Elastic, i.e. Everything is flexible and flexible. Thanks to this, DevOps skills are absolutely not needed when deploying your application;
- AWS has been investing heavily in development over the past two years, with new services appearing every month.
server.port=5000
If this is not done, then you will have to configure the port settings in the AWS console, which may incur additional fees from AWS. this goes beyond providing the AWS Free Tier service. The deployment process itself is absolutely not complicated and is done according to the official Getting Started Using Elastic Beanstalk guide . Features to pay attention to:
- when building the application, do not forget to configure the port as indicated above;
- when registering with AWS, you will need a payment card with at least $1 in your account (Amazon blocks $1 when validating a card);
- carefully study the limitations of the free AWS Free Tier service in order not to get into the money;
- If the application does not work as expected after deployment, you can find the Tomcat logs in the Logs menu in your application's Environment.
- start paying money according to the resources used;
- switch to the Amazon Lightsail service (it's cheaper there);
- rewrite the application using AWS Lambda and get free hosting;
- open a new account with AWS Free Tier services and deploy your application there, i.e. postpone the decision of the issue for another year.
GO TO FULL VERSION