SlideShare a Scribd company logo
Technical Assessment
Contents
● About Me
● Infrastructure
● Disaster Recovery
● Application Deployment Pipeline
● Lambda Function
● Logging and Monitoring
● Conclusions
● Questions
● Thank You
About Me
● I have total 12+ years of professional experience out of 7 years in AWS Platform and 2 years in Azure
Platform.
● Core Skill Sets:
○ AWS Infrastructure Design, Hands-On Deployment and Automation
○ Terraform & CloudFormation (Based on Project Requirement)
○ CI/CD Tools like - Git, Teamcity, Octopus, Jenkins, AWS CodePipeline
○ AKAMAI CDN (Including KONA support)
○ Scripting
● Major Recent Projects:
○ Migration from ECS Cluster based solution to EKS Cluster - Currently working
○ EKS Migration from EC2 based solution to EKS Cluster for 300+ websites and subsites -
Completed
○ High traffic oriented website migration across AWS account - Completed
Technical Assessment Project Objectives
● The Ghost Environment deployment and Application deployment will be
automated
● The application should be scalable depending on the load
● There should not be any obvious security flaws
● Observability
● Feature of Lambda function that can delete all posts of Ghost blog using Admin
API
Infrastructure Deployment Modules/Environments
Environments
● Primary Region
● Secondary Region
Modules
● VPC/Network
○ VPC Flow Logs
● KMS (Customer Managed Key)
○ Cross Region Key Replication
● RDS (MySQL)
● EFS
● ECS
○ ECS Cluster
○ Container Definition
○ Task Definition
○ ECS Service
● AWS Backup
○ Cross Region Backup Replication
● Application Load Balancer
○ Target Group & Listener
● ACM
● AWS Secrets Manager
● CodeBuild
● CodePipeline
● SNS Topic
● Route 53
● Lambda
● S3
Key Points Considered at the Infrastructure Modules
● VPC: Network/VPC module has flexibility to choose number Availability Zone and Number of NAT Gateway will be deployed.
● KMS: Customer Managed Key has been used along with cross region replication.
● AWS Backup: AWS Backup solution has been used to backup RDS snapshot and EFS along with cross region replication as part of DR.
● ECS Cluster: ECS solution has been considered over EC2 based solution because Docker containers improve efficiency by providing a
lightweight, efficient isolation model. Unlike a heavier virtual machine, we can run many small docker containers on a single machine.
To minimize cost, EKS solution has not been considered since EKS control plane itself has a recurring cost.
○ ECS node based solution has been considered over Fargate solution to optimize cost by using Savings Plan, Reserved Instance
or Spot Instance
○ ECS node based solution also provide benefit to access container by logging in to the node. Node can be accessed over SSH
connection or simply using SSM agent.
● AWS Secrets Manager: AWS secrets manager has been used to store various secrets across services. It is not recommended to store
any password or secret in tfvars file or any other deployment file.
● Horizontal Autoscale: ECS Service and ECS Nodes are capable to autoscale horizontally on occasion of high traffic usage and scale up
upto desired number of tasks or nodes.
● Cloudwatch Logs/Monitoring: Most of the resources has integration with Cloudwatch Logs/Alarms, based on defined thresholds,
Cloudwatch is capable to trigger alarm and send notification to SNS subscriber.
Security Measures Considered
● Ensure traffic is served over HTTPs protocol including HTTP to HTTPs redirection.
● Ensure no secrets has been stored at Git files or state file (without encryption).
● Using basic security measures like hosting infrastructure at Private Subnet.
● Optional addition of AWS WAF
○ Web traffic filtering
■ Admin page protection
■ Drop invalid headers
○ Bot Control
● Optional addition of AWS Cloudfront
○ Protection against Network and Application Layer DDoS Attacks
○ Compliance - CloudFront infrastructure and processes are all compliant with PCI-
DSS Level 1, HIPAA, and ISO 9001, ISO/IEC 27001:2013, 27017:2015, 27018:2019,
SOC (1, 2 and 3), FedRAMP Moderate and more to ensure secure delivery for
sensitive data.
○ High Availability and Caching
Disaster Recovery
Active/Passive
● Standby infrastructure code for DR environment which can be provisioned without error with
minimum provision time
● Using AWS Backup Service to replicate encrypted RDS Snapshot and EFS backup across region
● Cross region ECR image replication
● Cross region replica of S3 bucket
● Optional - Place failover record type which will point DNS on health check failure to holding page?
Active/Active
● Run parallel infrastructure like VPC, ECS at DR region (GDPR policy needs to be taken care if
applicable)
● Use RDS read replica across region
● Use AWS Data Sync to sync EFS files across region over VPC peering
● Use Route 53 health check - On occasion of health failure traffic can be routed to DR ALB
● Cross region ECR image replication
● Cross region replica of S3 bucket
Things to consider
● Backup of Source Code available at third party Git repository
Logging & Monitoring
● Logging is a very crucial part of any infrastructure, we have used AWS native logging tool like AWS
Cloudwatch Logs/Log Groups. Applicable resources are,
○ ECS Services
○ VPC Flow Logs
○ Application Load Balancer Logs (We have used S3 bucket to store ALB Logs)
● Similar to Cloudwatch Logs, Cloudwatch metric is also an important component to monitor service
metrics and create alarms based on mentioned threshold. Applicable resources are,
○ RDS
○ EFS
○ ECS Service
● To trigger alarm based on threshold and send notification to group of people or on-call person, we
can use a third-party service like OpsGenie which can be integrated with SNS topic as SNS
Subscriber using HTTPs API Endpoint.
Conclusion
Questions Please
Thank You!

More Related Content

Similar to Ghost Environment

Low Cost AWS Services For Application Development in the Cloud
Low Cost AWS Services For Application Development in the CloudLow Cost AWS Services For Application Development in the Cloud
Low Cost AWS Services For Application Development in the Cloud
Dhaval Nagar
 
Netflix Architecture and Open Source
Netflix Architecture and Open SourceNetflix Architecture and Open Source
Netflix Architecture and Open Source
All Things Open
 
Cloud Architecture best practices
Cloud Architecture best practicesCloud Architecture best practices
Cloud Architecture best practices
Omid Vahdaty
 
NetflixOSS Meetup S6E1 - Titus & Containers
NetflixOSS Meetup S6E1 - Titus & ContainersNetflixOSS Meetup S6E1 - Titus & Containers
NetflixOSS Meetup S6E1 - Titus & Containers
aspyker
 
re:Invent 2018 re:Cap for Toronto AWS User Group
re:Invent 2018 re:Cap for Toronto AWS User Groupre:Invent 2018 re:Cap for Toronto AWS User Group
re:Invent 2018 re:Cap for Toronto AWS User Group
Daniel Zivkovic
 
Amazon web services (aws) main developer services
Amazon web services (aws)   main developer servicesAmazon web services (aws)   main developer services
Amazon web services (aws) main developer services
Anderson Carvalho
 
Docker on Amazon ECS
Docker on Amazon ECSDocker on Amazon ECS
Docker on Amazon ECS
Deepak Kumar
 
Introduction to Google Cloud & GCCP Campaign
Introduction to Google Cloud & GCCP CampaignIntroduction to Google Cloud & GCCP Campaign
Introduction to Google Cloud & GCCP Campaign
GDSCVJTI
 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
CodeOps Technologies LLP
 
Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
Sreenivas Makam
 
Automating using Ansible
Automating using AnsibleAutomating using Ansible
Automating using Ansible
Alok Patra
 
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a MonthUSENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
Nicolas Brousse
 
re:Invent re:Peat
re:Invent re:Peatre:Invent re:Peat
re:Invent re:Peat
Steve Houël
 
introduction to micro services
introduction to micro servicesintroduction to micro services
introduction to micro services
Spyros Lambrinidis
 
Webinar: Dealing with automation tool overload!
Webinar: Dealing with automation tool overload!Webinar: Dealing with automation tool overload!
Webinar: Dealing with automation tool overload!
Cloudify Community
 
AWS Bulgaria: Re:invent 2017 Recap
AWS Bulgaria: Re:invent 2017 RecapAWS Bulgaria: Re:invent 2017 Recap
AWS Bulgaria: Re:invent 2017 Recap
Ivaylo Bratoev
 
Cloud Has Become the New Normal: TCS
Cloud Has Become the New Normal: TCS Cloud Has Become the New Normal: TCS
Cloud Has Become the New Normal: TCS
Amazon Web Services
 
AppRunner DeepDive
AppRunner DeepDiveAppRunner DeepDive
AppRunner DeepDive
Dhaval Nagar
 
Service fabric and azure service fabric mesh
Service fabric and azure service fabric meshService fabric and azure service fabric mesh
Service fabric and azure service fabric mesh
Mikkel Mørk Hegnhøj
 

Similar to Ghost Environment (20)

Low Cost AWS Services For Application Development in the Cloud
Low Cost AWS Services For Application Development in the CloudLow Cost AWS Services For Application Development in the Cloud
Low Cost AWS Services For Application Development in the Cloud
 
cc.pptx
cc.pptxcc.pptx
cc.pptx
 
Netflix Architecture and Open Source
Netflix Architecture and Open SourceNetflix Architecture and Open Source
Netflix Architecture and Open Source
 
Cloud Architecture best practices
Cloud Architecture best practicesCloud Architecture best practices
Cloud Architecture best practices
 
NetflixOSS Meetup S6E1 - Titus & Containers
NetflixOSS Meetup S6E1 - Titus & ContainersNetflixOSS Meetup S6E1 - Titus & Containers
NetflixOSS Meetup S6E1 - Titus & Containers
 
re:Invent 2018 re:Cap for Toronto AWS User Group
re:Invent 2018 re:Cap for Toronto AWS User Groupre:Invent 2018 re:Cap for Toronto AWS User Group
re:Invent 2018 re:Cap for Toronto AWS User Group
 
Amazon web services (aws) main developer services
Amazon web services (aws)   main developer servicesAmazon web services (aws)   main developer services
Amazon web services (aws) main developer services
 
Docker on Amazon ECS
Docker on Amazon ECSDocker on Amazon ECS
Docker on Amazon ECS
 
Introduction to Google Cloud & GCCP Campaign
Introduction to Google Cloud & GCCP CampaignIntroduction to Google Cloud & GCCP Campaign
Introduction to Google Cloud & GCCP Campaign
 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
 
Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
 
Automating using Ansible
Automating using AnsibleAutomating using Ansible
Automating using Ansible
 
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a MonthUSENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
USENIX LISA15: How TubeMogul Handles over One Trillion HTTP Requests a Month
 
re:Invent re:Peat
re:Invent re:Peatre:Invent re:Peat
re:Invent re:Peat
 
introduction to micro services
introduction to micro servicesintroduction to micro services
introduction to micro services
 
Webinar: Dealing with automation tool overload!
Webinar: Dealing with automation tool overload!Webinar: Dealing with automation tool overload!
Webinar: Dealing with automation tool overload!
 
AWS Bulgaria: Re:invent 2017 Recap
AWS Bulgaria: Re:invent 2017 RecapAWS Bulgaria: Re:invent 2017 Recap
AWS Bulgaria: Re:invent 2017 Recap
 
Cloud Has Become the New Normal: TCS
Cloud Has Become the New Normal: TCS Cloud Has Become the New Normal: TCS
Cloud Has Become the New Normal: TCS
 
AppRunner DeepDive
AppRunner DeepDiveAppRunner DeepDive
AppRunner DeepDive
 
Service fabric and azure service fabric mesh
Service fabric and azure service fabric meshService fabric and azure service fabric mesh
Service fabric and azure service fabric mesh
 

Recently uploaded

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
Nettur Technical Training Foundation
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 

Recently uploaded (20)

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 

Ghost Environment

  • 2. Contents ● About Me ● Infrastructure ● Disaster Recovery ● Application Deployment Pipeline ● Lambda Function ● Logging and Monitoring ● Conclusions ● Questions ● Thank You
  • 3. About Me ● I have total 12+ years of professional experience out of 7 years in AWS Platform and 2 years in Azure Platform. ● Core Skill Sets: ○ AWS Infrastructure Design, Hands-On Deployment and Automation ○ Terraform & CloudFormation (Based on Project Requirement) ○ CI/CD Tools like - Git, Teamcity, Octopus, Jenkins, AWS CodePipeline ○ AKAMAI CDN (Including KONA support) ○ Scripting ● Major Recent Projects: ○ Migration from ECS Cluster based solution to EKS Cluster - Currently working ○ EKS Migration from EC2 based solution to EKS Cluster for 300+ websites and subsites - Completed ○ High traffic oriented website migration across AWS account - Completed
  • 4. Technical Assessment Project Objectives ● The Ghost Environment deployment and Application deployment will be automated ● The application should be scalable depending on the load ● There should not be any obvious security flaws ● Observability ● Feature of Lambda function that can delete all posts of Ghost blog using Admin API
  • 5. Infrastructure Deployment Modules/Environments Environments ● Primary Region ● Secondary Region Modules ● VPC/Network ○ VPC Flow Logs ● KMS (Customer Managed Key) ○ Cross Region Key Replication ● RDS (MySQL) ● EFS ● ECS ○ ECS Cluster ○ Container Definition ○ Task Definition ○ ECS Service ● AWS Backup ○ Cross Region Backup Replication ● Application Load Balancer ○ Target Group & Listener ● ACM ● AWS Secrets Manager ● CodeBuild ● CodePipeline ● SNS Topic ● Route 53 ● Lambda ● S3
  • 6. Key Points Considered at the Infrastructure Modules ● VPC: Network/VPC module has flexibility to choose number Availability Zone and Number of NAT Gateway will be deployed. ● KMS: Customer Managed Key has been used along with cross region replication. ● AWS Backup: AWS Backup solution has been used to backup RDS snapshot and EFS along with cross region replication as part of DR. ● ECS Cluster: ECS solution has been considered over EC2 based solution because Docker containers improve efficiency by providing a lightweight, efficient isolation model. Unlike a heavier virtual machine, we can run many small docker containers on a single machine. To minimize cost, EKS solution has not been considered since EKS control plane itself has a recurring cost. ○ ECS node based solution has been considered over Fargate solution to optimize cost by using Savings Plan, Reserved Instance or Spot Instance ○ ECS node based solution also provide benefit to access container by logging in to the node. Node can be accessed over SSH connection or simply using SSM agent. ● AWS Secrets Manager: AWS secrets manager has been used to store various secrets across services. It is not recommended to store any password or secret in tfvars file or any other deployment file. ● Horizontal Autoscale: ECS Service and ECS Nodes are capable to autoscale horizontally on occasion of high traffic usage and scale up upto desired number of tasks or nodes. ● Cloudwatch Logs/Monitoring: Most of the resources has integration with Cloudwatch Logs/Alarms, based on defined thresholds, Cloudwatch is capable to trigger alarm and send notification to SNS subscriber.
  • 7. Security Measures Considered ● Ensure traffic is served over HTTPs protocol including HTTP to HTTPs redirection. ● Ensure no secrets has been stored at Git files or state file (without encryption). ● Using basic security measures like hosting infrastructure at Private Subnet. ● Optional addition of AWS WAF ○ Web traffic filtering ■ Admin page protection ■ Drop invalid headers ○ Bot Control ● Optional addition of AWS Cloudfront ○ Protection against Network and Application Layer DDoS Attacks ○ Compliance - CloudFront infrastructure and processes are all compliant with PCI- DSS Level 1, HIPAA, and ISO 9001, ISO/IEC 27001:2013, 27017:2015, 27018:2019, SOC (1, 2 and 3), FedRAMP Moderate and more to ensure secure delivery for sensitive data. ○ High Availability and Caching
  • 8. Disaster Recovery Active/Passive ● Standby infrastructure code for DR environment which can be provisioned without error with minimum provision time ● Using AWS Backup Service to replicate encrypted RDS Snapshot and EFS backup across region ● Cross region ECR image replication ● Cross region replica of S3 bucket ● Optional - Place failover record type which will point DNS on health check failure to holding page? Active/Active ● Run parallel infrastructure like VPC, ECS at DR region (GDPR policy needs to be taken care if applicable) ● Use RDS read replica across region ● Use AWS Data Sync to sync EFS files across region over VPC peering ● Use Route 53 health check - On occasion of health failure traffic can be routed to DR ALB ● Cross region ECR image replication ● Cross region replica of S3 bucket Things to consider ● Backup of Source Code available at third party Git repository
  • 9. Logging & Monitoring ● Logging is a very crucial part of any infrastructure, we have used AWS native logging tool like AWS Cloudwatch Logs/Log Groups. Applicable resources are, ○ ECS Services ○ VPC Flow Logs ○ Application Load Balancer Logs (We have used S3 bucket to store ALB Logs) ● Similar to Cloudwatch Logs, Cloudwatch metric is also an important component to monitor service metrics and create alarms based on mentioned threshold. Applicable resources are, ○ RDS ○ EFS ○ ECS Service ● To trigger alarm based on threshold and send notification to group of people or on-call person, we can use a third-party service like OpsGenie which can be integrated with SNS topic as SNS Subscriber using HTTPs API Endpoint.