SlideShare a Scribd company logo
End-to-End CI/CD at scale with Infrastructure-as-Code on AWS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
End-to-End CI/CD at scale with
Infrastructure-as-Code on AWS
Bhuvaneswari Subramani (she/hers)
D1DEV102
Director, Engineering Operations, Infor
AWS DevTools Hero
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Quick Intro
• Bhuvaneswari Subramani (Bhuvana)
• Director, Engineering Operations, Infor
• AWS Hero since 2019
• Organizer, AWS User Group Bengaluru
• Leading cloud computing, DevOps,
and Performance QA
https://bhuvana.pro
/bhuvanas
@installjournal
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Why Infrastructure as Code (IaC) for CI CD ?
• CI CD multi-account Architecture
• Build & Deployment Infrastructure Setup
• Best Practices
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why Infrastructure as Code
for CI CD ?
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Benefits
Speed Consistency Traceability
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CI CD with multi-account
architecture
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC Gateway
EndPoint
Continuous Integration
VPC
Developer Service Account
Private subnet
Build & Deploy
Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC Gateway
EndPoint
Continuous Integration
VPC
Developer Service Account
Private subnet
Build & Deploy
Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC Gateway
EndPoint
Continuous Integration
VPC
Developer Service Account
Private subnet
Build & Deploy
Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
5
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC Gateway
EndPoint
Continuous Integration
VPC
Developer Service Account
Build & Deploy
Server
Worker Nodes
Lin
Private subnet
1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
5
App artifacts
Config artifacts
Data system artifacts
Test artifacts
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mirror Git
Repo
Lin
VPC
Continuous Deployment – Nano Env
AWS Cloud AWS Cloud
Developer Service Account Nano Environment(s) Account
https://<env-id>.nano.infornexus.com
Public Subnet
Internet gateway
Windows
Peer
Linux
Peer
Users
Availability Zone
VPC
Private subnet
Build & Deploy
Server
S3 Buckets
Deploy
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Nano to Full Scale Environments
Beta
…
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Integration – Alpha / Beta / Prod Env
VPC
Developer Service Account
Private subnet
Build Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
AWS Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Integration – Alpha / Beta / Prod Env
VPC
Developer Service Account
Private subnet
Build Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
AWS Cloud
VPC Gateway
EndPoint
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Integration – Alpha / Beta / Prod Env
VPC
Developer Service Account
Private subnet
Build Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
AWS Cloud
VPC Gateway
EndPoint
ECR
Publish container
images
VPC Interface
EndPoint
4
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Deployment – Alpha / Beta / Prod Env
VPC
Developer Service Account
Private subnet
Build Server
Worker Nodes
Lin 1
2
3
Mirror Git
Repo
Publish build
artifacts
4
S3 Buckets
CI
1 - Initiate Build process
2 - Get Source code
3 - Compile & generate artifacts
4 - Publish artifacts
5 - Run code validation suite
5
AWS Cloud
VPC Gateway
EndPoint
AWS Cloud
Prod Account
Deploy Server
ECR
Publish container
images
VPC Interface
EndPoint
4
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mirror Git
Repo
Lin
Continuous Deployment – Alpha / Beta / Prod Env
AWS Cloud
Developer Service Account
VPC
Private subnet
Build Server
VPC
AWS Cloud
Alpha / Beta / Prod Environment Account
Private subnet
App Container Services
• Web Tier
• Integration Tier
Intermediate Tier
• Caching
• Lock co-ordination
• Service Discovery
Data Tier
• Queueing
• AWS Hosted Data Services
• AWS Managed Data Services
Logging
&
Monitoring
Supply
Chain
Intelligence
Deploy Server
Deploy Nodes
A
Publish build
artifacts
ECR
B Publish
container
images
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mirror Git
Repo
Lin
Continuous Deployment – Alpha / Beta / Prod Env
AWS Cloud
Developer Service Account
VPC
Private subnet
Build Server
VPC
AWS Cloud
Alpha / Beta / Prod Environment Account
Private subnet
App Container Services
• Web Tier
• Integration Tier
Intermediate Tier
• Caching
• Lock co-ordination
• Service Discovery
Data Tier
• Queueing
• AWS Hosted Data Services
• AWS Managed Data Services
Logging
&
Monitoring
Supply
Chain
Intelligence
Deploy Server
Deploy Nodes
A
Publish build
artifacts
C
ECR
B Publish
container
images
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mirror Git
Repo
Lin
Continuous Deployment – Alpha / Beta / Prod Env
AWS Cloud
Developer Service Account
VPC
Private subnet
Build Server
VPC
AWS Cloud
Alpha / Beta / Prod Environment Account
Private subnet
App Container Services
• Web Tier
• Integration Tier
Intermediate Tier
• Caching
• Lock co-ordination
• Service Discovery
Data Tier
• Queueing
• AWS Hosted Data Services
• AWS Managed Data Services
Logging
&
Monitoring
Supply
Chain
Intelligence
Deploy Server
Deploy Nodes
A
Publish build
artifacts
C
ECR
B Publish
container
images
D
D
VPC Gateway
EndPoint
VPC Interface
EndPoint
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build & Deployment
Infrastructure Setup
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build Infrastructure Components
AWS
CloudFormation
Mirror Git Repo
Jenkins Master
S3 Bucket
IAM Roles
Secrets
Jenkins Win Agent Jenkins Linux
Agent
VPC EndPoints
ECR
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Setup Mirror Git Repo using IaC
Create Git repo tar.gz &
Upload to S3
Create EC2 Instance
Pull Git repo tar.gz from S3
and place in EC2
Configure Cron job to sync
Git repo
AWS
CloudFormation
Mirror Git Repo
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Setup Jenkins Master using IaC
Pipeline
Create
EC2
Salt
minion
Jenkins
Server
Gitlab
IaC Developers
Source - Bootstrap
Bootstrap
Jenkins
Linux Agent
Windows Agent
Jenkins Job
Configuration
Source - IaC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dev Environment for Jenkins Bootstrapping
Run Jenkins as Container
Install Docker
Setup local repo
Bind mount the directories into
Docker Containers
Install Jenkins as a Container
Configure Jenkins
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Best Practices
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Best Practices
• Operational excellence
• Security
• Reliability
• Performance efficiency
• Cost optimization
• Sustainability
AWS Well-Architected Framework
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Operational excellence
• Continually improving quality process
• Design for failure
• Opportunities for improvement
• Clearly defined Promotion model for IaC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Operational Excellence – Promotion Model
Stable
Staging
Feature
• Holds IaC for services that are live on an Env
• Protected Branch ; Changes needs approval
• Holds IaC for services ready to go live
• Protected Branch ; Changes needs approval
• To apply changes to production or alpha
branch
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Operational Excellence – Promotion Model
[STAGING]
[FEATURE-1]
{Create} {rebase} {promote}
[FEATURE-N] {Create}
{Promote to Stable for go
live}
[ … ]
Conventions
o commit
+ branch create
* rebase
^ promote
/ code flow
[ ] branch
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Operational Excellence – Promotion Model
[STAGING]
[FEATURE-1]
{Create} {rebase} {promote}
[FEATURE-N] {Create}
[STABLE]
Conventions
o commit
+ branch create
* rebase
^ promote
/ code flow
[ ] branch
{Promote to Stable for go
live}
[ … ]
[FEATURE-1] {Create} {rebase} {promote}
[FEATURE-N]
{Create}
[ … ]
{Code flow to Staging}
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security
• Infrastructure protection
• Centralized identities with SAML 2.0
• End-to-end Traceability
• Data Protection
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reliability
• Monitor workload Resources
• Adapt to changes in Demand
• Implement resiliency for reliable workload
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance Efficiency
• Capability to deploy the workload in multiple AWS
Regions
• Use serverless architectures
• Monitor your resources
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost Optimization
• Implement cloud financial management
• Monitor Cost and Usage
• Stop spending money on undifferentiated heavy
lifting
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sustainability
• Remove or refactor workload components with low or
no use
• Increase utilization of build environments
• Optimize areas of code that consume the most time or
resources
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Benefits
Speed Consistency Traceability
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Additional resources
Link 1
About Link 1
AWS speakers,
more resources
are on the wiki
Link 1
About Link 1
Link 1
About Link 1
Link 1
About Link 1
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deepen your skills with digital
learning on demand
Access 500+ free digital courses
and Learning Plans
Earn an industry-recognized credential
AWS Skill Builder AWS Certifications
Explore resources with a variety of
skill levels and 16+ languages to
meet your learning needs
Join the AWS Certified community and
get exclusive benefits
Receive Foundational,
Associate, Professional, and
Specialty certifications
Train now
Access new
exam guides
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learn in-demand AWS Cloud skills
Thank you!
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bhuvaneswari Subramani
https://bhuvana.pro
/bhuvanas
@installjournal
!
Please complete
the session survey
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

PDF
Kubernetes Secrets Management on Production with Demo
PPTX
Adopting OpenTelemetry
PDF
Tech Summit 2018 【事例紹介】 自社サービスに Azure IoT Hub Device Provisioning Serviceを適用してみた
PDF
Enterprise Cloud Governance: A Frictionless Approach
PPSX
SDDC(software defined data center)에서 NFV의 역할과 관리도구 (세미나 발표 자료)
PDF
Best Practices with Azure Kubernetes Services
PDF
Red Hat OpenShift Container Platform Overview
PPTX
OpenTelemetry For Developers
Kubernetes Secrets Management on Production with Demo
Adopting OpenTelemetry
Tech Summit 2018 【事例紹介】 自社サービスに Azure IoT Hub Device Provisioning Serviceを適用してみた
Enterprise Cloud Governance: A Frictionless Approach
SDDC(software defined data center)에서 NFV의 역할과 관리도구 (세미나 발표 자료)
Best Practices with Azure Kubernetes Services
Red Hat OpenShift Container Platform Overview
OpenTelemetry For Developers

What's hot (20)

PDF
Prometheus Operator 入門(Kubernetes Novice Tokyo #26 発表資料)
PDF
Azure DevOps - Azure Guatemala Meetup
PPTX
Kubernetes day 2 Operations
PDF
Rancher 2.0 Technical Deep Dive
PDF
Kubernetes Basics
PDF
Building an SRE Organization @ Squarespace
PDF
Amazon EKS - security best practices - 2022
PPTX
Introduction to CI/CD
ODP
Introduction to Red Hat
PDF
CI/CD 101
PDF
VMware Horizon へ YubiKey を使って認証をキメる話
PDF
Building Kubernetes images at scale with Tanzu Build Service
PDF
Openstack 101
PDF
AlmaLinux と Rocky Linux の誕生経緯&比較
PDF
Rapid Strategic SRE Assessments
PDF
Open shift 4-update
PDF
Docker, Linux Containers (LXC), and security
PPTX
Easy Java Integration Testing with Testcontainers​
PPTX
DevSecOps in the Cloud from the Lens of a Well-Architected Framework.pptx
PDF
OpenStack Architecture
Prometheus Operator 入門(Kubernetes Novice Tokyo #26 発表資料)
Azure DevOps - Azure Guatemala Meetup
Kubernetes day 2 Operations
Rancher 2.0 Technical Deep Dive
Kubernetes Basics
Building an SRE Organization @ Squarespace
Amazon EKS - security best practices - 2022
Introduction to CI/CD
Introduction to Red Hat
CI/CD 101
VMware Horizon へ YubiKey を使って認証をキメる話
Building Kubernetes images at scale with Tanzu Build Service
Openstack 101
AlmaLinux と Rocky Linux の誕生経緯&比較
Rapid Strategic SRE Assessments
Open shift 4-update
Docker, Linux Containers (LXC), and security
Easy Java Integration Testing with Testcontainers​
DevSecOps in the Cloud from the Lens of a Well-Architected Framework.pptx
OpenStack Architecture
Ad

Similar to End-to-End CI/CD at scale with Infrastructure-as-Code on AWS (14)

PDF
From Code to a running container | AWS Summit Tel Aviv 2019
PDF
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
PDF
DevOps Spain 2019. Pedro Mendoza-AWS
PDF
Community day _aws_ci_cd_v0.2
PDF
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
PPTX
ACDKOCHI19 - CI / CD using AWS Developer Tools
PDF
Continuously Deploy Your CDK Application by Petra novandi barus
PPTX
Lessons learnt in CI/CD with AWS serverless architecture
PDF
From Docker Straight to AWS
PDF
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
PDF
Dev Ops
PPTX
AWS SSA Webinar 12 - Getting started on AWS with Containers
PDF
Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...
PDF
CI CD using AWS Developer Tools Online Workshop
From Code to a running container | AWS Summit Tel Aviv 2019
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
DevOps Spain 2019. Pedro Mendoza-AWS
Community day _aws_ci_cd_v0.2
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
ACDKOCHI19 - CI / CD using AWS Developer Tools
Continuously Deploy Your CDK Application by Petra novandi barus
Lessons learnt in CI/CD with AWS serverless architecture
From Docker Straight to AWS
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
Dev Ops
AWS SSA Webinar 12 - Getting started on AWS with Containers
Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...
CI CD using AWS Developer Tools Online Workshop
Ad

More from Bhuvaneswari Subramani (20)

PDF
Application Modernization with AWS - A Transformation in Digital Era
PDF
The Operations effect of Dev, Data, ML and FM
PDF
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
PDF
Architecting for Success: Designing Secure GCP Landing Zone for Enterprises
PDF
How AWS Community in India reflects Unity in Diversity
PDF
An Insight Into Cloud Migration Story
PDF
COM 203 Enable continuous delivery and resiliency for a static website
PDF
LoadRunner walkthrough
PDF
Jmeter Walkthrough
PDF
Fundamentals Performance Testing
PDF
Fundamentals of Cloud Computing & AWS
PDF
IaC on AWS Cloud
PDF
Infrastructure as Code on AWS
PDF
A Pathway to Continuous Integration/Continuous Delivery on AWS
PDF
Transformational DevOps with AWS Native Tools
PDF
Demystifying DevOps
PDF
Application & Account Monitoring in AWS
PPTX
Industry Awareness to KSRCT
PDF
IndiaCloudSummit - Transforming to feature-driven development
PDF
AWS Organizations & Service Control Policy
Application Modernization with AWS - A Transformation in Digital Era
The Operations effect of Dev, Data, ML and FM
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Architecting for Success: Designing Secure GCP Landing Zone for Enterprises
How AWS Community in India reflects Unity in Diversity
An Insight Into Cloud Migration Story
COM 203 Enable continuous delivery and resiliency for a static website
LoadRunner walkthrough
Jmeter Walkthrough
Fundamentals Performance Testing
Fundamentals of Cloud Computing & AWS
IaC on AWS Cloud
Infrastructure as Code on AWS
A Pathway to Continuous Integration/Continuous Delivery on AWS
Transformational DevOps with AWS Native Tools
Demystifying DevOps
Application & Account Monitoring in AWS
Industry Awareness to KSRCT
IndiaCloudSummit - Transforming to feature-driven development
AWS Organizations & Service Control Policy

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
NewMind AI Monthly Chronicles - July 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Modernizing your data center with Dell and AMD
PDF
Approach and Philosophy of On baking technology
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
cuic standard and advanced reporting.pdf
KodekX | Application Modernization Development
NewMind AI Monthly Chronicles - July 2025
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation_ Review paper, used for researhc scholars
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Modernizing your data center with Dell and AMD
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
cuic standard and advanced reporting.pdf

End-to-End CI/CD at scale with Infrastructure-as-Code on AWS

  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. End-to-End CI/CD at scale with Infrastructure-as-Code on AWS Bhuvaneswari Subramani (she/hers) D1DEV102 Director, Engineering Operations, Infor AWS DevTools Hero
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Quick Intro • Bhuvaneswari Subramani (Bhuvana) • Director, Engineering Operations, Infor • AWS Hero since 2019 • Organizer, AWS User Group Bengaluru • Leading cloud computing, DevOps, and Performance QA https://bhuvana.pro /bhuvanas @installjournal
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Why Infrastructure as Code (IaC) for CI CD ? • CI CD multi-account Architecture • Build & Deployment Infrastructure Setup • Best Practices
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why Infrastructure as Code for CI CD ?
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key Benefits Speed Consistency Traceability
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CI CD with multi-account architecture
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC Gateway EndPoint Continuous Integration VPC Developer Service Account Private subnet Build & Deploy Server Worker Nodes Lin 1 2 3 Mirror Git Repo CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite AWS Cloud
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC Gateway EndPoint Continuous Integration VPC Developer Service Account Private subnet Build & Deploy Server Worker Nodes Lin 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite AWS Cloud
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC Gateway EndPoint Continuous Integration VPC Developer Service Account Private subnet Build & Deploy Server Worker Nodes Lin 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite 5 AWS Cloud
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. VPC Gateway EndPoint Continuous Integration VPC Developer Service Account Build & Deploy Server Worker Nodes Lin Private subnet 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets 5 App artifacts Config artifacts Data system artifacts Test artifacts AWS Cloud
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mirror Git Repo Lin VPC Continuous Deployment – Nano Env AWS Cloud AWS Cloud Developer Service Account Nano Environment(s) Account https://<env-id>.nano.infornexus.com Public Subnet Internet gateway Windows Peer Linux Peer Users Availability Zone VPC Private subnet Build & Deploy Server S3 Buckets Deploy
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Nano to Full Scale Environments Beta …
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Integration – Alpha / Beta / Prod Env VPC Developer Service Account Private subnet Build Server Worker Nodes Lin 1 2 3 Mirror Git Repo CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite AWS Cloud
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Integration – Alpha / Beta / Prod Env VPC Developer Service Account Private subnet Build Server Worker Nodes Lin 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite AWS Cloud VPC Gateway EndPoint
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Integration – Alpha / Beta / Prod Env VPC Developer Service Account Private subnet Build Server Worker Nodes Lin 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite AWS Cloud VPC Gateway EndPoint ECR Publish container images VPC Interface EndPoint 4
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Deployment – Alpha / Beta / Prod Env VPC Developer Service Account Private subnet Build Server Worker Nodes Lin 1 2 3 Mirror Git Repo Publish build artifacts 4 S3 Buckets CI 1 - Initiate Build process 2 - Get Source code 3 - Compile & generate artifacts 4 - Publish artifacts 5 - Run code validation suite 5 AWS Cloud VPC Gateway EndPoint AWS Cloud Prod Account Deploy Server ECR Publish container images VPC Interface EndPoint 4
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mirror Git Repo Lin Continuous Deployment – Alpha / Beta / Prod Env AWS Cloud Developer Service Account VPC Private subnet Build Server VPC AWS Cloud Alpha / Beta / Prod Environment Account Private subnet App Container Services • Web Tier • Integration Tier Intermediate Tier • Caching • Lock co-ordination • Service Discovery Data Tier • Queueing • AWS Hosted Data Services • AWS Managed Data Services Logging & Monitoring Supply Chain Intelligence Deploy Server Deploy Nodes A Publish build artifacts ECR B Publish container images
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mirror Git Repo Lin Continuous Deployment – Alpha / Beta / Prod Env AWS Cloud Developer Service Account VPC Private subnet Build Server VPC AWS Cloud Alpha / Beta / Prod Environment Account Private subnet App Container Services • Web Tier • Integration Tier Intermediate Tier • Caching • Lock co-ordination • Service Discovery Data Tier • Queueing • AWS Hosted Data Services • AWS Managed Data Services Logging & Monitoring Supply Chain Intelligence Deploy Server Deploy Nodes A Publish build artifacts C ECR B Publish container images
  • 20. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mirror Git Repo Lin Continuous Deployment – Alpha / Beta / Prod Env AWS Cloud Developer Service Account VPC Private subnet Build Server VPC AWS Cloud Alpha / Beta / Prod Environment Account Private subnet App Container Services • Web Tier • Integration Tier Intermediate Tier • Caching • Lock co-ordination • Service Discovery Data Tier • Queueing • AWS Hosted Data Services • AWS Managed Data Services Logging & Monitoring Supply Chain Intelligence Deploy Server Deploy Nodes A Publish build artifacts C ECR B Publish container images D D VPC Gateway EndPoint VPC Interface EndPoint
  • 21. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build & Deployment Infrastructure Setup
  • 22. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build Infrastructure Components AWS CloudFormation Mirror Git Repo Jenkins Master S3 Bucket IAM Roles Secrets Jenkins Win Agent Jenkins Linux Agent VPC EndPoints ECR
  • 23. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Setup Mirror Git Repo using IaC Create Git repo tar.gz & Upload to S3 Create EC2 Instance Pull Git repo tar.gz from S3 and place in EC2 Configure Cron job to sync Git repo AWS CloudFormation Mirror Git Repo
  • 24. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Setup Jenkins Master using IaC Pipeline Create EC2 Salt minion Jenkins Server Gitlab IaC Developers Source - Bootstrap Bootstrap Jenkins Linux Agent Windows Agent Jenkins Job Configuration Source - IaC
  • 25. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 26. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 27. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 28. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 29. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 30. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dev Environment for Jenkins Bootstrapping Run Jenkins as Container Install Docker Setup local repo Bind mount the directories into Docker Containers Install Jenkins as a Container Configure Jenkins
  • 31. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Best Practices
  • 32. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Best Practices • Operational excellence • Security • Reliability • Performance efficiency • Cost optimization • Sustainability AWS Well-Architected Framework
  • 33. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Operational excellence • Continually improving quality process • Design for failure • Opportunities for improvement • Clearly defined Promotion model for IaC
  • 34. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Operational Excellence – Promotion Model Stable Staging Feature • Holds IaC for services that are live on an Env • Protected Branch ; Changes needs approval • Holds IaC for services ready to go live • Protected Branch ; Changes needs approval • To apply changes to production or alpha branch
  • 35. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Operational Excellence – Promotion Model [STAGING] [FEATURE-1] {Create} {rebase} {promote} [FEATURE-N] {Create} {Promote to Stable for go live} [ … ] Conventions o commit + branch create * rebase ^ promote / code flow [ ] branch
  • 36. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Operational Excellence – Promotion Model [STAGING] [FEATURE-1] {Create} {rebase} {promote} [FEATURE-N] {Create} [STABLE] Conventions o commit + branch create * rebase ^ promote / code flow [ ] branch {Promote to Stable for go live} [ … ] [FEATURE-1] {Create} {rebase} {promote} [FEATURE-N] {Create} [ … ] {Code flow to Staging}
  • 37. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security • Infrastructure protection • Centralized identities with SAML 2.0 • End-to-end Traceability • Data Protection
  • 38. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reliability • Monitor workload Resources • Adapt to changes in Demand • Implement resiliency for reliable workload
  • 39. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Efficiency • Capability to deploy the workload in multiple AWS Regions • Use serverless architectures • Monitor your resources
  • 40. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cost Optimization • Implement cloud financial management • Monitor Cost and Usage • Stop spending money on undifferentiated heavy lifting
  • 41. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sustainability • Remove or refactor workload components with low or no use • Increase utilization of build environments • Optimize areas of code that consume the most time or resources
  • 42. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key Benefits Speed Consistency Traceability
  • 43. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Additional resources Link 1 About Link 1 AWS speakers, more resources are on the wiki Link 1 About Link 1 Link 1 About Link 1 Link 1 About Link 1
  • 44. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deepen your skills with digital learning on demand Access 500+ free digital courses and Learning Plans Earn an industry-recognized credential AWS Skill Builder AWS Certifications Explore resources with a variety of skill levels and 16+ languages to meet your learning needs Join the AWS Certified community and get exclusive benefits Receive Foundational, Associate, Professional, and Specialty certifications Train now Access new exam guides © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Learn in-demand AWS Cloud skills
  • 45. Thank you! © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Bhuvaneswari Subramani https://bhuvana.pro /bhuvanas @installjournal
  • 46. ! Please complete the session survey © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.