DEV Community

KALPESH
KALPESH

Posted on

AWS Strategies

AWS Cloud Migration

1- Preparation stage

  • Verify if the application follows a microservices architecture.

  • If not, refactor the monolithic application into a microservices architecture.

2- Planning Stage

Break down the microservices migration into phases based on their criticality for cloud migration.

Most used Migration Strategies:

  1. Rehost (Lift and Shift): Move applications to the cloud with minimal changes, focusing on quick deployment.

  2. Replatform: Optimize specific components for cloud use without significant code changes.

  3. Refactor/Rearchitect: Redesign the application, e.g., transforming a monolithic architecture into microservices.

  4. Relocate: Shift services, e.g., from Kubernetes to OpenShift or EKS.

Least Used Migration Strategies:

  1. Retain: Keep certain applications on-premise.

  2. Retire: Shutdown unused applications.

  3. Repurchase: Replace with a cloud-based solution.

3- Migrate Stage

Conducted in phases, working concurrently with the monitor stage.

4- Monitor Stage

Runs alongside the migrate stage to ensure smooth transitions.

5- Optimize Stage

Enhance efficiency, refine processes, and implement improvements for better performance.

AWS Cost Optimization

1. AWS Resource Groups & Tag Editor

  • Use Tag Editor to track resources and identify those incurring charges.

2. Set Budgets in AWS Billing

  • Create Budgets to get alerts when spending hits thresholds.

  • Schedule budget reports for proactive cost management.

3. Reduce Console Access/UI, Use IaC

  • Use Terraform or similar tools for automated resource management.

4. Apply Least Privilege Access

  • Limit permissions to essential roles to prevent unnecessary resource usage.

5. Automate with AWS Lambda

  • Use a Lambda function triggered by cron jobs, AWS CLI, or CloudWatch events.

  • Write Python scripts to identify stale or unused resources based on specific conditions.

  • Define actions for stale resources:

1. Notify: Use SNS (Simple Notification Service) to send an email alert about stale resources.

  1. Cleanup: Automatically delete stale resources using APIs.
Enter fullscreen mode Exit fullscreen mode

  1. Request AWS Support for Unexpected Charges

  • Contact AWS Support for waivers on unexpected charges.

Top comments (0)