Select AWS Cloud9 as our code editor and click Next:
Select your preferred instance type and click Next:
We now arrive at our Project Dashboard. Wait for the Cloud9 environment to finish creating. Once that’s done, we need a way to try out our brand new microservice.
Add the App Endpoints tile to the Dashboard:
Open the App Endpoint in a new tab to see the output:
"Output": "Hello World!"
Let’s try changing this! To get to our code, switch to the IDE tab & click Open IDE:
In the IDE, open HelloWorldHandler.java and change ‘Hello World!’ to ‘Hello World 2!’
Do the same in HelloWorldHandlerTest.java:
Commit & Push these changes:
Wait a few minutes for the automated Build & Deployment to finish. Now reopen the App Endpoint to see the change we made:
"Output":"Hello World 2!"
This was a simple example demonstrating the power of CodeStar. The code can be further elaborated to create full-fledged microservices!
Harish KM is a Cloud Evangelist & a Full Stack Engineer at QloudX.
He is very passionate about cloud-native solutions & using the best tools for his projects. With 10+ cloud & IT certifications, he is an expert in a multitude of application languages & is up-to-date with all new offerings & services from cloud providers, especially AWS.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.