You are on page 1of 2

Database DevOps on AWS

The developer checks both application and


1 database code into AWS CodeCommit.
Use this architecture in the development workflow to automate database changes as part of the DevOps practice. Build an At every push request, AWS CodeCommit
orchestration to deploy database changes at the same rate as the application code, enforce database-application-joint code 2 enforces code reviews through the use of
reviews, integrate database and application code operations, detect abnormal system behavior, and automate notifications to approval rules.
appointed teams to take corrective actions.
Amazon CodeGuru Reviewer automatically
3 evaluates code changes, detects errors, and
Amazon EC2
offers code recommendations.
developers database change
management tool AWS CodeCommit initiates
7 4
1 (such as Flyway or AWS CodePipeline to take pipeline actions.
LiquiBase)
The AWS CodePipeline Source action checks
AWS 5 out application and database code.
CodeCommit
4
AWS CodePipeline development environment The AWS CodePipeline Build action invokes a
11 6 build management tool to start the
application database 5 Amazon RDS application and database code build phase.
code scripts development
Source action
build tool Amazon DevOps The build tool calls the database change tool.
2 3 (such as Maven Guru for RDS 7 It downloads the database scripts, and runs
pom.xml)
performance insights them against the target database.
6 Build action MyApp
The build tool calls database test scripts and
8 validates output.
Insights
production environment
application Amazon CodeGuru 8 Test action
AWS CodeBuild The AWS CodePipeline Deploy action
and database Reviewer Amazon RDS 9 deploys code to the target environment.
code production
reviewers 9 Deploy action Build artifacts are published to
Amazon 10 AWS CodeArtifact for others to consume.
release manager EventBridge
AWS CodeDeploy
MyApp performance insights
10 (Optional) You can use Performance Insights
11 on Amazon Relational Database Service
(Amazon RDS) and Amazon DevOps Guru to
AWS CodeArtifact Amazon SNS automatically apply machine learning
techniques to detect performance
12 bottlenecks and operational issues.
Amazon Amazon Amazon SNS AWS EventBridge captures events and sends
CloudWatch DevOps team/ 12 them to an Amazon Simple Notification
EventBridge
release managers
Reviewed for technical accuracy March 2023 Service (Amazon SNS) topic for user
Reviewed
© for technical
2022, Amazon Webaccuracy
Services,March
Inc. or31,
its2023
affiliates. All rights reserved. AWS Reference Architecture notifications.
© 2023, Amazon Web Services, Inc or its affiliates. All rights reserved.
Database DevOps on AWS The release manager issues a production
Use this architecture in the production workflow to automate database changes as part of the DevOps practice. Build an 1 deployment request.
orchestration to deploy database changes at the same rate as the application code, enforce database-application-joint code
reviews, integrate database and application code operations, detect abnormal system behavior, and automate notifications to AWS CodePipeline invokes the build
appointed teams to take corrective actions. 2 management tool which calls the database
change management tool.

Amazon EC2 The database change tool downloads the


3 database change scripts and runs them
developers database change
management tool against the target database.
3 (such as Flyway or
LiquiBase) AWS CodePipeline initiates the Deploy
4 action to deploy code to the target
AWS
CodeCommit
environment.
AWS CodePipeline 2 development environment (Optional) You can use performance Insights
5 5 on RDS and Amazon DevOps Guru to
application database Amazon RDS
automatically apply machine learning
code scripts Source action development
Amazon DevOps techniques to detect performance
build tool
(such as Maven
Guru for RDS bottlenecks and operational issues.
pom.xml)
Build action MyApp Performance Insights AWS EventBridge captures events and sends
6 to an Amazon SNS topic for user
notifications.
Insights
Test action production environment
application
Amazon CodeGuru AWS CodeBuild
and database
Reviewer Amazon RDS
code 1 production
reviewers
Deploy action
Amazon
release manager EventBridge
AWS CodeDeploy 4
MyApp Performance Insights

AWS CodeArtifact Amazon SNS

6
Amazon Amazon Amazon SNS
CloudWatch EventBridge DevOps team/
release managers
Reviewed for technical accuracy March 2023
Reviewed
© for technical
2022, Amazon Webaccuracy
Services,March
Inc. or31,
its2023
affiliates. All rights reserved. AWS Reference Architecture
© 2023, Amazon Web Services, Inc or its affiliates. All rights reserved.

You might also like