{"id":91588,"date":"2023-10-31T00:47:07","date_gmt":"2023-10-31T06:17:07","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=91588"},"modified":"2023-10-31T00:47:36","modified_gmt":"2023-10-31T06:17:36","slug":"retrieve-secrets-stored-aws-secrets-manager","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/","title":{"rendered":"How to Retrieve Secrets Stored in AWS Secrets Manager with AWS Lambda Using Hands-on Labs"},"content":{"rendered":"<p><span style=\"font-weight: 400;\"><strong>AWS Secrets Manager<\/strong> serves as a centralized and user-friendly solution for effectively handling access to all your secrets within the AWS cloud environment. <\/span><span style=\"font-weight: 400;\">It simplifies the process of <strong>rotating, maintaining, and recovering<\/strong> essential items such as database credentials and API keys throughout their lifecycle.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A solid grasp of the AWS Secrets Manager concept is a valuable asset on the path to becoming an <\/span><a href=\"https:\/\/www.whizlabs.com\/aws-developer-associate\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">AWS Certified Developer<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this blog, you are going to see how to retrieve the secrets that exist in the AWS Service Manager with the help of AWS Lambda in virtual lab settings.<\/span><\/p>\n<p><em><span style=\"font-weight: 400;\">Let\u2019s dive in!<\/span><\/em><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#What_is_a_Secret_Manager_in_AWS\" >What is a Secret Manager in AWS?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#AWS_Secrets_Manager_Pricing\" >AWS Secrets Manager Pricing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#AWS_Secrets_Manager_Vs_Parameter_Score\" >AWS Secrets Manager Vs Parameter Score<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#What_are_AWS_Lambda_functions\" >What are AWS Lambda functions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#Architecture_Diagram_for_retrieving_secretes_in_AWS_Secrets_Manager_with_AWS_Lambda\" >Architecture Diagram for retrieving secretes in AWS Secrets Manager with AWS Lambda<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#Guidelines_to_retrieve_secrets_stored_in_AWS_Secrets_Manager_with_AWS_Lambda\" >Guidelines to retrieve secrets stored in AWS Secrets Manager with AWS Lambda<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#FAQs\" >FAQs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/retrieve-secrets-stored-aws-secrets-manager\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"What_is_a_Secret_Manager_in_AWS\"><\/span><strong>What is a Secret Manager in AWS?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"https:\/\/www.whizlabs.com\/labs\/how-to-retrieve-secrets-stored-in-aws-secrets-manager-with-aws-lambda\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">AWS Secrets Manager<\/span><\/a><span style=\"font-weight: 400;\"> is a tool that assists in safeguarding confidential information required to access your applications, services, and IT assets. This service makes it simple to regularly change, oversee, and access things like database credentials and API keys securely.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Consider the AWS Secrets Manager example, users and applications can retrieve these secrets using specific APIs, eliminating the necessity of storing sensitive data in plain text within the code. This enhances security and simplifies the management of secret information.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"AWS_Secrets_Manager_Pricing\"><\/span><strong>AWS Secrets Manager Pricing<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AWS Secrets Manager operates on a <\/span><a href=\"https:\/\/aws.amazon.com\/secrets-manager\/pricing\/\" target=\"_blank\" rel=\"nofollow noopener\"><span style=\"font-weight: 400;\">pay-as-you-go basis<\/span><\/a><span style=\"font-weight: 400;\">, where your costs are determined by the number of secrets you store and the API calls you make. The service is transparent, with no hidden fees or requirements for long-term commitments.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Additionally, there is a <strong>30-day<\/strong> AWS Secrets Manager free tier period, which begins when you store your initial secret, allowing you to explore AWS Secrets Manager without any charges. Once the free trial period ends, you will be billed at a rate of $0.40 per secret each month, and $0.05 for every <strong>10,000 API calls<\/strong>.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"AWS_Secrets_Manager_Vs_Parameter_Score\"><\/span><strong>AWS Secrets Manager Vs Parameter Score<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-91665\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info.webp\" alt=\"AWS-Secrets-Manager-Vs-Parameter-Score\" width=\"1200\" height=\"950\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info.webp 1200w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info-300x238.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info-1024x811.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info-768x608.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/AWS-Secrets-Manager-Vs-Parameter-Score-Info-150x119.webp 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_are_AWS_Lambda_functions\"><\/span><strong>What are AWS Lambda functions?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AWS Lambda is a service for creating applications that eliminates the need to manually set up or oversee servers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">AWS Lambda functions frequently require access to sensitive information like certificates, API keys, or database passwords. It&#8217;s crucial to keep these secrets separate from the function code to prevent exposing them in the source code of your application. By using an external secrets manager, you can enhance security and avoid unintentional exposure.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Secrets managers offer benefits like <strong>access control, auditing, and the ability to manage secret rotation<\/strong>. It&#8217;s essential not to store secrets in Lambda configuration environment variables, as these can be seen by anyone with access to view the function&#8217;s configuration settings.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Architecture_Diagram_for_retrieving_secretes_in_AWS_Secrets_Manager_with_AWS_Lambda\"><\/span><strong>Architecture Diagram for retrieving secretes in AWS Secrets Manager with AWS Lambda<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img decoding=\"async\" class=\"size-full wp-image-91668 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab1.webp\" alt=\"\" width=\"611\" height=\"348\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab1.webp 611w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab1-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab1-150x85.webp 150w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">When Lambda invokes your function for the first time, it creates a runtime environment. First, it runs the function&#8217;s initialization code, which includes everything outside of the main handler.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After that, Lambda executes the function&#8217;s handler code, which receives the event payload and processes your application&#8217;s logic. For subsequent invocations, Lambda can reuse the same runtime environment.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To access secrets, you have a couple of options. One way is to retrieve the secret during each function invocation from within your handler code. This ensures you always have the most up-to-date secret, but it can lead to longer execution times and higher costs, as you&#8217;re making a call to the secret manager every time. There may also be additional costs associated with retrieving secrets from the Secret Manager.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Another approach is to retrieve the secret during the function&#8217;s <\/span><b>initialization process.<\/b><span style=\"font-weight: 400;\"> This means you fetch the secret once when the runtime environment is set up, and then you can reuse that secret during subsequent invocations, improving cost efficiency and performance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Serverless Land pattern example demonstrates how to retrieve a secret during the initialization phase using Node.js and top-level await.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If the secret might change between invocations, make sure your handler can verify the secret&#8217;s validity and, if necessary, retrieve the updated secret.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Another method to optimize this process is to use <strong>Lambda extensions<\/strong>. These extensions can <strong>fetch secrets from Secrets Manager<\/strong>, cache them, and automatically refresh the cache based on a specified time interval. The extension retrieves the secret from Secrets Manager before the initialization process and provides it via a local HTTP endpoint.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Your function can then get the secret from this local endpoint, which is faster than direct retrieval from Secrets Manager.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Moreover, you can share the extension among multiple functions, <strong>reducing code duplication<\/strong>. The extension takes care of refreshing the cache at the right intervention to ensure that your function always has access to the most recent secret, which enhances reliability.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Guidelines_to_retrieve_secrets_stored_in_AWS_Secrets_Manager_with_AWS_Lambda\"><\/span><strong>Guidelines to retrieve secrets stored in AWS Secrets Manager with AWS Lambda<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">To retrieve the secrets retained in the AWS Secret Manager with the help of AWS Lambda, you can follow these guided instructions: <\/span><\/p>\n<p><span style=\"font-weight: 400;\">First, you need to access the <\/span><a href=\"https:\/\/www.whizlabs.com\/labs\/library\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Whizlabs Labs library. <\/span><\/a><span style=\"font-weight: 400;\">Click on guided labs on the left side of the lab&#8217;s homepage and enter the lab name in the search lab tab.<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-91669 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab2.webp\" alt=\"\" width=\"614\" height=\"390\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab2.webp 614w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab2-300x191.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab2-150x95.webp 150w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Now, you have found the guided lab for the topic you have entered in the search tab.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-91670 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab3.webp\" alt=\"\" width=\"653\" height=\"348\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab3.webp 653w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab3-300x160.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab3-150x80.webp 150w\" sizes=\"(max-width: 653px) 100vw, 653px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"> By clicking on this lab, you can see the lab overview section. Upon reviewing the lab instructions, you may initiate the lab by selecting the <strong>&#8220;Start Lab&#8221;<\/strong> option located on the right side of the screen.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Tasks involved in this guided lab are as follows:<\/span><\/p>\n<h4><b>Task 1: Sign in to the AWS Management Console<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">Start by accessing the AWS Management Console and set the region to N. Virginia a.You need to ensure that you do not edit or remove the 12-digit Account ID in the AWS Console.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Copy your username and password from the Lab Console, then paste them into the <strong>IAM Username and Password fields<\/strong> in the AWS Console. Afterward, click the &#8216;Sign in&#8217; button.<\/span><\/p>\n<h4><b>Task 2: Create a Lambda Function<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Navigate to the Lambda service.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a new Lambda function named <strong>&#8220;WhizFunction&#8221;<\/strong> with the runtime set to Python 3.8.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Configure the function&#8217;s execution role and use the existing role named <strong>&#8220;Lambda_Secret_Access.&#8221;<\/strong><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Adjust the function&#8217;s timeout to 2 minutes.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91671 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab4.webp\" alt=\"\" width=\"630\" height=\"417\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab4.webp 630w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab4-300x199.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab4-150x99.webp 150w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Adjust the function&#8217;s timeout to 2 minutes.<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-91672 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab5.webp\" alt=\"\" width=\"602\" height=\"476\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab5.webp 602w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab5-300x237.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab5-150x119.webp 150w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h4><b>Task 3: Write a Lambda to Hard-code Access Keys<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Develop a Lambda function that creates a DynamoDB table and inserts items. This code will include hard-coded access keys.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Download the code provided in the lab document.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91673 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab6.webp\" alt=\"\" width=\"588\" height=\"146\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab6.webp 588w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab6-300x74.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab6-150x37.webp 150w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Replace the existing code in the Lambda function <strong>&#8220;WhizFunction&#8221;<\/strong> with the code from <strong>&#8220;Code1&#8221;<\/strong> in the downloaded zip file.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Make sure to change the AWS Access Key and AWS Secret Access Key as instructed in the lab document.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Deploy the code<\/strong> and configure a test event named <strong>&#8220;WhizEvent.&#8221;<\/strong><\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91674 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab7.webp\" alt=\"\" width=\"542\" height=\"87\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab7.webp 542w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab7-300x48.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab7-150x24.webp 150w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Run the test to create a DynamoDB table<\/strong> with i followed by configuration of the test event.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91675 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab8.webp\" alt=\"\" width=\"623\" height=\"546\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab8.webp 623w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab8-300x263.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab8-150x131.webp 150w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now click on the save button and click the test button to execute the code. The DynamoDB table was created successfully with some data fields.<\/span><\/p>\n<h4><b>Task 4: View the DynamoDB Table in the Console<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Access the DynamoDB service by <\/span><span style=\"font-weight: 400;\">searching service in the top left corner.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91676 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab9.webp\" alt=\"\" width=\"637\" height=\"149\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab9.webp 637w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab9-300x70.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab9-150x35.webp 150w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the &#8220;Tables&#8221; section, you will find a table named <strong>&#8220;Whizlabs_stud_table1.&#8221;<\/strong><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can view the items within the table by selecting the table and clicking<strong> &#8220;Explore table items.&#8221;<\/strong><\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91677 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab10.webp\" alt=\"\" width=\"613\" height=\"216\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab10.webp 613w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab10-300x106.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab10-150x53.webp 150w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/p>\n<h4><b>Task 5: Write a Lambda Code to Return Table Data<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Modify the Lambda function <strong>&#8220;WhizFunction&#8221;<\/strong> to write code that retrieves data from the DynamoDB table.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Replace the existing code with the code from &#8220;Code2&#8221; in the lab document, making the necessary AWS Access Key and AWS Secret Access Key changes.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91678 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab11.webp\" alt=\"\" width=\"616\" height=\"542\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab11.webp 616w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab11-300x264.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab11-150x132.webp 150w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Deploy the code and execute a test to enable the Lambda function to return data from the table.<\/span><\/li>\n<\/ul>\n<h4><b>Task 6: Create a Secret Manager to Store Access Keys<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Access AWS Secrets Manager and make sure you are in the N. Virginia Region.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a new secret by specifying it as <strong>&#8220;Other Type of Secret.&#8221;<\/strong><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the Access Key and Secret Access Key as key-value pairs.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91679 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab12.webp\" alt=\"\" width=\"614\" height=\"423\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab12.webp 614w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab12-300x207.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab12-150x103.webp 150w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose the default encryption key.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Name the secret <strong>&#8220;whizsecret&#8221;<\/strong> and proceed with the default settings. Review and store the secret and copy the <strong>Secret ARN for later use<\/strong>.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91680 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab13.webp\" alt=\"\" width=\"622\" height=\"174\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab13.webp 622w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab13-300x84.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab13-150x42.webp 150w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/p>\n<h4><b>Task 7: Write a Lambda to Create DynamoDB Items Using Secrets Manager<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Modify the Lambda function to create a new DynamoDB table and insert items by retrieving access keys from Secrets Manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Replace the code with the code from <strong>&#8220;Code3&#8221;<\/strong> in the lab document, updating the Secret ARN.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91681 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab14.webp\" alt=\"\" width=\"578\" height=\"197\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab14.webp 578w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab14-300x102.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab14-150x51.webp 150w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Deploy the code and run a test to create the DynamoDB table and items securely.<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-91682 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab15.webp\" alt=\"\" width=\"615\" height=\"305\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab15.webp 615w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab15-300x149.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab15-150x74.webp 150w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<p><b>Task 8: View the DynamoDB Table in the Console<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Access the DynamoDB service.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the &#8220;Tables&#8221; section, you will find a table named <strong>&#8220;Whizlabs_stud_table2.&#8221;<\/strong><\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91683 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab16.webp\" alt=\"\" width=\"626\" height=\"151\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab16.webp 626w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab16-300x72.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab16-150x36.webp 150w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To view the items, select the table and click &#8220;Explore table items.&#8221;<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-91685 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab18.webp\" alt=\"\" width=\"621\" height=\"188\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab18.webp 621w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab18-300x91.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab18-150x45.webp 150w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/p>\n<h4><b>Task 9: Write a Lambda Code to View Table Items Using Secrets Manager.<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Modify the Lambda function to write code that fetches table items securely using access and secret keys stored in Secrets Manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Replace the code with the code from<strong> &#8220;Code4&#8221;<\/strong> in the lab document, updating the Secret ARN.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Deploy the code and execute a test to securely access and view table items.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-91686 aligncenter\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab19.webp\" alt=\"\" width=\"600\" height=\"541\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab19.webp 600w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab19-300x271.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/aws-lab19-150x135.webp 150w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4><b>Task 10: Cleanup AWS Resources<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Finally, you can delete the Lambda function &#8220;WhizFunction.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Delete both DynamoDB tables created.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Delete the secret &#8220;whizsecret&#8221; from AWS Secrets Manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Schedule its deletion with a waiting period of 7 days to ensure cleanup.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Finally, end the lab by signing out from the AWS Management console.<\/span><\/p>\n<blockquote><p>Also Read :\u00a0<a href=\"https:\/\/www.whizlabs.com\/blog\/aws-developer-associate-exam-questions\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Free AWS Developer Associate Exam Questions<\/span><\/a><\/p><\/blockquote>\n<h3><span class=\"ez-toc-section\" id=\"FAQs\"><\/span><strong>FAQs<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><b>How much does the AWS Secret Manager parameter store cost?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Parameter Store doesn&#8217;t incur any extra costs. However, there is a maximum limit of 10,000 parameters that you can store.<\/span><\/p>\n<p><b>What can be stored in AWS secrets manager?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS Secrets Manager serves as a versatile solution for storing and managing a variety of sensitive information. This includes but is not limited to database credentials, application credentials, <strong>OAuth tokens, API keys<\/strong>, and various other secrets essential for different aspects of your operations. It&#8217;s important to note that several AWS services seamlessly integrate with Secrets Manager to securely handle and utilize these confidential data points throughout their entire lifecycle.<\/span><\/p>\n<p><b>What is the length limit for the AWS secrets manager?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In the Secrets Manager console, data is stored in the form of a JSON structure, consisting of key\/value pairs that can be easily parsed by a Lambda rotation function. AWS Secret manager limits range from <strong>1 character to 65536 characters<\/strong>. Also, it&#8217;s important to note that the tag key names in Secrets Manager are case-sensitive.<\/span><\/p>\n<p><b>What are the benefits of AWS Secrets Manager?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Secrets Manager provides a <strong>secure way to save and oversee your credentials<\/strong>. It makes the process of modifying or rotating your credentials easy, without requiring any complex code or configuration adjustments. Instead of embedding credentials directly in your code or configuration files, you can opt to store them safely using Secrets Manager.<\/span><\/p>\n<p><b>What is the best practice for an AWS secrets manager?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">You can adhere to the below listed AWS Secrets Manager best practices to carry out the secret storing in a better way:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Make sure that the AWS Secrets Manager service <strong>applies encryption for data<\/strong> at rest by using Key Management Service (KMS) Customer Master Keys (CMKs).\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ensure that <strong>automatic rotation is turned on<\/strong> for your Amazon Secrets Manager secrets.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00a0Also, confirm that the rotation schedule for <strong>Amazon Secrets Manager is set up correctly<\/strong>.<\/span><\/li>\n<\/ul>\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe title=\"How to access AWS Hands-on labs on Whizlabs\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/-BGHr3Q8GMU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Hope this blog equips you with the knowledge and skills to effectively manage secrets within AWS, ensuring the protection of your critical data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Following the above <strong>AWS Secrets Manager tutorial steps<\/strong> can help to access the sensitive information stored in Secret Manager securely with the usage of AWS Lambda.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can also opt for <\/span><a href=\"https:\/\/www.whizlabs.com\/labs\/sandbox\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">AWS Sandbox<\/span><\/a><span style=\"font-weight: 400;\"> to play around with the AWS platform.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS Secrets Manager serves as a centralized and user-friendly solution for effectively handling access to all your secrets within the AWS cloud environment. It simplifies the process of rotating, maintaining, and recovering essential items such as database credentials and API keys throughout their lifecycle.\u00a0 A solid grasp of the AWS Secrets Manager concept is a valuable asset on the path to becoming an AWS Certified Developer. In this blog, you are going to see how to retrieve the secrets that exist in the AWS Service Manager with the help of AWS Lambda in virtual lab settings. Let\u2019s dive in! What [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":91747,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,4870],"tags":[184,2325],"class_list":["post-91588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-certifications","category-hands-on-labs","tag-aws","tag-aws-labs"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",1280,720,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-150x150.webp",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-300x169.webp",300,169,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-768x432.webp",768,432,true],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-1024x576.webp",1024,576,true],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",1280,720,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",1280,720,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",24,14,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",48,27,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",96,54,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",150,84,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI.webp",300,169,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-250x250.webp",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-640x720.webp",640,720,true],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2023\/10\/Hands-on-Labs-for-How-to-Retrieve-Secrets-Stored-in-AWS-Secrets-Manager-FI-150x84.webp",150,84,true]},"uagb_author_info":{"display_name":"Karthikeyani Velusamy","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/karthikeyani-velusamy\/"},"uagb_comment_info":3,"uagb_excerpt":"AWS Secrets Manager serves as a centralized and user-friendly solution for effectively handling access to all your secrets within the AWS cloud environment. It simplifies the process of rotating, maintaining, and recovering essential items such as database credentials and API keys throughout their lifecycle.\u00a0 A solid grasp of the AWS Secrets Manager concept is a&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/91588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=91588"}],"version-history":[{"count":10,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/91588\/revisions"}],"predecessor-version":[{"id":91729,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/91588\/revisions\/91729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/91747"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=91588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=91588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=91588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}