<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Martin Mansfield on Medium]]></title>
        <description><![CDATA[Stories by Martin Mansfield on Medium]]></description>
        <link>https://medium.com/@martinmansfieldphd?source=rss-bb32f24d3c50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nTQT8Ab2J4qBedQN</url>
            <title>Stories by Martin Mansfield on Medium</title>
            <link>https://medium.com/@martinmansfieldphd?source=rss-bb32f24d3c50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:05:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@martinmansfieldphd/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Multi-Cloud, AI Solution Leveraging AWS, Azure and GCP AI Services and OpenAI as a RAG Service]]></title>
            <link>https://martinmansfieldphd.medium.com/a-multi-cloud-ai-solution-leveraging-aws-azure-and-gcp-ai-services-and-openai-as-a-rag-service-e49dc4b2df41?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/e49dc4b2df41</guid>
            <category><![CDATA[thecloudbootcamp]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 00:40:47 GMT</pubDate>
            <atom:updated>2025-12-23T00:40:47.846Z</atom:updated>
            <content:encoded><![CDATA[<p>In a final project demonstrating the power of AI, we enhanced the HealthHub application by developing an OpenAI Assistant for Retrieval-Augmented Generation (RAG).</p><p>To understand the application prior to RAG expansion, we presented the architecture and functional description in the following post:</p><p><a href="https://martinmansfieldphd.medium.com/a-multi-cloud-ai-solution-leveraging-aws-azure-and-gcp-ai-services-cc71d9969364">A Multi-Cloud, AI Solution Leveraging AWS, Azure and GCP AI Services</a></p><p>🛡️To complete the multi-cloud AI implementation, we developed an OpenAI Assistant which consists of an engineered prompt, i.e., system instructions, a pre-selected GPT LLM, and is accessed by HealthHub using an OpenAI key. The multi-cloud AI architecture appears as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7VdG73iXTVCWAg0N16vetw.png" /></figure><p>The purpose of the OpenAI Assistant is to provide patients in the HealthHub application with an AI-powered agent for customer support and medical appointment scheduling. Additionally, the data in the HealthHub application that augments the final query results remains private to the application as do the final query results.</p><p>To accomplish the final goals of this multi-cloud, AI enablement strategy, we learned</p><ol><li>How to create secret API keys and Assistants in OpenAI that provide us secured access to GPT LLMs.</li><li>How to rebuild our HealthHub application to use the expanded OpenAI Assistant as an AWS Lambda function.</li><li>How to use AWS Cloud Formation, ChatGPT and MS Copilot to troubleshoot application build errors and application execution errors.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*3yfZBNHAzUpNB0gku1Lc2A.png" /><figcaption>Doctor dashboard showing number of AI Interactions and the previous functions of Azure AI speech-to-text for transcription, AWS AI text-to-speech for translation and Google Cloud Vision image analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*w9kzklDXGZC7Kkk__rI7Og.png" /><figcaption>Logged in as patient Ava Brown with no Appointments (not created with Appointments option, use Virtual Assistant from OpenAI instead)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*OMa_ZBX6akb-yDU-31TNYw.png" /><figcaption>Two Speech records, two Transcription records and one Image Analysis record saved to patient Ava Brown</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*fAoLUGlbFsvkmyhRVxZ15A.png" /><figcaption>Appointment scheduled with Doctor using the OpenAI, Virtual Assistant</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e49dc4b2df41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Multi-Cloud, AI Solution Leveraging AWS, Azure and GCP AI Services]]></title>
            <link>https://martinmansfieldphd.medium.com/a-multi-cloud-ai-solution-leveraging-aws-azure-and-gcp-ai-services-cc71d9969364?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc71d9969364</guid>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[thecloudbootcamp]]></category>
            <category><![CDATA[cloudvisiontechnologies]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 18:07:00 GMT</pubDate>
            <atom:updated>2025-12-10T18:07:00.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Nearing the conclusion of intensive hands-on training in Cloud technologies and AI services from the three main Cloud providers, we present a further expansion of the HealthHub application presented in two previous posts.</p><p>The first post presented a HealthHub application composed entirely of AWS architecture services and the AWS AI services, Amazon Polly and Amazon Translate for multi-lingual translation of medical information from text-to-speech:</p><p><a href="https://martinmansfieldphd.medium.com/implementation-of-an-ai-enabled-patient-visit-application-called-healthhub-710e61aa87fe">Implementation of an AI-enabled Patient Visit Application called HealthHub</a></p><p>The second post expanded the HealthHub application by using API calls to embed and use Azure Speech Services for multi-lingual translation of speech-to-text. While maintaining the core AWS architecture, we demonstrated a compelling solution for avoiding vendor lock-in when managing the constantly evolving pricing, functionality and regional availability of Artificial Intelligence services:</p><p><a href="https://martinmansfieldphd.medium.com/avoiding-vendor-lock-in-via-a-multi-cloud-ai-enabled-patient-visit-application-called-healthhub-16f6bef14e07">Avoiding Vendor Lock-in via a Multi-Cloud, AI-enabled Patient Visit Application called HealthHub</a></p><p>🛡️Therefore, to complete the multi-cloud AI implementation series, we present a solution that further evolves the HealthHub, AWS architecture in the second post to use Google Cloud Vision and its API to embed and use Google Cloud AI services. The multi-cloud AI architecture appears as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*C060vcNpT2dzvwH7lcdqqw.png" /><figcaption>Multi-cloud AWS AI, Azure AI and GCP AI-enabled Doctor/Patient HealthHub Architecture</figcaption></figure><p>To accomplish the goals of this multi-cloud, AI enablement strategy, we learned</p><ol><li>How to enable Google Cloud’s Cloud Vision API.</li><li>How to create, copy and use a JSON key file for secured access to our Google AI services.</li><li>How to rebuild our HealthHub application to use the expanded Cloud Vision service as an AWS Lambda function.</li><li>How to use Gemini Code Assist, AWS Cloud Formation and ChatGPT to troubleshoot errors.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*8si4Lf6NWTjwvkZ4KXpi_g.png" /><figcaption>Medical Image (X-Ray) uploaded by Doctor and automatically analyzed by Google Vision AI</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*X0weEowYIqk0nmSJxolKSg.png" /><figcaption>Patient view of Medical Record and AI Results</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc71d9969364" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoiding Vendor Lock-in via a Multi-Cloud, AI-enabled Patient Visit Application called HealthHub]]></title>
            <link>https://martinmansfieldphd.medium.com/avoiding-vendor-lock-in-via-a-multi-cloud-ai-enabled-patient-visit-application-called-healthhub-16f6bef14e07?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/16f6bef14e07</guid>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[thecloudbootcamp]]></category>
            <category><![CDATA[azure-speech-to-text]]></category>
            <category><![CDATA[cloud-vendor-lock-in]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Mon, 29 Sep 2025 21:19:14 GMT</pubDate>
            <atom:updated>2025-09-29T21:19:14.198Z</atom:updated>
            <content:encoded><![CDATA[<p>Vendor lock-in refers to a situation where a firm becomes overly dependent on a particular vendor’s products or services and subsequently encounters extreme technical difficulty or cost when compelled to switch to another vendor, either partially or entirely.</p><p>Vendor lock-in often happens in cloud computing, where proprietary technology and services make migration complex and expensive.</p><p>🛡️Therefore, firms are encouraged to avoid Cloud vendor lock-in by:</p><ol><li>Favoring open standards and interoperable technologies.</li><li>Using containerization (e.g., Docker, Kubernetes) to make workloads portable.</li><li>Designing system architectures with multi-cloud or hybrid-cloud strategies in mind.</li><li>Negotiating exit clauses and data portability into long-term contracts.</li></ol><p>💡More specifically, some of the compelling reasons to use the AI services of more than one Cloud vendor (i.e., multi-cloud or hybrid-cloud approach) include:</p><ol><li>The locked-in Cloud vendor may, without warning, deprecate or change an AI service and functionality is lost.</li><li>Unforeseen price increases of AI services can’t be mitigated with the current, locked-in Cloud vendor when long-term contracts are renewed.</li><li>The AI service functionality needed may not exist at all with the current, locked-in Cloud vendor.</li><li>When looking holistically at the system architecture and which availability zone (AZ) or region it will be deployed, a given AI service of a locked-in Cloud vendor may not be available in that AZ or region resulting in unacceptable latency for end users.</li></ol><p>To meet the goal of avoiding vendor lock-in, we examined a hypothetical situation involving AI-enablement of an application in both AWS AI and Azure AI services, i.e., a multi-cloud AI services architecture.</p><p>The 100% AWS solution published in a previous Medium post for HealthHub describes the architecture and implementation of a HealthHub application and how to use AWS AI services, Amazon Translate to translate medical text into multiple languages; and Amazon Polly to convert translated text into lifelike speech for playback.</p><p>In that post located at:</p><p><a href="https://martinmansfieldphd.medium.com/implementation-of-an-ai-enabled-patient-visit-application-called-healthhub-710e61aa87fe">Implementation of an AI-enabled Patient Visit Application called HealthHub</a></p><p>the Amazon AI Polly and Translate services are shown as AWS Lambda functions, but now we want to do the converse of those functions and provide the capability to take recorded medical audio files and convert them to multi-lingual text for a patient’s medical record.</p><p>By integrating an Azure Speech Services implementation with AWS HealthHub (see below), we were able to demonstrate how to use a multi-cloud strategy to avoid possible vendor lock-in for AI-enablement of the HealthHub solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0LgzRrI8sl9-nNfs" /><figcaption><em>AWS and Azure AI-enabled Doctor/Patient HealthHub Architecture</em></figcaption></figure><p>To accomplish the goals of this multi-cloud, AI-enablement strategy, we learned</p><ol><li>How to create an Azure AI Speech Service and evaluate pricing plans.</li><li>How to locate and manage API keys and endpoints for secured access to the Azure AI domain and specific speech service implementations.</li><li>How to modify the serverless YAML file for HealthHub with environment variables for the Azure Speech Key and Region.</li><li>How to use Azure Speech Service Monitoring | Metrics to monitor Successful Calls and Total Calls.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*kKOoaRok71XJgrxD9XhnGQ.png" /><figcaption>Audio File transcribed into English for patient Ava Brown by Dr. David Lee</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*yob2oprF1Ke--lY0MVi-VQ.png" /><figcaption>Translated Audio Files appear in Ava Brown’s Medical Record</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16f6bef14e07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of an AI-enabled Patient Visit Application called HealthHub]]></title>
            <link>https://martinmansfieldphd.medium.com/implementation-of-an-ai-enabled-patient-visit-application-called-healthhub-710e61aa87fe?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/710e61aa87fe</guid>
            <category><![CDATA[aws-polly]]></category>
            <category><![CDATA[cloudformation]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-translate]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 19:39:19 GMT</pubDate>
            <atom:updated>2025-07-29T19:39:19.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-Fcg_RBtwDKUvLJFQkE4dw.png" /><figcaption>Original Doctor/Patient HealthHub Architecture</figcaption></figure><p>A HealthHub application for a Doctor who sees Patients from an international community was built using CloudFormation stacks and Lambda functions in addition to other AWS services listed in the Solution Architecture. The architecture was based on the need to reduce operational overhead (reduce cost) by provisioning through a scalable, serverless infrastructure.</p><p>Although application access was secure and low cost for the doctor’s practice, HealthHub lacked the functionality to provide multi-lingual patient recommendations.</p><p>Moreover, the doctor wanted the ability to write recommendations, e.g., a medication prescription, for a patient visit in English that could be translated to Spanish or Portuguese and recorded and saved in a speech recording of English, Spanish or Portuguese depending on the native language of the patient. If the patient could not understand the English text, they could then listen to a translation of the doctor’s recommendation in their native language.</p><p>To meet these goals, additional Lambda functions were developed that use Amazon Polly and Amazon Translate to translate text and convert it to speech. Each text entry had to be saved in S3 storage and speech files had to be saved in DynamoDB tables (see Solution Architecture below). Additionally, HIPAA compliance requirements for patient information security and privacy had to be maintained and strictly applied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tik46Wy_SybMxh0UwO5rg.png" /><figcaption>AI-enabled Doctor/Patient HealthHub Architecture</figcaption></figure><p>To accomplish the goals of this AI-enablement strategy, we learned</p><ol><li>How to use CloudFormation to automate the provisioning of resources with template stacks for the entire architecture, ensuring repeatable and consistent deployments.</li><li>How to use Amazon Cognito to manage user authentication and authorization via roles for secured access to frontend and backend resources.</li><li>How to use Amazon S3 for the Frontend to host static assets for the application, including user-uploaded data.</li><li>How to use Amazon API Gateway for the Backend to provide a RESTful API interface to handle incoming client requests.</li><li>How to use AWS Lambda for the Backend to process API requests, integrate with AWS AI services (Amazon Polly and Translate), and trigger other backend functions.</li><li>How to use the AI services, Amazon Translate to translate medical text into multiple languages; and Amazon Polly to convert translated text into lifelike speech for playback.</li><li>How to use Amazon DynamoDB to store processed medical information, translations, and metadata for quick retrieval.</li><li>How to use Amazon CloudWatch Logs to track and log system performance, deployment errors, and API requests for operational monitoring and debugging.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*X04dWBoO9f-dV0tpiUoZRw.png" /><figcaption>Doctor has entered a Patient Recommendation in English that is translated to speech in Portuguese for Ava Brown</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*gCMpnYOD8NzeAvv4muyXwg.png" /><figcaption>Ava Brown can login as a Patient and listen to her Doctor’s Recommendations</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=710e61aa87fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of a Web Application to Automate Talent Onboarding in Moodle using Cloud Storage to host…]]></title>
            <link>https://martinmansfieldphd.medium.com/deployment-of-a-web-application-to-automate-talent-onboarding-in-moodle-using-cloud-storage-to-host-aee2666a99df?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/aee2666a99df</guid>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[moodle]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud-run]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 00:15:18 GMT</pubDate>
            <atom:updated>2025-03-05T00:22:58.883Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment of a Web Application to Automate Talent Onboarding in Moodle using Cloud Storage to host the Static Front-end and a Cloud Run Function to host the Back-end— Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdck7Ypo18q-tRL5DCPeng.png" /></figure><p>In this project, I acted as a Cloud Specialist/Engineer in the deployment of a Web Application to automate the HR onboarding process in Moodle from the prior project. While the C-Suite approved of the low-cost solution using Moodle in the prior project, and the compliance and regulatory teams were impressed with security and compliance of the system, the HR business users found it difficult to navigate Moodle to add new hires needing onboarding training.</p><p>In discussions with the C-Suite, we decided to retain the Moodle solution and add a web application with a very simple front-end form that requested new hire information and added it automatically to Moodle without having to open and use Moodle at all. Furthermore, we did not want to create any more servers to keep our costs low for the system.</p><p>To accomplish these goals, we designed a Web Application front-end consisting of HTML/CSS/JS/BS static files that was hosted in a Cloud Storage bucket. The back-end consisted of a Python Flask in-line function hosted in Cloud Run. The back-end was responsible for making a Moodle REST API service call to upload new hire information, i.e., first name, last name and email address. The solution was very low-cost because no additional servers had to be created for the web application.</p><p>To meet regulatory compliance requirements for the modified Moodle training environment, we tested that new users could be added through the web application front-end, that Cloud Run logs reflected successful REST API calls to Moodle and that new user information appeared correctly in the Moodle user list. We also debugged the Python Flask script to remove errors resulting from Python version deprecation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMqahbLBDfygmIS_0RL4Ew.png" /></figure><p>To accomplish the goals of upgrading the Moodle deployment solution, we learned</p><ol><li>How to enable a REST API web service in Moodle to enable the upload of data.</li><li>How to add a Moodle function to the web service that creates users.</li><li>How to generate a token for the Admin user responsible for secured access to the Moodle web service.</li><li>How to test/validate that the web service function to creates users works properly.</li><li>How to create a Python Flask function in Cloud Run for the back-end of a Web application.</li><li>How to create a web application front-end in Cloud Storage and set it up for public access.</li><li>How to troubleshoot syntax problems in the Python script with Claude Sonne and MS Co-pilot.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*liULuYqEhGf0eCBv66jMFg.png" /><figcaption>Accessing the Talent Management Portal to add 2 users into Moodle</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*3rt1gld4cKM7E6BCDI_geA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*2RHPXvfoGCkQSSNoTqbjpw.png" /><figcaption>Donald Trump and Volodymyr Zelenskyy successfully added to Moodle</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aee2666a99df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of a Corporate Training Portal on Google Cloud Platform using Deployment Manager, Google…]]></title>
            <link>https://martinmansfieldphd.medium.com/deployment-of-a-corporate-training-portal-on-google-cloud-platform-using-deployment-manager-google-73ed0855b3bc?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/73ed0855b3bc</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[moodle]]></category>
            <category><![CDATA[cloud-operations]]></category>
            <category><![CDATA[deployment-manager]]></category>
            <category><![CDATA[cloud-marketplace]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Thu, 27 Feb 2025 20:42:48 GMT</pubDate>
            <atom:updated>2025-02-27T20:42:48.557Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Deployment of a Corporate Training Portal on Google Cloud Platform using Deployment Manager, Google Compute Engine &amp; Cloud Storage — Part 1</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qTV6Un0HQVh8EoeZ.png" /></figure><p>In this first of a two-part, real-world project, I acted as a Cloud Specialist/Engineer to implement a corporate training portal for employees. Because the company was a startup and subject to the regulatory requirements of the US FDA 21CFRs, they needed an off-the-shelf solution that was inexpensive, highly available and easy to deploy, validate and maintain.</p><p>The goals of the project required that there be no custom development work for the application or infrastructure, that the solution be compatible with Google Cloud Platform (GCP), and that the solution be built in &lt; 24 hours. The system had to be secure and host training material for onboarding employees.</p><p>To meet these goals, Moodle was chosen off-the-shelf from the GCP Marketplace. By using Moodle, we consumed an instance of the Moodle image which was used to build a Compute Engine Virtual Machine (VM) and network based on simple configuration criteria. To store our training materials, both video files and PDF documents, we used the Cloud Storage bucket service for high availability.</p><p>To meet regulatory requirements for a training environment, we tested that Admin users could create courses in Moodle, add training material to the course, and that non-Admin users had read-only access to the training material. Because deployment was highly efficient, it was easy to reject the solution with virtually no cost if validation or DevSecOps teams decided that the solution did not meet our critical requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BW_IJ4C6AOnOAKOl.png" /></figure><p>To accomplish the goals of this training deployment strategy, we learned</p><ol><li>How to use Cloud Pricing so that we could present details to the C-Suite about monthly costs for the solution.</li><li>How to quickly deploy and scale functional software packages using Google Cloud Marketplace.</li><li>How to use the Deployment Manager to create infrastructure deployments of our own, and also how to use it to select an off-the-shelf package like Moodle for deployment.</li><li>How to use Cloud Operations for monitoring, logging and troubleshooting errors in resources in Google Cloud.</li><li>How to create storage buckets, implement fine-grained security and upload files to the bucket.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*Nmnd2WNp192bH8WJOxsUZQ.png" /><figcaption>Moodle successfully deployed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*ZkzfhaBLRkujsrjSHPtsLg.png" /><figcaption>Course updated with training activities, a video to watch and a PDF to read</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73ed0855b3bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration of a Standalone Database Application from Google Compute Engine (GCE) VMs to a Modern…]]></title>
            <link>https://martinmansfieldphd.medium.com/migration-of-a-standalone-database-application-from-google-compute-engine-gce-vms-to-a-modern-40bdcdb689ac?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/40bdcdb689ac</guid>
            <category><![CDATA[high-availability]]></category>
            <category><![CDATA[gke]]></category>
            <category><![CDATA[google-cloud-functions]]></category>
            <category><![CDATA[google-cloud-sql]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 21:40:14 GMT</pubDate>
            <atom:updated>2025-02-14T21:40:14.267Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migration of a Standalone Database Application from Google Compute Engine (GCE) VMs to a Modern Architecture using Google Kubernetes Engine (GKE) for the App and Cloud SQL with High Availability for the Database</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JQi_L6BPteWxqolnljhjfQ.jpeg" /></figure><p>In this project based on a real-world scenario, I acted as a Cloud Specialist responsible for migration and modernization of a prior project solution where a database and application were migrated to GCE VMs in the Australia region (<a href="https://medium.com/@martinmansfieldphd/migration-of-a-vm-based-database-application-from-a-google-usa-to-google-australia-region-using-3d1010f3f1fa">see prior project</a>).</p><p>The C-Suite executives were impressed with the prior GCE VM architecture, its reduction in infrastructure footprint, reduction in latency issues and minimal cutover downtime. However, the executives using the application requested that the architecture be modernized further to a serverless Google Kubernetes solution and set up with application failover capability and high “global” availability for the database.</p><p>The goals of the project included building a secure Kubernetes cluster, containerizing the application with Docker, deploying the containerized application to the cluster, building a MySQL database with tables and data in Cloud SQL identical to the VM database, and ensuring the MySQL database instance had regional failover capability and high availability for worldwide corporate use. Downtime was to be minimized for the computer system.</p><p>To meet our regulatory compliance requirements, we tested the failover capability of the system using the failover function in Cloud SQL. We found during testing that the failover process required a restart of the application in the Kubernetes pod for the system to be usable in a failed over region. We solved this problem using Google Cloud Function to set up a restart of the pod when the region used by the database was changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ueQ_YWXxkYpONqzO_xYGdQ.png" /></figure><p>To accomplish the goals of this modernization, we learned</p><ol><li>Several database management services in Google Cloud, including Cloud Big Query, Cloud Spanner, Cloud Pub|Sub, Memorystore, FirestoreCloud Bigtable and Cloud SQL.</li><li>How to containerize the application to a Docker image, upload it to the Google Container Registry, and deploy it to a GKE cluster.</li><li>How to use Cloud SQL to create a mirror MySQL database of a VM-hosted MySQL database.</li><li>How to perform SQL dumps to export data and import that data to a Cloud SQL database in minimal time.</li><li>How to set up firewall rules for a Kubernetes cluster.</li><li>How to simulate database failover in a primary region and verify that it fails over automatically to a secondary region.</li><li>How to use Cloud Function to trigger a restart of the Kubernetes application pod when a region changes as a result of database regional failover.</li><li>How to troubleshoot issues/problems that occurred during modernization.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbSvjR1GB8nqDizgHX_dlQ.png" /><figcaption>Database running in Primary Region, australia-southeast1-a, with High Availability</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxqfcXHc9VCdp8mRtqi67A.png" /><figcaption>Database running in Secondary Region, australia-southeast1-b, with High Availability</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5nfZGm8m2JoviIhLCYGH0g.png" /><figcaption>Application up and running in australia-southeast1-b region</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40bdcdb689ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of a Cloud Load Balancing Solution between USA and European Regions for Global High…]]></title>
            <link>https://martinmansfieldphd.medium.com/deployment-of-a-cloud-load-balancing-solution-between-usa-and-european-regions-for-global-high-0f28a23253d8?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f28a23253d8</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud-run]]></category>
            <category><![CDATA[load-balancing]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 18:36:54 GMT</pubDate>
            <atom:updated>2025-02-03T18:36:54.610Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment of a Cloud Load Balancing Solution between USA and European Regions for Global High Availability and Intelligent Traffic Distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jclI8rTzNYQiVKSXOkdusg.png" /></figure><p>In this project, I acted as a Cloud Architect/Specialist to implement a solution for handling incoming traffic requests to the main page of an application hosted in two, separate Google Cloud regions, Finland and the United States.</p><p>The business requirements dictated that:</p><ol><li>The application is hosted in a completely serverless architecture with high global availability.</li><li>There are two, identical application installations in separate continents.</li><li>User requests failover to the system in the other continent in the event of system outage.</li><li>Traffic is distributed intelligently based on the proximity and location of the end user, i.e., client access requests are directed to the application home page that is geographically closest to the end user.</li></ol><p>The goal of the project was to implement Google Cloud Load Balancing to handle the traffic distribution and failover requirements and host the application as a deployed Container in the Cloud Run service in the US and Finland regions for high global availability.</p><p>To meet compliance requirements, we used a VPN extension in Google Chrome to simulate a user location in Central Europe and prove that the load balancer implementation routed the client request to the Finland regional application. Similarly, we verified that a client request from a user located in the US was routed to the US regional application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1-2cU7JlEismttCWMbTug.png" /></figure><p>To accomplish the goals of implementing the Load Balancing solution,</p><ol><li>We retrieved the files comprising the application from a version-controlled repository, built the docker images for them and stored them in the Google Container Registry. There were separate docker images for the US version and Finland version of the application.</li><li>We deployed each docker image as a container to the Cloud Run service; during the deployment process, we deployed one container to the US region and the other container to the Finland region.</li><li>We verified the Cloud Run deployment of each application by using the Google-provided URL to access the application from our browser (prior to setting up Load Balancing).</li><li>We created a Network Endpoint Group (NEG) for each application and a global backend service, then added the NEGs to the backend service.</li><li>We created a URL map, then a URL proxy to redirect client requests to the URL map.</li><li>We reserved an IP address to the load balancer for the application so that users would have one universal IP address to access either system worldwide.</li><li>Finally, we created a global forwarding rule to redirect all incoming client access requests to the application to the Proxy (Frontend).</li></ol><p>Note: The same IP address we reserved above is used to access the application in the screenshots below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*F5LLuIzxmc6CDTI_Pq2jQQ.png" /><figcaption>Connecting from the Netherlands shows Finland’s flag in message</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*u0wGz4hiGpEEfi6uIQfspA.png" /><figcaption>Connecting from the US shows the US flag in message</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f28a23253d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration of a VM-based Database Application from a Google USA to Google Australia Region using…]]></title>
            <link>https://martinmansfieldphd.medium.com/migration-of-a-vm-based-database-application-from-a-google-usa-to-google-australia-region-using-3d1010f3f1fa?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d1010f3f1fa</guid>
            <category><![CDATA[snapshot]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[google-compute-engine]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 20:41:58 GMT</pubDate>
            <atom:updated>2025-01-24T20:43:50.566Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migration of a VM-based Database Application from a Google USA to Google Australia Region using Storage Snapshots and the Google Cloud Internal Private Network</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKNRFS2XvaF_x5z1Z-OFIg.png" /></figure><p>In this real-world project, I acted as a Cloud Specialist responsible for migrating application and database servers from a Google USA region to a Google Australia region using Google Cloud’s private infrastructure.</p><p>The migration business requirement resulted from M&amp;A of a company headquartered in the USA by a company headquartered in Australia. With most of the users located in APAC with the new company, latency and performance issues would be minimized by a regional migration.</p><p>Analysis of the system during M&amp;A revealed the application server hosted a JavaScript web application that connected to a MySQL database on the database server. The web application was a Patient Registration Application for a large US clinic.</p><p>The goal of the project was to quickly copy the contents of the persistent disks for the application and database servers in the USA region so that identical servers could be built in the Australia region. Migration had to happen quickly with no data loss so that cutover downtime would be minimized for the user community.</p><p>Therefore, we created disk snapshots of the VM persistent disks for the application and database servers in the USA region. Then we created new and identical persistent disks in the Australia region from the snapshots. Lastly, we created new VM instance servers in the Australia region from the persistent disks in the Australia region.</p><p>To meet compliance requirements, we verified that the application was accessible and secure in the Australia region and that the patient data in the USA region appeared in the database in the Australia region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uJcUDnmCAKSt8i9Tioofw.png" /></figure><p>To accomplish the goals of migrating this database application, we learned</p><ol><li>The nuances of Google Cloud’s Compute Engine and how VMs are linked to persistent disks.</li><li>The details of working with MySQL on Debian Linux servers.</li><li>How to set up Firewall Rules and a port to allow the application to be accessed over the internet.</li><li>How to use internal IP addresses of database servers to secure access to the database by only the application server.</li><li>How to use the Google Cloud CLI to create snapshots of persistent disks, how to create persistent disks in another region from these snapshots, and how to create a compute instance (VM) from a persistent disk.</li><li>About Cloud Filestore (NFS) and Cloud Storage buckets although not specifically needed for this regional migration.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*gDvj4sXyf4syivWNb1MzPQ.png" /><figcaption>VMs for Application and Database Servers created in Australia Region</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d1010f3f1fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of a Private, Multi-Cloud Communication Network between AWS and GCP Using Terraform…]]></title>
            <link>https://martinmansfieldphd.medium.com/deployment-of-a-private-multi-cloud-communication-network-between-aws-and-gcp-using-terraform-a16fd99eed03?source=rss-bb32f24d3c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/a16fd99eed03</guid>
            <category><![CDATA[virtual-private-network]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[service-account-key]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Martin Mansfield]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 20:23:43 GMT</pubDate>
            <atom:updated>2025-01-07T20:23:43.217Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment of a Private, Multi-Cloud Communication Network between AWS and GCP Using Terraform Automation Scripts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN6rnJtP2_3rEvN1TPKPvA.png" /></figure><p>In another project based on a real-world scenario, I acted as a Cloud Specialist in a company using both Google Cloud and AWS in separate architectures.</p><p>The company decided to interconnect the two architectures privately using a Virtual Private Gateway, Customer Gateway, Cloud Routers and a Cloud VPN as well as other services.</p><p>The goal of the project was to set up a production-level, private communication network over a VPN between a Virtual Machine (VM) on GCP and an AWS EC2 instance in less than one week. To save time, we used Terraform to deploy the entire network setup after GCP and AWS accounts were created.</p><p>To ensure our Terraform automation scripts worked, we tested that network infrastructure was built in both AWS and GCP and each server could communicate privately with the server in the other environment, AWS EC2 → GCP VM and GCP VM → AWS EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHQse3tWNsEcw6C25kTijw.png" /></figure><p>To accomplish the goals of building this multi-cloud, private communication network,</p><ol><li>We learned how to create new GCP projects, verify billing and cost structures and enable APIs for the project.</li><li>We learned how to use Terraform to build a multi-cloud network based on customization of basic Terraform scripts provided to us.</li><li>We learned how to set up and use a Default Service Account for the GCP project and how to use its private key in setting permissions within the .tf files.</li><li>We learned how to set up AWS access keys and upload them to the GCP shell so that they could be used in .tf files to perform infrastructure builds in AWS.</li><li>We learned how to run Terraform init, validate, plan and apply to troubleshoot Terraform scripts.</li><li>We created and verified the presence of a GCP Virtual Private Cloud (VPC), subnets and address ranges, VPN tunnels, a GCP VPN gateway, and the GCP VM instance and AWS EC2 instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*YCll9h5aLJed8BOxBld-Nw.png" /><figcaption>GCP VPN Tunnels</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*W5yRRs6-h10qPLWXHQmIDA.png" /><figcaption>GCP VM Instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*d-H4Mxb9jqqW78UyqCnstw.png" /><figcaption>AWS EC2 Instance</figcaption></figure><p>7. We tested that we could ping the AWS EC2 instance privately from the GCP VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*4IB0ChPMqnQ0MGSr1kUv3Q.png" /><figcaption>Ping of AWS EC2 instance internal IP address from GCP VM</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a16fd99eed03" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>