+++ title = "Modernizing applications with native services" chapter = false weight = 5 +++ :imagesdir: /images This module assumes that you have completed the lab for deploying services via the AWS Service Broker. link:https://openshift4-on-aws.awsworkshop.io/2-developer-track/6-further-modernization/55-deploying-services-with-service-broker.html[Deploying native Services with the AWS Service Broker] Using the OpenShift Serice Catolog to deploy AWS service via a graphical interface. Step 1:: Connect to the OpenShift cluster using the cli ---- Connect to your Cloud 9 dev ui if you have not already done so. Connect to the workshop student landing page: https://lab2-ignitionbucket-137e1h7z6m6h0.s3-us-west-2.amazonaws.com/workshop.html [Student landing page] Find and expand your student number Follow the instructions to connect to your Cloud 9 developer IDE ./oc login api.apps.lab3-student0.egrsolutions.co.za:6443 provide the username and password for the https://lab2-ignitionbucket-137e1h7z6m6h0.s3-us-west-2.amazonaws.com/workshop.html ---- Step 2:: change to the correct lab folder ---- cd openshift-on-aws/modules mkdir S2i cd S2i ---- Step 3:: Connect to the nativedb project ---- oc project nativedb ---- Step 4:: Deploy an app ---- oc new-app python:2.7~. --name vote-app --dry-run oc new-app python:2.7~. --name vote-app oc start-build vote-app oc expose svc vote-app oc get route ---- Step 5:: Chage the student number to your student number ---- oc set env dc/vote-app \ --from=secret/rdsmysql-student0 \ DB_TYPE=mysql ---- ---- oc set env --from=secret/rdsmysql-student0 dc/vote-app ---- Step 7:: Test the application To check the application is working you can either use curl or load the URL into your browser. Use curl to check the app is working: ---- curl http://vote-app-%project_namespace%.%cluster_subdomain%/ ---- or use another way which checks for the expected output: ---- curl -s http://vote-app-%project_namespace%.%cluster_subdomain%/ | grep "