Step 6: Test the Application

Test the application to ensure you get the results you expect

You can test your application using the DNS Name from the Services page.

Estimated time to complete Step 6 and finish tutorial: 5 minutes.

Prerequisites

Before testing your application, verify that you accomplished the tasks in the previous tutorial steps. Using the DuploCloud Portal, confirm that:

Testing the Application

  1. In the Tenant list box, select the dev01 Tenant that you created.

  2. Navigate to Cloud Services -> ECS.

  3. Click the Service Details tab.

  1. Open a browser and paste the DNS address in the URL field of your browser.

  2. Press ENTER. A web page with the text It works! displays, from the JavaScript program residing in your Docker Container that is running in sample-httpd-app, which is exposed to the web by your Application Load Balancer.

It can take from five to fifteen (5-15) minutes for the Domain Name to become active once you launch your browser instance to test your application.

Congratulations! You have just launched your first web service on DuploCloud!

Reviewing What You Learned

In this tutorial, your objective was to create a cloud environment to deploy an application for testing purposes, and to understand how the various components of DuploCloud work together.

The application rendered a simple web page with text, coded in JavaScript, from software application code residing in a Docker container. You can use this same procedure to deploy much more complex cloud applications.

In the previous steps, you:

  • Created a DuploCloud Infrastructure named NONPROD, a Virtual Private Cloud instance, backed by an ECS-enabled Kubernetes cluster.

  • Created a Tenant named dev01 in Infrastructure NONPROD. While generating the Infrastructure, DuploCloud created a set of templates (Plan) to configure multiple AWS and Kubernetes components needed for your environment.

  • Created a Task Definition named sample-task-def, used to create a service to run your application.

  • Created a Service named sample-httpd-app to connect the Docker containers and associated images, in which your application code resides, to the DuploCloud Tenant environment. In the same step, you created an ALB Load Balancer Listener to expose your application via ports and backend network configurations.

  • Verified that your web page rendered as expected by testing the DNS Name exposed by the Load Balancer Listener.

Cleaning Up Your Tutorial Environment

In this tutorial, you created many artifacts. When you are ready, clean them up so others can run this tutorial using the same names for Infrastructure and Tenant.

  1. To delete the dev01 tenant follow these instructions, and then return to this page. As you learned, the Tenant segregates all work in one isolated environment, so deleting the Tenant cleans up most of your artifacts.

The NONPROD Infrastructure is deleted and you have completed the clean-up of your test environment.

Thanks for completing this tutorial and proceed to the next section to learn more about using DuploCloud with AWS.

Last updated

Logo

© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates