Wednesday, March 1, 2017

Java Applications on Amazon Web Services (AWS)

When I graduated from college in 1996, main programming languages for enterprise applications were C and C++. Although it was created for set-top boxes at the beginning, Java was gaining traction for enterprise projects. Since then Java has been widely the main choice for large enterprise applications.

Nowadays, many other languages emerged for cloud applications. With microservices architecture monolith applications are divided into self-contained logical units that are easily manageable. Because each service is independent of others, run-time platform of each service can also be different. This architecture allows us to easily select the best platform and language for each service. We can build one service with Ruby while using Scala for the other.

Java Applications in the Cloud

Event it is 20 years old, Java has it's place in cloud applications. Big companies like Netflix still use Java for their cloud applications. And thanks to companies that believe in open source like Netflix, building cloud applications in Java is easy.

Although you are not Netflix or Google, you can build Java cloud applications with Netflix Open Source Software packages. Spring Cloud framework contains Netflix open source software that includes service registration and discovery, circuit breakers, metrics, etc.

Amazon Web Services

Amazon has started its cloud services about ten years ago and now it is a leader in public cloud services. It provides many different integrated cloud services and it is a good choice if you try to build cloud applications.

Recently I decided to learn Amazon Web Services. I have used a couple of services like Elastic Compute Cloud (EC2) and Elastic Load Balancing (ELB).

When you learn something new, it is very important to use it. If you practice the things you learned, they become more permanent. At this point AWS Free Tier is incredible. It allows you to use many of services to some degree without a fee.

Also, I believe when you know something that can help others, you should share with others. So I started a blog, and I will share the things that I have learned about running Java cloud applications on AWS.

At the beginning, I will show how to develop a simple Java Spring Boot application and run in an AWS EC2 instance. In the next parts, I will show how to use other AWS services.

In this first post, to keep it short, I will only talk about creating an AWS account and setting up your environment. In the next post, I will show how to build a simple Java Spring Boot application.

Creating an AWS account

Before you start you need an AWS account. You can create a free AWS account here.

You should note that although AWS Free Tier gives 12 months free usage of some AWS services, credit card information is needed at registration time.

In addition, please note that registering an AWS account is an easy task, but staying in the Free Tier and keeping your account safe is not a trivial thing. It is important to know that AWS uses Shared Responsibility Model. So, please keep these things in mind:
  1. Enable AWS Multi-Factor Authentication mechanism on your root account to prevent account theft. You can use your smart phone as a virtual authentication device.
  2. Create a new IAM user and use its credentials for AWS CLI or AWS SDK API calls, not your root account.
  3. Keep your AWS access key id and secret access key private. Don’t make it public by putting in a public repository by accident. Hackers use bots to search API keys in public repositories.
  4. Create a billing alarm to keep you safe.
  5. After you did your experiments, delete the resources you created to avoid any charges.
AWS Command Line Interface

To execute commands on the command line you should install AWS CLI tools. You can install and configure as shown here.

After it is installed and configured correctly, you can execute commands like this.

C:\Users\Ceyhun>aws iam list-users
{
    "Users": [
        {
            "UserName": "CeyhunOzgun",
            "Path": "/",
            "CreateDate": "2016-12-10T08:25:15Z",
            "UserId": "XXXXXXXXXXXXXX",
            "Arn": "arn:aws:iam::XXXXXXXXXXX:user/CeyhunOzgun"
        }
    ]
}

And you are ready to run Java applications on AWS.

In the next post, I will show how to develop and deploy a simple Java Spring Boot application to an AWS EC2 instance.



123 comments:

  1. This information is impressive; I am inspired by your post writing style & how continuously you describe this topic...Amazon Web Services Training in Chennai
    Amazon Web Services Training Institute in Chennai

    ReplyDelete
    Replies
    1. IntelliMindz is the best IT Training in Bangalore with placement, offering 200 and more software courses with 100% Placement Assistance.

      Java Training In Bangalore
      Power BI Course In Bangalore

      Delete
  2. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.

    AWS Training in Bangalore|

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This is one awesome blog article. Much thanks again AWS Online Training

    ReplyDelete
  5. At present, most of the youngster is attracted by the Cloud Computing Courses since it provides excellent career opportunities as well as high pay. Your content also attracted me to learn Cloud Computing Certification. I am eager to know the entire process of Cloud processing.
    Regards:
    cloud computing training
    Cloud Computing Courses

    ReplyDelete
  6. Thank you sir keep sharing like this, we can improve our knowledge AWS Online Training Bangalore

    ReplyDelete
  7. Hello Dear,

    Tecnogeekscs Provides Courses in Building, Deploying and Optimizing on AWS Web Services. Get Proper Training with Practical Exposure with Experiences Trainer. More Detail visit Amazon Web Services or Call +91 860-099-8107

    Excellent post, I believe it's information about profile back links and also good list. Thanks for sharing.

    ReplyDelete
  8. Thanq for sharing your thoughts with us... Nice work ... keep going
    AWS training
    AWS training in Chennai

    ReplyDelete
  9. Thanks for your valuable points on Cloud Computing, I was little bit confuse on Cloud Technology, Now I had a proper clarification on Cloud Computing Courses such as AWS, Azure, VMware, Salesforce.
    cloud computing training chennai
    cloud computing training centers in chennai

    ReplyDelete
  10. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.
    Aws training in Chennai

    ReplyDelete
  11. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
    AWS Training in Chennai | AWS Training Institutes in Chennai

    ReplyDelete

  12. Respecting the time and exertion you put into your site and point by point data you offer!..
    Web Development

    ReplyDelete
  13. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. Thanks for your valuable points on clould application.
    Best Java Training Institute Chennai

    ReplyDelete
  14. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    python training in bangalore

    ReplyDelete
  15. nice writeup about AWS applications.
    https://www.besanttechnologies.com/training-courses/amazon-web-services-training-in-bangalore

    ReplyDelete
  16. I am really happy with your blog because your article is very unique and powerful for new reader.aws training in bangalore

    ReplyDelete
  17. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

    Amazon Web Services Training in Chennai

    Best Java Training Institute Chennai

    ReplyDelete


  18. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    AWS Training in Bangalore

    ReplyDelete
  19. Thanks for the explanation. It’s really helpful. Please keep sharing.
    Amazon Web Services Institute in Delhi

    ReplyDelete
  20. Awesome Blog, I Loved it, Me first time here in the Blog. Totally Impressed.
    Aws Training in Hyderabad

    ReplyDelete
  21. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    aws training in chennai

    ReplyDelete
  22. aws I really needed this ! Our blog get's minimal comments, aws training in hyderabad But we have a good number of subscribers which baffles me. I'm doing all of these things except actually asking for comments... interesting! We'll see if that helps... thanks!

    ReplyDelete
  23. Thank you for sharing wonderful information with us to get some idea about that content. Aws Training in Chennai

    ReplyDelete
  24. Your blog was awesome. I really like your technical knowledge about AWS. AWS is the future of clould computing and definitely this information will help us to understand aws.

    AWS Training in Pune

    ReplyDelete

  25. Nice blog..! I really loved reading through this article. Thanks for sharing such
    a amazing post with us and keep blogging...

    AWS training in hyderabad

    ReplyDelete
  26. Hi, This is very informative and useful.. Thank you for such a nice post..
    AWS Training in Ameerpet
    AWS Training in Hyderabad

    ReplyDelete
  27. AWS is biggest cloud service platform and it has become an absolute essential for candidates to be aware of cloud computing There are several institutes which provide AWS Training in Bangalore.

    ReplyDelete
  28. Great post. Wonderful information and really very much useful. Thanks for sharing and keep updating.
    java training in chennai
    java course in chennai

    ReplyDelete
  29. Really Good blog post.provided a helpful information.I hope that you will post more updates like this.

    hadoop training in pune
    hadoop spark classes in pune
    hadoop testing
    hadoop pune

    ReplyDelete

  30. I appreciate what you folks are as a rule up as well. This kind of astute work and scope! Keep up the brilliant works folks I've added you all to my blog roll.

    AWS online training in Hyderabad

    ReplyDelete
  31. I recently completed this Amazon Web Services at ExcelR. I found this course very demanding. I learned a lot in this course. I was particularly impressed with the trainers which is the best feature of ExcelR. There is a wide breadth of topics covered in a short period of time. Love ExcelR.
    Amazon Web Services

    ReplyDelete

  32. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging...


    AWS online training in Hyderabad

    ReplyDelete
  33. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Click here:
    angularjs4 Training in Chennai
    Click here:
    angularjs5 Training in Chennai
    Click here:
    Selenium Training in Chennai
    Click here:
    Aws Training in Chennai

    ReplyDelete
  34. Appreciating the persistence you put into your blog and detailed information you provide
    Click here:
    Microsoft azure training in bangalore
    Click here:
    Microsoft azure training in pune

    ReplyDelete
  35. Appreciative to you, for sharing those amazing expressive acknowledgments. As the reader of this blog, I'll try to do some an incentive in reacting; there's an uncommon game plan that you've crushed in articulating the fundamental goals, as you charmingly put it. Keep Sharing
    Big Data Hadoop online training in Hyderabad
    Hadoop online training in Bangalore

    ReplyDelete
  36. I am just starting to develop apps for the Android platform and I am struggling with a major hurdle at this time.
    aws training in chennai | aws training in velachery | aws training in chennai with placement

    ReplyDelete
  37. Awesome article. It is so detailed and well formatted that i enjoyed reading it as well as get some new information too.
    Click here:
    python training in rajajinagar
    Click here:
    python training in jayanagar

    ReplyDelete
  38. It has been basically extraordinarily liberal with you to give straightforwardly what precisely numerous people would've promoted for an eBook to wind up making some money for their end, principally given that you could have attempted it in the occasion you needed. Keep sharing
    Tableau online training in Hyderabad
    Tableau online training in Bangalore

    ReplyDelete
  39. Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
    Blueprism training in Chennai

    Blueprism training in Bangalore

    Blueprism training in Pune

    ReplyDelete
  40. Good explanation,thanks for writing,it is useful for so many developers
    AWS Online Training

    ReplyDelete
  41. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 

    best rpa training in chennai |
    rpa training in chennai |
    rpa training in bangalore
    rpa training in pune | rpa online training

    ReplyDelete
  42. This comment has been removed by the author.

    ReplyDelete
  43. Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
    java training in chennai | java training in bangalore

    java interview questions and answers | core java interview questions and answers

    ReplyDelete
  44. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Data Science Training in Chennai | Data Science training in anna nagar
    Data Science training in chennai | Data science training in Bangalore
    Data Science training in marathahalli | Data Science training in btm

    ReplyDelete
  45. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    java training in chennai | java training in USA

    java training in indira nagar

    ReplyDelete
  46. This comment has been removed by the author.

    ReplyDelete
  47. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts

    angularjs Training in marathahalli

    angularjs interview questions and answers

    angularjs Training in bangalore

    angularjs Training in bangalore

    angularjs Training in chennai

    ReplyDelete
  48. When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.

    Amazon Web Services Training in Pune | Best AWS Training in Pune


    AWS Training in Pune | Best Amazon Web Services Training in Pune

    ReplyDelete
  49. Thank you for posting this useful information..it is very useful to me..!
    Keep sharing DevOps Online Training

    ReplyDelete
  50. It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
    Data Science training in Chennai
    Data science online training

    ReplyDelete
  51. That is super information! Thanks for sharing! I’m going to Tweet about your blog.
    AWS Training In Navalur
    AWS Training In Chennai

    ReplyDelete
  52. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Best Uae Web hosting company in dubai mainland

    ReplyDelete
  53. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries. I want to say thanks for great sharing.

    Data Science course in Chennai
    Data science course in bangalore
    Data science course in pune
    Data science online course
    Data Science Interview questions and answers
    Data Science Tutorial

    ReplyDelete
  54. Pleasant Tips..Thanks for Sharing….We keep up hands on approach at work and in the workplace, keeping our business pragmatic, which recommends we can help you with your tree clearing and pruning in an invaluable and fit way.
    Data Science Course in Indira nagar
    Data Science Course in btm layout
    Python course in Kalyan nagar
    Data Science course in Indira nagar
    Data Science Course in Marathahalli
    Data Science Course in BTM Layout
    Data science course in bangalore

    ReplyDelete
  55. It is the intent to provide valuable information and best practices, including an understanding of the regulatory process. Ongoing Maintenance Plan

    ReplyDelete
  56. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging

    Best Java Courses in Noida
    AWS Architect

    ReplyDelete
  57. Actually extremely useful and also outstanding submit I needed at any time noticed concerning AWS. Many thanks regarding revealing this kind of great website to your perspective.
    Aws Training in Hyderabad

    ReplyDelete
  58. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me
    informatica mdm online training

    apache spark online training

    apache spark online training

    devops online training

    aws online training

    ReplyDelete
  59. Nice blog Content.It is very informative and helpful. Please share more content. Thanks.
    Amazon Web Services Training in Gurgaon

    ReplyDelete
  60. Im really impressed with your blog articale, such great’s useful information you declared here.
    Amazon Web Services Training in Noida

    Amazon Web Services Training institute in Noida

    ReplyDelete
  61. Thanks for sharing valuable information. very informative blog and useful article thank you for sharing with us , keep posting learn more about aws with cloud computingAWS Training

    ReplyDelete
  62. Good Post. I like your blog. Thanks for Sharing-----------------!
    AWS Course in Delhi

    ReplyDelete
  63. Thank you for sharing such great information very useful to us.
    AWS Course in Noida

    ReplyDelete
  64. Nice and good article. It is very useful for me to learn and understand easily.
    AWS Training in Gurgaon
    AWS Course in Gurgaon
    AWS Training institute in Gurgaon

    ReplyDelete
  65. Good Post. I like your blog. Thanks for Sharing
    AWS Course in Noida

    ReplyDelete
  66. I am definitely enjoying your website. You definitely have some great insight and great stories.
    VPS Hosting

    ReplyDelete
  67. Please continue this great work and I look forward to more of your awesome posts.

    cloud computing professional training center in Noida

    ReplyDelete
  68. I am so happy after reading your blog. It’s very useful blog for us.

    Corporate training in Machine learning

    ReplyDelete
  69. It’s really nice and meaningful. It’s really cool blog. You have really helped lots of people who visit Blog and provide them useful information. Thanks for sharing.

    Data Science Corporate training in Nigeria

    ReplyDelete
  70. Master The Skills in PHP Industrial Training And Be Successful.
    PHP training center in Delhi. Start Today and Become an Expert in Days. Join Over 5 Million People Learning with KVCH. Beginner & Advanced Classes. Free 10-Day Trial. Start Now! Live Mentoring. Over 1000+ Courses. Skills Assessments. Offline Access.

    ReplyDelete
  71. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post.
    Awesome Article. Keep sharing amazing posts on.
    6 months industrial training in Delhi

    ReplyDelete
  72. industrial training in Himachal Pradesh
    Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too.

    ReplyDelete
  73. AWS is biggest cloud service platform and it has become an absolute essential for candidates to be aware of cloud computing. AWS is the future of clould computing and definitely this information will help us to understand aws.
    Computing training course

    ReplyDelete
  74. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing.
    Machine learning training

    ReplyDelete
  75. The main motive of the Big Data Implementation Services is to spread the knowledge so that they can give more big data engineers to the world.

    ReplyDelete
  76. nice list...!!! Please add http://businessplaces.in to this list. Its a local listing website to add businesses in India.thnks keep it up guys.
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  77. A model is a person with a function either to sell, show or market it industrial products (appreciably style garb in style indicates), or to serve as a visual useful resource for individuals who are creating works of artwork or to pose for images
    angular js training in chennai

    angular js training in tambaram

    full stack training in chennai

    full stack training in tambaram

    php training in chennai

    php training in tambaram

    photoshop training in chennai

    photoshop training in tambaram

    ReplyDelete
  78. pakkahouse

    PAKKAHOUSE IS AN INDIAN REALESTATE AND ECOMMERCE WEBSITE, THIS SITE ALSO CATERS FOR MANY
    BROKERAGE STOCK SITES AND ALSO EDU AND GOVERNMENT ADVERTISEMENT,
    FOR MORE INFORMATION AND UPDATE ABOUT NEWS PLEASE CLICK AND VISIT THE SITE FOR DAILY UPDATES.IT IS AN

    ReplyDelete
  79. Nice & Informative Blog !

    Worried About QuickBooks Error ?Get in touch with QuickBooks expert for instant solution.
    Click Here to know how to fix QuickBooks Form 941 Error

    Dial on QuickBooks Error Support Number +1-855-977-7463.

    ReplyDelete
  80. Nice & Informative Blog !
    QuickBooks is an accounting software that has rapidly captured the global market,To get rid of QuickBooks problems, call us at our QuickBooks Customer Support Number 1-877-751-0742.

    ReplyDelete
  81. Hey! Mind-blowing blog. Keep writing such beautiful blogs. In case you are struggling with issues on QuickBooks software, dial QuickBooks Error Support (855)756-1077. The team, on the other end, will assist you with the best technical services.

    ReplyDelete
  82. Hey! Fabulous post. It is the best thing that I have read on the internet today. Moreover, if you need instant support for QuickBooks, visit at QuickBooks Error 1328 Our team at QuickBooks Error 1328 is always ready to help and support their clients.

    ReplyDelete
  83. Nice & Informative Blog !
    While filling form 941, there are chances that you may face QuickBooks Form 941 error when the total sum of the tax amount exceeds $2500. Thus, to fix such error, call us on and get immediate assistance from experts.

    ReplyDelete
  84. Nice Blog !
    Our experts at QuickBooks Customer Service are available to help you fix all your QuickBooks issues in this global situation.

    ReplyDelete
  85. Hey! Lovely blog. Your blog contains all the details and information related to the topic. In case you are a QuickBooks user, here is good news for you. You may encounter any error like QuickBooks Error, visit at QuickBooks Error 136 for quick help.

    ReplyDelete
  86. Hey! Well-written blog. It is the best thing that I have read on the internet today. Moreover, if you are looking for the solution of QuickBooks Software, visit at QuickBooks Customer Service Phone Number to get your issues resolved quickly.

    ReplyDelete

  87. Hey! Lovely blog. Your blog contains all the details and information related to the topic. In case you are a QuickBooks user, here is good news for you. You may encounter any error like QuickBooks Error, visit at QuickBooks Support Phone Number for quick help.

    ReplyDelete
  88. Thanks for sharing detailed article On java apps. It will surely be helpful.
    Need assistant in dissertation writing do check buy dissertation for quality work.

    ReplyDelete
  89. Hey! What a wonderful blog. I loved your blog. QuickBooks is the best accounting software, however, it has lots of bugs like QuickBooks Error. To fix such issues, you can contact experts via QuickBooks Customer Service

    ReplyDelete
  90. Hey! Mind-blowing blog. Keep writing such beautiful blogs. In case you are struggling with issues on QuickBooks software, dial QuickBooks Customer Service Phone Number . The team, on the other end, will assist you with the best technical services.

    ReplyDelete
  91. Great share! I will appriciate more information on this.
    Also if you want Quickbooks Error 136 you can visit us.

    ReplyDelete
  92. Hey! Nice Blog, I have been using QuickBooks for a long time. One day, I encountered QuickBooks Customer Service in my software, then I called QuickBooks Customer Service. They resolved my error in the least possible time.

    ReplyDelete
  93. Hey! Fabulous post. It is the best thing that I have read on the internet today. Moreover, if you need instant support for QuickBooks Error, visit at QuickBooks Customer Service Number Our team is always ready to help and support their clients.

    ReplyDelete
  94. Hey! Lovely blog. Your blog contains all the details and information related to the topic. In case you are a QuickBooks user, here is good news for you. You may encounter any error like QuickBooks Error, visit at QuickBooks Customer Service (855)741-3663 for quick help.

    ReplyDelete
  95. Hey! Fabulous post. It is the best thing that I have read on the internet today. Moreover, if you need instant support for QuickBooks Error, visit at QuickBooks Customer Service (602)325-1557. Our team is always ready to help and support their clients.

    ReplyDelete
  96. Hey! Well-written blog. It is the best thing that I have read on the internet today. Moreover, if you are looking for the solution of QuickBooks Software, visit at QuickBooks Customer Service Number (602)325-1557 to get your issues resolved quickly.

    ReplyDelete
  97. Great work! It is the best thing that I have read on the internet today. Moreover, If you encounter any error while working on QuickBooks for MAC Support , do contact this QuickBooks Support Phone Number (855)552-2543 number for quick assistance.

    ReplyDelete
  98. we are proving the best Quickbook support services interested one can contact us easily and get the entire details regarding the same.+18666695068

    ReplyDelete
  99. I find it useful is the ability to call Quickbooks phone numbers for help. This can be done by dialing Quickbooks Support Phone Number +1 8555644161. When you do, you will reach the customer service team, who will be able to provide assistance with any question or issue that you may have.

    ReplyDelete
  100. Just dial Quickbooks Customer Service +1 855-548-4814 for quick assistance. The people behind the QuickBooks support phone number provide quick and accurate answers to any problem with your QuickBooks.

    ReplyDelete
  101. Thanks for sharing Nice blog. blog. Here is mastery about yoga Yoga, yogainfo , Female fitness,you reach us at

    ReplyDelete
  102. Thank you for sharing such valuable information. Your blog always provides a fresh perspective, and I find it both informative and enjoyable to read. Keep up the great work!" AWS Training in Pune

    ReplyDelete
  103. Amazing post, content is very informative. thanks for sharing. AWS Classes In Pune

    ReplyDelete