Managing Aurora DB Credentials and API Keys Using Secrets Manager

Managing Aurora DB Credentials and API Keys Using Secrets Manager
Managing Aurora DB Credentials and API Keys Using Secrets Manager

CLOUD LABS

Managing Aurora DB Credentials and API Keys Using Secrets Manager

In this Cloud Lab, you’ll learn to manage your Amazon Aurora DB credentials using the AWS Secrets Manager. You’ll learn how to use secrets for the database and API keys in a practical application. You’ll also learn how to rotate an RDS secret and its effect on the application.

9 Tasks

beginner

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Understanding of AWS Secrets Manager and its use in different services
Hands-on experience configuring and retrieving secrets
Working knowledge of rotating Amazon RDS secret with AWS Secrets Manager
Ability to store API keys as a secret and use them for accessing an API

Technologies
Aurora logoAurora
Secrets Manager
API Gateway logoAPI Gateway
EC2 logoEC2
Cloud Lab Overview

AWS Secrets Manager is a service that allows you to separate your credentials from your application. You don’t need to hardcode your credentials like database passwords, API keys, or application credentials using this service. Instead, you’ll call the Secrets Manager API on runtime and request the secret’s retrieval. You can also enable rotation on your secret to achieve more security.

In this Cloud Lab, you’ll learn how the Amazon RDS uses the Secrets Manager to manage the secrets of the RDS. You will also learn how to create a secret for storing the API key. Finally, you’ll retrieve the secrets by calling the Secrets Manager API in your application.

After completing this Cloud Lab, you’ll have enough knowledge to secure your database credentials and API keys using the AWS Secrets Manager.

The following is a high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Manage Credentials without Secrets Manager
Provision an EC2 Instance
Create an Aurora DB Cluster without Secrets Manager
Set Up a Web Server to Consume API and Connect with Database
3.Manage Credentials with Secrets Manager
Manage the DB Password with Secrets Manager
Create a Secret for API Key
Use the Secrets in an Application Code
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image