Skip to content
Ercan Ermis
Ercan Ermis

notes for everyone about cloud technology

  • Cloud
    • AWS
    • GCP
  • Container
    • Kubernetes
    • Docker
  • Linux
  • DevOps
  • Privacy Policy
  • Contact
Ercan Ermis

notes for everyone about cloud technology

Scaling PHP Applications on AWS

Ercan, August 10, 2022August 10, 2022

You can understand the running highly available, performant, and secure PHP applications on AWS.

  1. Amazon Route 53 routes end-user requests resolving Domain Name Service (DNS).
  2. Amazon CloudFront caches content and accelerates delivery, leveraging global points of presence. CloudFront also handles SSL ending, integrating with Amazon Certificate Manager, which automatically creates and renews SSL certificates at no cost.
  3. AWS Web Application Firewall integration with CloudFront and Application Load Balancer mitigates OWASP’s top 10 application vulnerabilities.
  4. The Application Load Balancer routes HTTP/S requests to EC2 instances running on private subnets.
  5. An Amazon Linux 2 AMI contains the PHP and other needed binaries, such as the AWS SDK for PHP.
  6. The Amazon CloudWatch Agent installed on the Amazon Linux 2 AMI streams application logs, additional host-level metrics, and custom business metrics.
  7. Amazon EC2 Auto Scaling manages the instance launch based on metrics such as CPU and memory. It uses Amazon Graviton instances for cost optimization.
  8. Using Systems Manager Session Manager, connect to EC2
    instances with web-based sessions on the AWS Console. There is no need for key pairs of SSH ports to be open.
  9. Database credentials are securely stored on AWS Secrets Manager. Using the AWS SDK for PHP, the application code retrieves the credentials stored on Secrets Manager though
    an IAM Role.
  10. Application code is safely stored on AWS CodeCommit using the familiar Git command line interface (CLI).
  11. AWS CodePipeline implements continuous integration and continuous deployment (CI/CD), orchestrating code deployment using an AWS CodeDeploy hook that triggers
    when new EC2 instances are launched.
  12. Amazon ElastiCache for Redis caches session data.
  13. Amazon Aurora Multi-AZ enables high availability. The application connects via DNS endpoint that handles failover automatically in case of failure. The Aurora reader endpoint handles read operations, offloading the Aurora writer instance load.
  14. Amazon Elastic File System (Amazon EFS) stores and
    shares web content with the Auto Scaling group.
Share on Social Media
x facebook linkedin reddit
AWS awsdeploymentlinux

Post navigation

Previous post
Next post
  • AWS (45)
    • Serverless (4)
  • Best (9)
  • DevOps (16)
  • Docker (10)
  • GCP (3)
  • Kubernetes (3)
  • Linux (13)
  • Uncategorized (6)

Recent Posts

  • Automating AWS CloudWatch Log Group Tagging with Python and Boto3
  • Automating AWS ECR Tagging with Python and Boto3
  • Automating ECR Image Cleanup with Bash
  • Update ECR Repositories with Bash Script
  • Why Automated Tests Are Essential in Your CI/CD Pipeline and Development Flow
  • Streamline Your AWS ECR Management with This Powerful Bash Script
  • Setting up DKIM for Google Workspace (Gmail) using Terraform and AWS Route 53
  • Automate AWS Site-to-Site VPN Monitoring
  • Optimizing Docker Images: Tips for Reducing Image Size and Build Time
  • Monitoring EC2 Disk Space with a Simple Bash Script and Slack Alerts
  • Securing Docker Containers: Best Practices for Container Security
  • Mastering Dockerfile: Writing Efficient, Scalable Container Builds
  • Migrating a Git Repository from GitLab to GitHub with GPG-Signed Commits
  • Accessing AWS Services in Private Subnets Without 0.0.0.0/0
  • Understanding AWS Regions, Availability Zones, and VPCs: A Comprehensive Guide
©2025 Ercan Ermis | WordPress Theme by SuperbThemes