Skip to main content

C-Metric.com

Call Us +1 (856) 482-7700
Contact Us

AWS to GCP Cloud Migration

Category: AWS to GCP Cloud Migration
Angular | .NET Core 8 | Google Cloud Platform | Cloud SQL (MSSQL)

Key Highlights

  • Strategic Cloud Transformation – Successfully migrated enterprise-grade procurement and logistics platform from AWS to Google Cloud Platform (GCP).
  • High-Performance Application Modernization – Improved application response time and eliminated API delays through containerized Cloud Run deployment.
  • Database Optimization & Migration – Migrated from Amazon Aurora (MySQL) to Cloud SQL (MSSQL) for improved stability and stored procedure performance.
  • Cost Optimization – Reduced overall cloud infrastructure costs significantly by optimizing services and eliminating tunnel-based architecture.
  • Enhanced Security & Compliance – Strengthened IAM controls, HTTPS enforcement, Cloud Armor protection, and centralized audit logging.
  • DevOps & CI/CD Simplification – Streamlined deployments using Cloud Build, Artifact Registry, and Cloud Run with faster release cycles.

Introduction

Adani Group is one of India’s largest multinational conglomerates operating across energy, logistics, infrastructure, and natural resources. With extensive operations in coal trading and vessel logistics, the organization requires a highly scalable, secure, and high-performance digital platform.

C-Metric previously developed two mission-critical systems:

  • PDT (Procurement Deal Tracking)
  • MIS (Vessel Planning & Financial Management)

These applications managed procurement deals, NFA approvals, contract execution, vessel scheduling, and financial reconciliation.

However, the application was hosted on AWS infrastructure, where performance bottlenecks, high operational costs, and architectural limitations began impacting business efficiency.

To address these challenges, C-Metric led a complete migration from AWS to Google Cloud Platform (GCP), modernizing the architecture and optimizing performance.

Previous AWS Architecture

The application was running on the following AWS services:

  • AWS CodeCommit
  • AWS CodeDeploy
  • AWS Lambda
  • Amazon API Gateway
  • Amazon Aurora (MySQL)
  • Amazon S3
  • VPN Connection (Tunnel-based communication)
  • Route 53
  • CloudFront
  • AWS WAF
  • AWS Certificate Manager
  • AWS IAM
  • Amazon VPC
  • AWS CloudTrail
  • AWS KMS
  • AWS Shield Standard
  • Amazon CloudWatch
  • Amazon Cognito
  • Amazon EventBridge

Migrated GCP Architecture

The AWS infrastructure was migrated to Google Cloud Platform using:

  • Cloud Run (Containerized APIs)
  • Cloud SQL (MSSQL)
  • Cloud Storage (GCS)
  • Cloud Build (CI/CD)
  • Artifact Registry
  • Cloud Scheduler (Cron Jobs)
  • Cloud Functions (Event-based services where applicable)
  • API Gateway
  • Cloud VPN & VPC
  • Cloud DNS & Cloud CDN
  • Google Cloud Armor (Security Layer)
  • Cloud Logging & Monitoring
  • Cloud Audit Logs
  • Cloud KMS
  • Identity Platform (Authentication)
  • IAM & Service Accounts

Source code repository and version control were maintained in Azure DevOps, integrated with GCP CI/CD pipelines.

The Client’s Challenge

While operating on AWS, the client experienced multiple operational challenges:

  • Slow Data Loading & Listing Delays – Large record listing and filtering operations were significantly delayed.
  • Form Submission Latency – Insert and update operations caused noticeable lag.
  • Delayed Deal, NFA & Contract Approvals – Performance issues impacted approval workflows.
  • Stored Procedure Timeouts – MySQL queries frequently hit 30-second timeout limits.
  • Tunnel-Based Connectivity Issues – VPN tunnel implementation increased API response time.
  • Login & Data Fetching Delays – Authentication and data retrieval were slow.
  • High AWS Infrastructure Costs – The client incurred a significantly high monthly AWS billing.

The C-Metric Solution

C-Metric designed and executed a structured cloud migration strategy from AWS to GCP, focusing on:

  • Performance optimization
  • Database modernization
  • Cost reduction
  • Simplified deployment architecture
  • Enhanced security

1. Containerization & Cloud Run Deployment

Initially, APIs were deployed using Cloud Functions, but due to runtime and port-binding limitations, we migrated to Docker-based container deployment on Cloud Run.

Key Improvements:

  • Dockerized all .NET 8 APIs
  • Deployed via Artifact Registry
  • Configured auto-scaling Cloud Run services
  • Eliminated port-binding issues
  • Enabled automatic HTTPS endpoints

Outcome:
Stable, scalable, high-performance APIs with simplified deployments.

2. Database Migration: Aurora (MySQL) → Cloud SQL (MSSQL)

The previous Aurora (MySQL) setup caused SP timeouts and performance instability.

Actions Taken:

  • Migrated database to Cloud SQL (MSSQL)
  • Optimized stored procedures
  • Improved indexing strategy
  • Enhanced query execution performance

Outcome:

  • Eliminated 30-second timeout issues
  • Faster deal calculations & pricing formula execution
  • Improved transactional stability

3. Secure File Handling via GCS

Resolved 403 permission issues during file uploads/downloads by:

  • Implementing secure pre-signed URLs
  • Configuring proper IAM roles
  • Using UrlSigner with correct HTTP methods

Outcome:
Secure, reliable, and scalable document management.

4. Cloud Logging Optimization

Replaced manual logger configuration with Cloud Run’s native logging integration.

Result:

  • Automatic log capture
  • Simplified debugging
  • Centralized monitoring via Logs Explorer

5. Microsoft SSO Integration

Resolved HTTPS redirection and return URL mismatches by:

  • Configuring forwarded headers in .NET
  • Aligning Redirect URIs
  • Enforcing HTTPS

Outcome:
Seamless and secure SSO authentication flow.

6. Cloud Scheduler (Cron Job) Implementation

Cloud Scheduler was used to replace AWS EventBridge for scheduled background tasks.

Steps to Create a Cron Job in GCP:

  1. Navigate to Cloud Scheduler in GCP Console.
  2. Click Create Job.
  3. Provide:
    • Job Name
    • Region
    • Frequency (Cron Expression)
  4. Example:
    0 2 * * * → Runs daily at 2 AM
  5. Select Target:
    • HTTP
    • Pub/Sub
  6. If HTTP:
    • Provide Cloud Run API endpoint
    • Select HTTP method (GET/POST)
    • Configure authentication (OIDC using service account)
  7. Deploy Job.

Cloud Scheduler securely triggers Cloud Run endpoints with authentication, ensuring reliable execution of background processes.

Business Benefits Achieved

With the successful AWS to GCP migration, the organization achieved:

  • Significant Performance Improvement – Faster login, listing, and form submission.
  • Eliminated Tunnel Latency – Direct secure cloud communication improved API response time.
  • Reduced Infrastructure Cost – Optimized cloud resource usage lowered overall billing.
  • Faster Deployment Cycles – Simplified frontend & backend deployment on Cloud Run.
  • Improved Security Posture – IAM, Cloud Armor, HTTPS enforcement, audit logs.
  • Better Monitoring & Observability – Integrated logging and monitoring tools.

Measurable Outcomes

  • Accelerated API Performance – Significant reduction in response time for login, data fetching, and record listing operations.
  • Zero Stored Procedure Timeouts – Completely eliminated 30-second database timeout issues after migration to Cloud SQL (MSSQL).
  • Faster Deal & Contract Approvals – Improved workflow efficiency resulting in quicker NFA and contract processing cycles.
  • Reduced Deployment Time – Streamlined CI/CD pipeline enabled faster frontend and backend releases with minimal manual intervention.
  • Optimized Cloud Costs – Achieved lower monthly infrastructure expenditure compared to previous AWS environment.

Ready to Explore More? Download the Full Case Study!

Download Now

Discover how we transformed data management, bridged gaps, and empowered our client with cutting-edge technology. Dive into the nitty-gritty details, success metrics, and behind-the-scenes magic. Don’t miss out—grab your copy today!

Feel free to reach out if you have any questions or want to explore similar solutions further!

Email us info@c-metric.com or give us a call at +1 856 482 7700