โš™๏ธ GitHub Actions ยท AWS CodeDeploy ยท Terraform ยท GitOps

Production-Grade
GitOps CI/CD Suite

End-to-end automated delivery pipeline with canary deployments, automated rollbacks, security scanning, and full infrastructure as code โ€” built for high availability and developer velocity.

GitOps
Single Source of Truth
Canary
Safe Deployments
Auto
Rollback on Alert
OIDC
Keyless Auth to AWS
IaC
100% Terraform

CI/CD Pipeline Steps

Every commit to main triggers a fully automated, gated delivery pipeline from code to production.

Continuous Integration

1
Lint & Test
Code quality checks, unit tests, and integration tests run on every PR via GitHub Actions.
2
Security Scanning
Trivy scans container images for CVEs. Checkov validates Terraform for misconfigurations. Snyk checks dependencies.
3
Terraform Plan
Automated Terraform plan posted as a PR comment, giving reviewers full visibility into infrastructure changes.
4
Container Build
Docker image built, tagged, and pushed to Amazon ECR. CodeBuild alternative available via buildspec.yml.

Continuous Delivery

5
Staging Deploy
Push to staging branch triggers cd-staging.yml โ€” full deployment to staging environment.
6
Manual Approval Gate
Production pipeline requires explicit reviewer approval in GitHub Actions UI before proceeding.
7
Canary Rollout
AWS CodeDeploy shifts traffic progressively: 10% โ†’ 50% โ†’ 100%. CloudWatch monitors each phase.
8
Auto Rollback
If error rate, latency, or CPU breaches thresholds during rollout, CloudWatch alarm triggers automatic rollback.

Key Features

Enterprise-grade DevOps practices applied to a single cohesive suite.

๐Ÿ”

GitOps Workflow

Git is the single source of truth. All infrastructure and application changes flow through pull requests with full audit trail.

๐Ÿ”

OIDC Keyless Auth

GitHub Actions authenticates to AWS via OIDC โ€” no long-lived credentials stored as secrets. Least-privilege IAM roles enforced.

๐Ÿ›ก๏ธ

Security by Design

Trivy, Checkov, and Snyk run on every build. Vulnerabilities are caught before reaching staging or production.

โ˜๏ธ

AWS CodeDeploy

Canary traffic shifting with automated health monitoring at each phase. Instant rollback on alarm breach.

๐Ÿ—๏ธ

Terraform IaC

VPC, ECS Fargate, ALB, RDS, and all supporting infrastructure defined in reusable Terraform modules per environment.

๐Ÿ“Š

Observability

Centralized CloudWatch logs, metrics dashboards, and SNS-backed alerting across all environments and deployment phases.

Canary Deployment & Rollback

Traffic is shifted progressively, giving CloudWatch time to validate each phase before full rollout.

Traffic Shifting Phases

Phase 1
10%

Initial canary slice โ€” validates new version with minimal blast radius.

Phase 2
50%

Half traffic migrated โ€” sustained monitoring of error rate and latency.

Phase 3
100%

Full production traffic on new version โ€” deployment complete.

Rollback Triggers

MetricThresholdAction
HTTP Error Rate> 5% (5xx)Auto Rollback
p99 Latency> 500msAuto Rollback
CPU Utilization> 80%Auto Rollback
Manual TriggerOn demandrollback.yml

CloudWatch alarms are evaluated throughout each canary phase. Rollbacks complete within seconds of threshold breach.

Infrastructure Components

Multi-AZ, high-availability infrastructure managed entirely with Terraform modules.

ComponentServicePurpose
ComputeECS FargateServerless container orchestration โ€” no EC2 to manage
NetworkingMulti-AZ VPCALBHigh-availability network with Application Load Balancer
DatabaseAmazon RDSManaged relational database with automated backups
DeploymentAWS CodeDeployCanary traffic shifting and automated rollback
ArtifactsAmazon ECRS3Container registry and Terraform remote state storage
MonitoringCloudWatchSNSMetrics, logs, dashboards, and alert notifications
AuthOIDC / IAMKeyless GitHub Actions โ†’ AWS authentication

Technologies Used

โš™๏ธ

GitHub Actions

CI workflows, PR checks, manual approval gates, and environment-specific CD pipelines.

๐Ÿ—๏ธ

Terraform

All AWS resources defined as reusable modules. Remote state in S3 with DynamoDB locking.

๐Ÿš€

AWS CodeDeploy

Canary deployment orchestration with integrated CloudWatch alarm monitoring.

๐Ÿ›ก๏ธ

Trivy + Checkov + Snyk

Multi-layer security scanning for container images, IaC misconfigurations, and dependency CVEs.

๐Ÿณ

Docker + ECR

Containerized application builds pushed to Amazon Elastic Container Registry.

๐Ÿ“Š

CloudWatch + SNS

Unified observability with automated alerting and rollback triggers based on live metrics.