
One-click deployment pipeline
Problem Statement:
Our client needed to streamline and automate deployments for over 30 productive multi-tenant environments. Each tenant operated in its own AWS account, creating complexity in deployment management. Manual processes were time-consuming and error-prone. To solve this, they required a secure, scalable, and automated One-click Deployment system (learn more about AWS CI/CD).
Key challenges included:
Complex Deployment Processes: Manual deployments across multiple AWS accounts led to inconsistencies and high error rates.
Scalability Issues: The infrastructure had to scale effectively to support growing tenants.
Security and Compliance: Needed secure deployments while maintaining isolation between client environments.
Operational Overhead: A small SRE team managed deployments, making efficiency critical.
Proposed Solution & Architecture:
Unified Techs designed and implemented a CI/CD pipeline that automated and standardized deployments across all client environments. Using AWS services and AWS Cloud Development Kit (CDK) with TypeScript, we delivered a One-click Deployment capability that minimized manual work and reduced errors.
CI/CD Pipeline Flow Overview:
Architecture:
Continuous Integration (CI)
Source Control: Bitbucket repository triggers the pipeline when code changes are committed.
Testing: Bitbucket Pipelines runs unit tests, lint checks, and SonarQube static analysis.
Artifact Creation: Packaged application code and AWS CDK resources are uploaded to a centralized S3 bucket.
Continuous Deployment (CD)
One-click Deployment: AWS CodePipeline deploys the artifact to target environments upon upload to S3.
Cross-Account Deployment: Securely manages deployments across 30+ AWS accounts using IAM roles and AWS CodeBuild.
Environment-Specific Builds: Tailored configurations per client account ensure flexibility and compliance.
Blast Radius Management: Environment-specific IAM roles limit deployment impact in case of failure.
Event-Driven Deployment Process
Central AWS Account:
S3 triggers EventBridge when a new artifact is uploaded.
EventBridge forwards deployment events to the correct AWS account.
Target AWS Account:
EventBridge triggers a Lambda function (
assets_tracker_lambda) that starts AWS CodeBuild.CodeBuild retrieves, extracts, and deploys the correct artifact version.
Metrics for Success:
Deployment Time Reduction: 75% faster deployments using the One-click Deployment model.
Error Rate: 90% fewer configuration and deployment errors.
Consistency: 100% uniform deployments across all environments via AWS CDK and centralized artifacts.
Operational Efficiency: A small SRE team now manages 30+ environments with minimal manual work.
Lessons Learned:
Scalable Automation is Key: Automation across multiple AWS accounts reduces errors and overhead.
Security Through Isolation: Distinct accounts and environment-specific IAM roles improve compliance and security.
Centralized Artifact Management: Using S3 as a single source of truth ensures deployment consistency.
One-click Deployment Improves Agility: A fully automated, single-action deployment process increases delivery speed and reduces human error.
Project Information
- Category:Energy

