Reputation: 4172
I have created "My First Elastic Beanstalk Application" on amazon aws. I also choose tomcat as a web/app server. It shows that every thing is up and running. So how I check out the code base and you know, make some changes and deploy it back to the app server.
Basically except seeing there dashboard. I don't really know what this sample application does, is it a web page does it return a json, and where the code base etc...
Upvotes: 2
Views: 2054
Reputation: 19
Or if your server(ec2) which is launched by elastic beanstalk, is publically accessible, then you can just ssh into it, if you are a windows user, then use putty to ssh into your beanstalk server(ec2) which you will find in "ec2 dashboard" on aws console! ssh using your Key(.ppk for putty) that you selected for your beanstlak instance. once you are in, these things will help you. 1. your file that you uploaded/sample code will reside in /usr/share/tomcat7/webapps/ 2. your tomcat7 configuration will reside in /etc/tomcat7/ you can just use cd command and reach there! cheers
Upvotes: 1
Reputation: 18926
You can create a tomcat based application on your local desktop. You can then prepare a war file or a zip file containing your web app. You can then deploy it to your environment by uploading this zip file using Elastic Beanstalk console.
You can go through the Getting Started walkthrough: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/GettingStarted.Walkthrough.html
This shows you how to move forward from the Sample application you have already launched. You can also find the source code of the sample application here: https://elasticbeanstalk-us-east-1.s3.amazonaws.com/resources/elasticbeanstalk-sampleapp2.war
This is one way of doing it. You can also deploy code to Elastic Beanstalk using an Eclipse plugin: Guides on deploying applications using Eclipse: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.html http://d1un85p0f2qstc.cloudfront.net/eclipse/elasticbeanstalk/index.html
Upvotes: 2