SlideShare a Scribd company logo
Amazon RDS with
CloudFormation
Launching AWS RDS and creating a CloudFormation template
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1
About the project
This is a series of my personal
projects which I took to prepare
for my AWS certification.
In this project I first launched an
AWS RDS (MySQL) Instance
and then created a
CloudFormation Template
recreate the same instance. The
Database credentials are stored
and read from AWS System
Manager Parameter Store.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
VPC
AWS Cloud
Public subnet
Internet gateway
1
Availability Zone
Amazon Relational
Database Service (Amazon
RDS)
Launching from
Console
Launching using
CloudFormation
AWS CloudFormation
2
Parameter Store
CFT
Launching the RDS MySQL Database
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
Password :
8qctywlonjw6a2f9
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
Endpoint : simple-mysql-instance.cu7mcvuvp9hm.us-east-
1.rds.amazonaws.com
Username : admin
Password : 8qctywlonjw6a2f9
Port : 3306
Initial Database Name: test_database
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
https://github.com/datacharmer/test_db
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
CloudWatch Metrics after loading the data into employees database
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
Import the employees database from public github
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
Take a snapshot and delete the RDS instance.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15
Take a note of the configuration , we will use this to launch the RDS
instance again using CloudFormation
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
CloudFormation Template to launch the RDS Instance
The features:
1. The RDS instance can be launched in any of the four US regions N. Virginia, Ohio, N. California, Oregon
2. The RDS can be launched in any of the AZ within the selected Region
3. The deployment mode can be either development, test or production with the following restrictions:
1. For development environment the instance class should be db.t2.micro
2. For test environment the instance class should be db.t2.small
3. For production environment the instance class should be db.t2.large
4. For Test and Production environment the database credentials will be stores in AWS Systems Manager
Parameter Store
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
The CloudFormation Template
CloudFormation Template available in github location:
https://github.com/subhamaybhattacharyya/awsprojects/blob/main/0-mysql-stack-cft.yaml
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
Creating the stack
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Deploying the stack with the following parameters
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
As I launched the RDS instance for development environment, the
Parameter store will not be created.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23
Now I will delete the stack and then launch it for production
environment.
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26
As I deployed the stack in production, the userid and password
got stored in SSM Parameter Store
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27
SSM Parameter Store
© 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28
Connect the MySQL database using DBeaver
Ad

More Related Content

What's hot (8)

AutoScaling and Drupal
AutoScaling and DrupalAutoScaling and Drupal
AutoScaling and Drupal
Promet Source
 
Infrastructure as code with Amazon Web Services
Infrastructure as code with Amazon Web ServicesInfrastructure as code with Amazon Web Services
Infrastructure as code with Amazon Web Services
Julien SIMON
 
AWS Elastic Container Service
AWS Elastic Container ServiceAWS Elastic Container Service
AWS Elastic Container Service
Ladislav Prskavec
 
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
Amazon Web Services Korea
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings
Adam Book
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
Julien SIMON
 
Aws meetup ssm
Aws meetup ssmAws meetup ssm
Aws meetup ssm
Adam Book
 
Running Open Source Platforms on AWS (November 2016)
Running Open Source Platforms on AWS (November 2016)Running Open Source Platforms on AWS (November 2016)
Running Open Source Platforms on AWS (November 2016)
Julien SIMON
 
AutoScaling and Drupal
AutoScaling and DrupalAutoScaling and Drupal
AutoScaling and Drupal
Promet Source
 
Infrastructure as code with Amazon Web Services
Infrastructure as code with Amazon Web ServicesInfrastructure as code with Amazon Web Services
Infrastructure as code with Amazon Web Services
Julien SIMON
 
AWS Elastic Container Service
AWS Elastic Container ServiceAWS Elastic Container Service
AWS Elastic Container Service
Ladislav Prskavec
 
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
Amazon Web Services Korea
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings
Adam Book
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
Julien SIMON
 
Aws meetup ssm
Aws meetup ssmAws meetup ssm
Aws meetup ssm
Adam Book
 
Running Open Source Platforms on AWS (November 2016)
Running Open Source Platforms on AWS (November 2016)Running Open Source Platforms on AWS (November 2016)
Running Open Source Platforms on AWS (November 2016)
Julien SIMON
 

Similar to Creating a RDS MySQL instance from AWS Console and CloudFormation (16)

AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as CodeAWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
Cobus Bernard
 
AWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with ContainersAWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with Containers
Cobus Bernard
 
AcademyCloudFoundations_Module_08 (1).pptx
AcademyCloudFoundations_Module_08 (1).pptxAcademyCloudFoundations_Module_08 (1).pptx
AcademyCloudFoundations_Module_08 (1).pptx
rawwatchtime
 
Vue presentation
Vue presentationVue presentation
Vue presentation
Norbert Nader
 
From Docker Straight to AWS
From Docker Straight to AWSFrom Docker Straight to AWS
From Docker Straight to AWS
DevOps.com
 
20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx
James Beswick
 
Spring boot-application
Spring boot-applicationSpring boot-application
Spring boot-application
Parag Patil
 
AWS DevDay Cologne - Automating building blocks choices you will face with co...
AWS DevDay Cologne - Automating building blocks choices you will face with co...AWS DevDay Cologne - Automating building blocks choices you will face with co...
AWS DevDay Cologne - Automating building blocks choices you will face with co...
Cobus Bernard
 
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdfPDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
Ropiudin5
 
AWS CZSK Webinář 2020.03: AWS Outposts
AWS CZSK Webinář 2020.03: AWS OutpostsAWS CZSK Webinář 2020.03: AWS Outposts
AWS CZSK Webinář 2020.03: AWS Outposts
Vladimir Simek
 
Migration to Aws Cloud
Migration to Aws Cloud  Migration to Aws Cloud
Migration to Aws Cloud
Mufti Ardian
 
Frome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Frome Code to Cloud: Exploring AWS CDK for Infrastructure ManagementFrome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Frome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Sujay Pillai
 
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
AWS Summits
 
ArcMC for AWS 2.2 P1 Setup Guide
ArcMC for AWS 2.2 P1 Setup GuideArcMC for AWS 2.2 P1 Setup Guide
ArcMC for AWS 2.2 P1 Setup Guide
Protect724mouni
 
AWS DevDay Berlin - Automating building blocks choices you will face with con...
AWS DevDay Berlin - Automating building blocks choices you will face with con...AWS DevDay Berlin - Automating building blocks choices you will face with con...
AWS DevDay Berlin - Automating building blocks choices you will face with con...
Cobus Bernard
 
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
Cobus Bernard
 
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as CodeAWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
Cobus Bernard
 
AWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with ContainersAWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with Containers
Cobus Bernard
 
AcademyCloudFoundations_Module_08 (1).pptx
AcademyCloudFoundations_Module_08 (1).pptxAcademyCloudFoundations_Module_08 (1).pptx
AcademyCloudFoundations_Module_08 (1).pptx
rawwatchtime
 
From Docker Straight to AWS
From Docker Straight to AWSFrom Docker Straight to AWS
From Docker Straight to AWS
DevOps.com
 
20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx
James Beswick
 
Spring boot-application
Spring boot-applicationSpring boot-application
Spring boot-application
Parag Patil
 
AWS DevDay Cologne - Automating building blocks choices you will face with co...
AWS DevDay Cologne - Automating building blocks choices you will face with co...AWS DevDay Cologne - Automating building blocks choices you will face with co...
AWS DevDay Cologne - Automating building blocks choices you will face with co...
Cobus Bernard
 
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdfPDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf
Ropiudin5
 
AWS CZSK Webinář 2020.03: AWS Outposts
AWS CZSK Webinář 2020.03: AWS OutpostsAWS CZSK Webinář 2020.03: AWS Outposts
AWS CZSK Webinář 2020.03: AWS Outposts
Vladimir Simek
 
Migration to Aws Cloud
Migration to Aws Cloud  Migration to Aws Cloud
Migration to Aws Cloud
Mufti Ardian
 
Frome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Frome Code to Cloud: Exploring AWS CDK for Infrastructure ManagementFrome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Frome Code to Cloud: Exploring AWS CDK for Infrastructure Management
Sujay Pillai
 
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
AWS Summits
 
ArcMC for AWS 2.2 P1 Setup Guide
ArcMC for AWS 2.2 P1 Setup GuideArcMC for AWS 2.2 P1 Setup Guide
ArcMC for AWS 2.2 P1 Setup Guide
Protect724mouni
 
AWS DevDay Berlin - Automating building blocks choices you will face with con...
AWS DevDay Berlin - Automating building blocks choices you will face with con...AWS DevDay Berlin - Automating building blocks choices you will face with con...
AWS DevDay Berlin - Automating building blocks choices you will face with con...
Cobus Bernard
 
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
Cobus Bernard
 
Ad

Recently uploaded (20)

Cryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptxCryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptx
riyageorge2024
 
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
saimabibi60507
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025
fs4635986
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Foundation Models for Time Series : A Survey
Foundation Models for Time Series : A SurveyFoundation Models for Time Series : A Survey
Foundation Models for Time Series : A Survey
jayanthkalyanam1
 
Microsoft Excel Core Points Training.pptx
Microsoft Excel Core Points Training.pptxMicrosoft Excel Core Points Training.pptx
Microsoft Excel Core Points Training.pptx
Mekonnen
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Creating Automated Tests with AI - Cory House - Applitools.pdf
Creating Automated Tests with AI - Cory House - Applitools.pdfCreating Automated Tests with AI - Cory House - Applitools.pdf
Creating Automated Tests with AI - Cory House - Applitools.pdf
Applitools
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Cryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptxCryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptx
riyageorge2024
 
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
PRTG Network Monitor Crack Latest Version & Serial Key 2025 [100% Working]
saimabibi60507
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025
fs4635986
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Foundation Models for Time Series : A Survey
Foundation Models for Time Series : A SurveyFoundation Models for Time Series : A Survey
Foundation Models for Time Series : A Survey
jayanthkalyanam1
 
Microsoft Excel Core Points Training.pptx
Microsoft Excel Core Points Training.pptxMicrosoft Excel Core Points Training.pptx
Microsoft Excel Core Points Training.pptx
Mekonnen
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Creating Automated Tests with AI - Cory House - Applitools.pdf
Creating Automated Tests with AI - Cory House - Applitools.pdfCreating Automated Tests with AI - Cory House - Applitools.pdf
Creating Automated Tests with AI - Cory House - Applitools.pdf
Applitools
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Ad

Creating a RDS MySQL instance from AWS Console and CloudFormation

  • 1. Amazon RDS with CloudFormation Launching AWS RDS and creating a CloudFormation template © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1
  • 2. About the project This is a series of my personal projects which I took to prepare for my AWS certification. In this project I first launched an AWS RDS (MySQL) Instance and then created a CloudFormation Template recreate the same instance. The Database credentials are stored and read from AWS System Manager Parameter Store. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2 VPC AWS Cloud Public subnet Internet gateway 1 Availability Zone Amazon Relational Database Service (Amazon RDS) Launching from Console Launching using CloudFormation AWS CloudFormation 2 Parameter Store CFT
  • 3. Launching the RDS MySQL Database © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
  • 4. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
  • 5. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
  • 6. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6 Password : 8qctywlonjw6a2f9
  • 7. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7 Endpoint : simple-mysql-instance.cu7mcvuvp9hm.us-east- 1.rds.amazonaws.com Username : admin Password : 8qctywlonjw6a2f9 Port : 3306 Initial Database Name: test_database
  • 8. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
  • 9. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
  • 10. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
  • 11. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11 https://github.com/datacharmer/test_db
  • 12. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12 CloudWatch Metrics after loading the data into employees database
  • 13. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13 Import the employees database from public github
  • 14. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14 Take a snapshot and delete the RDS instance.
  • 15. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15 Take a note of the configuration , we will use this to launch the RDS instance again using CloudFormation
  • 16. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
  • 17. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17 CloudFormation Template to launch the RDS Instance The features: 1. The RDS instance can be launched in any of the four US regions N. Virginia, Ohio, N. California, Oregon 2. The RDS can be launched in any of the AZ within the selected Region 3. The deployment mode can be either development, test or production with the following restrictions: 1. For development environment the instance class should be db.t2.micro 2. For test environment the instance class should be db.t2.small 3. For production environment the instance class should be db.t2.large 4. For Test and Production environment the database credentials will be stores in AWS Systems Manager Parameter Store
  • 18. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18 The CloudFormation Template CloudFormation Template available in github location: https://github.com/subhamaybhattacharyya/awsprojects/blob/main/0-mysql-stack-cft.yaml
  • 19. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19 Creating the stack
  • 20. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20 Deploying the stack with the following parameters
  • 21. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
  • 22. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22 As I launched the RDS instance for development environment, the Parameter store will not be created.
  • 23. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23 Now I will delete the stack and then launch it for production environment.
  • 24. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
  • 25. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
  • 26. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26 As I deployed the stack in production, the userid and password got stored in SSM Parameter Store
  • 27. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27 SSM Parameter Store
  • 28. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28 Connect the MySQL database using DBeaver