<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Richards Okiemute on Medium]]></title>
        <description><![CDATA[Stories by Richards Okiemute on Medium]]></description>
        <link>https://medium.com/@richards-okiemute?source=rss-29fed0d8ab45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QrHxvqFyMxGHL6jftFwPqQ.jpeg</url>
            <title>Stories by Richards Okiemute on Medium</title>
            <link>https://medium.com/@richards-okiemute?source=rss-29fed0d8ab45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:49:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richards-okiemute/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS Microcredentials Are Now Free!!!]]></title>
            <link>https://richards-okiemute.medium.com/aws-microcredentials-are-now-free-bdf2e956f78c?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdf2e956f78c</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 18:04:37 GMT</pubDate>
            <atom:updated>2026-04-28T09:38:40.028Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SeZZM5cDGfBDyn2121-qeg.png" /></figure><p>Good news! AWS just made an announcement three (3) days ago (23rd April 2026) that Microcredentials from AWS are now free, i.e., you no longer require a monthly subscription of $29 to access the Microcredentials.</p><p>This is a massive improvement as it presents a great opportunity to gain hands-on AWS cloud skills, validate the skills through AWS role-based assessments across a broad range of cloud and AI skills, and get certified when you pass the test. The good thing about these Microcredentials is that you experience real-world business scenarios where you use your AWS cloud and AI skills to solve a pressing customer business pain.</p><p>These Microcredentials will enhance your understanding of AWS architectural designs and patterns, configuring, optimizing solutions, and troubleshooting deployment or configuration issues under timed settings. Importantly, there are no guides from AWS, so you have to rely on your knowledge and experience to resolve the issue or implement the customer solution. This is exactly as it happens in the real world, where you translate customers’ business requirements into a technical solution, and finally design, build, and deploy the architecture.</p><p><strong>Available AWS Microcredentials:</strong> As of the time of writing this article (4/26/2026), AWS has four (4) microcredentials available on AWS Skill Builder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*nVBMscIv1jGF8x8OXCC-zA.jpeg" /><figcaption>AWS Microcredentials</figcaption></figure><p>The prerequisites for this microcredential are available on AWS Skill Builder:</p><p><strong>AWS Microcredentials:</strong></p><ol><li><a href="https://skillbuilder.aws/learn/XV3B4RGA8Q/aws-serverless-demonstrated/BYD5SH8R5C"><strong>AWS Serverless Demonstrated</strong></a><strong>:</strong> Here, you will work specifically with AWS Serverless services, further building up your skills and experience with serverless development on AWS. This microcredential will test your skill in configuring AWS Lambda functions, configuring CI/CD pipelines for serverless applications, designing and implementing event-driven systems, and deploying a REST API using AWS API Gateway.</li><li><a href="https://skillbuilder.aws/learn/EM5GTXEQB6/aws-application-networking-demonstrated/GS9ZN623HY"><strong>AWS Application Networking Demonstrated</strong></a><strong>:</strong> This microcredential focuses on networking on AWS. It tests your ability to design, configure, and troubleshoot connectivity and traffic management for AWS workloads. You will apply your hands-on experience with core AWSA networking services such as Amazon VPC, security groups and NACLs, routing, load balancing with Elastic Load Balancing, Amazon Route 53, AWS WAF, and Amazon CloudFront, etc. The aim is to stress test your capability, skills, and experience with building secure, resilient network architectures on AWS.</li><li><a href="https://skillbuilder.aws/learn/UQWKF19DT7/aws-incident-response-demonstrated/VH96JY5RJZ"><strong>AWS Incident Response Demonstrated</strong></a><strong>: </strong>This microcredential is focused on security operations and incident handling on AWS. This microcredential will test your ability to detect, investigate, and recover from security incidents in a time-simulated AWS environment. You will work through business scenarios where you analyze logs and findings, validate impact, and implement remediation across core services such as Amazon GuardDuty, AWS Security Hub, AWS CloudTrail, Amazon CloudWatch, AWS IAM, Amazon VPC, and AWS KMS. I honestly recommend this for those interested in cloud security in AWS. This is a great way to validate hands-on skills and experience with handling and managing real-world incident response on AWS.</li></ol><h3>Conclusion</h3><p>AWS making these microcredentials free is amazing news for AWS cloud professionals. I was on the verge of renewing my $29/month personal subscription specifically for these microcredentials. This announcement means I will save $29 this month. YAY!!!</p><p>If you are looking to validate and showcase your skills, hands-on experience to prospective clients, technical recruiters, etc, then you can jump right into your aligned microcredentials. With AWS microcredentials, you are not just earning a badge of completion; you are earning a badge of trust from validated hands-on experience.</p><p>What are you waiting for? Jump on these microcredentials and strengthen your skills and boost your confidence. You’ve got this!</p><p>Rooting for you as always! Good Success!!</p><p>UPDATE: April 28th, 2026.</p><p>I took the AWS Agentic AI microcredential exam and scored 100/100.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nTIaHX49fRR9ZxrNQrolow.png" /><figcaption>Score Card: 100/100</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gPDRfzsl4j43Dn2huouQw.jpeg" /><figcaption>My Agentic AI Demonstrated badge.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdf2e956f78c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy and Manage AWS Lambda and Step Function using AWS CDK]]></title>
            <link>https://richards-okiemute.medium.com/deploy-and-manage-aws-lambda-and-step-function-using-aws-cdk-361114b1f263?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/361114b1f263</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-serverless-services]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Mon, 16 Feb 2026 08:18:40 GMT</pubDate>
            <atom:updated>2026-02-16T08:18:40.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LTrFDJ3TKndHCnjAeVBOg.png" /><figcaption>AWS Step Function console</figcaption></figure><p>When we talk about deploying and managing infrastructure, the popular tools that come to mind are always Terraform, Pulumi, and/or OpenTofu. While you can use these tools on AWS to deploy and manage your infrastructure, AWS has its native tool or framework for implementing Infrastructure as Code (IaC) called AWS Cloud Development Kit (AWS CDK).</p><p>In this tutorial, we are going to create and manage AWS serverless infrastructure. We will create an AWS Step Function state machine that contains an AWS Lambda Function using AWS CDK.</p><p>To begin, we must first setup our AWS CDK development environment by installing the AWS CDK with the command below. Before you run this command, ensure you already configured your AWS CLI. You can run aws configure to set it up</p><pre>Inpm install -g aws-cdk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*uhFslkq4Lseg-ioEjsPJWg.png" /><figcaption>Installing AWS CDK</figcaption></figure><p>The next step is to setup your AWS CDK project, which will contain the AWS CDK app.</p><p><strong>Set up your AWS CDK project</strong></p><p>Create a new directory for the AWS CDK app with a similar name as below:</p><pre>mkdir aws-step-function &amp;&amp; cd aws-step-function</pre><p>Now, proceed to initialize the app by using the <strong>cdk init</strong> command. Set the desired template (“app”) and programming language to Python</p><pre>cdk init --language python</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*olIUKhkhBmbenXgk2a6S6A.png" /><figcaption>Initializing the AWS CDK app and Python language</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2252tsj1xdiLBlLMoNOwg.png" /><figcaption>Initialization All done!</figcaption></figure><p>After the project is initialized, activate the project’s virtual environment and install the AWS CDK’s baseline dependencies.</p><p>First use the command below to activate the Python virtual environment:</p><pre>source .venv/bin/activate</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87iV77VQtXfJ9GICz95FKg.png" /><figcaption>Activating Python virtual environment</figcaption></figure><p>Review the content of the <strong>requirements.txt</strong> file in the directory</p><pre>cat requirements.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gB7Mh2wCa_EBfeV3KHB08g.png" /><figcaption>requirements.txt</figcaption></figure><p>Next install the dependencies in the requirements.txt file using the command below:</p><pre>python -m pip install -r requirements.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xksihHbSyKsIIhuv_gr1Q.png" /><figcaption>Installing dependencies</figcaption></figure><p>Next, we will create a state machine using AWS CDK</p><p>Use AWS CDK to create a state machine: I will breakdown the individual codes that the define the AWS Lambda function and the AWS Step Functions state machine Define a Lambda Function in Python:</p><pre>cdk_function = lambda_.Function(<br>self, &quot;CdkLambdaFunction&quot;,<br> code=lambda_.Code.from_inline(&quot;&quot;&quot;<br> exports.handler = (event, context, callback) =&gt; {<br> callback(null, &quot;Deployed with AWS CDK!&quot;);<br> }&quot;&quot;&quot;),<br> runtime=lambda_.Runtime.NODEJS_22_X,<br> handler=&quot;index.handler&quot;,<br> timeout=Duration.seconds(30))</pre><p>In the code above, we defined a lambda function with the name “<strong>CdkLambdaFunction</strong>” We also defined other attributes of the function such as the timeout in seconds, the Nodejs runtime, and the function’s handler.</p><p>Next we will create a state machine (Step function):</p><p><strong>Create a State Machine (AWS Step Function):</strong></p><p>We will create an AWS Step Function with 2 states: ● A Lambda function task with Task workflow state and ● A Succeed workflow state The Task state invokes the Lambda function “CdkLambdaFunction.” This Task is the starting point of the entire Step function workflow. The success state is added to the state machine using the Task state’s next() method.</p><pre>cdk_step_function = sfn.StateMachine(<br> self, &quot;CdkStepFunction&quot;,<br> definition=tasks.LambdaInvoke(<br> self, &quot;InvokeLambdaTask&quot;,<br> lambda_function=cdk_function)<br> .next(sfn.Succeed(self, &quot;DeployedUsingCDK&quot;)))</pre><p><strong>Build and deploy the AWS CDK app</strong></p><p>In the newly created AWS CDK project, edit the file that contains the stack’s definition. You just need to update the stack using the code for the Lambda function and the Step Functions state machine we created before. In your AWS CDK project directory, open the file with <strong>*_stack.py</strong>. For example mine is <strong>aws_step_function_stack.py</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9weEU7Ncxp_d6-21FlUU_Q.png" /><figcaption>CDK app’s stack.py file</figcaption></figure><p>You can open the file with your favorite code editor. I will use Visual Studio Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_yoOgJ-tRloVXnw5iFw8g.png" /></figure><p>Update the file with the code below:</p><pre>from aws_cdk import ( <br>    Duration,<br>    Stack,<br>    aws_stepfunctions as sfn,<br>    aws_stepfunctions_tasks as tasks,<br>    aws_lambda as lambda_<br>)<br><br>from constructs import Construct<br><br><br>class CDKStepStack(Stack):<br><br>    def __init__(self, scope: Construct, construct_id: str, **kwargs) -&gt; None: <br>        super().__init__(scope, construct_id, **kwargs)<br><br>        cdk_function = lambda_.Function(<br>            self, &quot;CdkLambdaFunction&quot;,<br>                    code=lambda_.Code.from_inline(&quot;&quot;&quot;<br>                        exports.handler = async (event) =&gt; {<br>                            return &quot;Deployed with AWS CDK!&quot;;<br>                        };<br>                        &quot;&quot;&quot;),<br>                        runtime=lambda_.Runtime.NODEJS_22_X,<br>                        handler=&quot;index.handler&quot;,<br>                        timeout=Duration.seconds(30))<br><br><br>        cdk_step_function = sfn.StateMachine(<br>            self, &quot;CdkStepFunction&quot;,<br>            definition_body=sfn.DefinitionBody.from_chainable(<br>                tasks.LambdaInvoke(<br>                    self, &quot;InvokeLambdaTask&quot;,<br>                    lambda_function=cdk_function<br>                ).next(sfn.Succeed(self, &quot;DeployedUsingCDK&quot;))<br>            )<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ot9abp8Swlt2dQ9B0z5QLg.png" /><figcaption>Updated aws_step_function_stack.py</figcaption></figure><p>Save the source file, and then run the <strong>cdk synth</strong> command in the app’s main directory.</p><p>AWS CDK runs the app and synthesizes a CloudFormation template from it. AWS CDK then displays the template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIK3ZgyUD9ZNTBeKVIF26A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqTT1z9qoJbtSeTbFi99kQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T8SoJAQE6BAOyxBoii4gkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTbHAeJMwNkpjln1wI__Xg.png" /></figure><p>Next we will prepare the AWS environment by using AWS CDK bootstrap command. This will create the CDK core resources in our AWS account</p><pre>cdk bootstrap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_TQ3BwEx7dacU1bZT08Xg.png" /><figcaption>cdk bootstrap</figcaption></figure><p>Resources created using the cdk bootstrap command:</p><ul><li>SSM Parameter <em>(CdkBootstrapVersion)</em></li><li>IAM CloudFormation Execution Role <em>(CloudFormationExecutionRole)</em></li><li>IAM Deployment Action Role <em>(DeploymentActionRole)</em></li><li>IAM File Publishing Role <em>(FilePublishingRole)</em></li><li>IAM Image Publishing Role <em>(ImagePublishingRole)</em></li><li>IAM Lookup Role <em>(LookupRole)</em></li><li>Amazon ECR Repository <em>(ContainerAssetsRepository)</em></li><li>IAM Managed Policies <em>(FilePublishingRoleDefaultPolicy, ImagePublishingRoleDefaultPolicy)</em></li><li>S3 Bucket Policy <em>(StagingBucketPolicy)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vK_eh8VWls2WwXMIdbblw.png" /><figcaption>Cdk core resources created by CloudFormation using cdk bootstrap</figcaption></figure><p>We will use the AWS CDK command below to deploy the Lambda function and Step Functions state machine to our AWS account:</p><pre>cdk deploy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T70l2Gku1QYtGaS5Q02G8g.png" /><figcaption>cdk deploy</figcaption></figure><p>You will be prompt to approve the deployment, just type “y” and press ENTER to approve.</p><p>With the deployment approved, cdk will proceed to deploy the lambda function and AWS Step Function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LK_MMC-5Mxy6STDTTn3Iow.png" /><figcaption>cdk deployment complete</figcaption></figure><p>The aws resources are deploy to the stack <strong>CDKStepStack</strong></p><p>Let’s navigate to our AWS Console to review the <strong>CDKStepStack</strong> and the resources created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Vxy10jx7t7j7kUGpH6whw.png" /><figcaption>Resources created by the CDKStepStack</figcaption></figure><p>Navigate to AWS Lambda to review the lambda function created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eluvkN2Jj9FZiyRxIrBaxw.png" /><figcaption>Lambda function created by the CDKStepStack</figcaption></figure><p>Also, navigate to AWS Step Function to review the step function created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTP5a6HP4X7Ismf_aBXEuQ.png" /><figcaption>AWS Step Function created by the CDKStepStack</figcaption></figure><p>Click the <strong>CdkStepFunction5E205E65.. </strong>to review the step function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxipIynDrOrztuZc_jk8Sg.png" /><figcaption>Review the Step Function</figcaption></figure><p>Click on <strong>Edit </strong>to view the workflow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cvs5wQszB1PYRNSToOwzVQ.png" /><figcaption>View the AWS Step Function containing AWS Lambda</figcaption></figure><p><strong>Start the state machine execution</strong></p><p>On the Step function page, click on <strong>Execute.</strong> Provide a custom name e.g. “<strong>First-Execution</strong>” to override the generated step function execution name then click on “<strong>Start Execution</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-_ebV3Nnr5mS36_li_JVg.png" /><figcaption>First execution of the Step Function</figcaption></figure><p><strong>Step function executed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiYdOMFpbDAW2R4Iua3YiA.png" /><figcaption>Step Function executed</figcaption></figure><p>The step function above shows the step execution in graphical view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F20b7VTkFc1DALIsHzqSBg.png" /><figcaption>The step function execution in table view.</figcaption></figure><p>The step function above shows the step execution in table view.</p><p>We have successfully deployed an AWS State Function that triggers a Lambda function using AWS CDK.</p><p><strong>Clean Up:</strong></p><p>In the CDK app’s main directory, run the <strong>cdk destroy</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NmFK4BUHvT2CjjoETwzw0A.png" /><figcaption>cdk destroy</figcaption></figure><p>Check CloudFormation on the AWS Console to confirm if the stack and its resources have been deleted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNkO9ovCOr8mcXHRGb01SQ.png" /><figcaption>cdk resources deleted</figcaption></figure><p>Awesome! We have successfully deleted the stack and its resources using cdk destroy.</p><p>In conclusion, we have just walked through how to deploy and manage resources using AWS CDK</p><p>mkdir aws-step-function &amp;&amp; cd aws-step-function</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=361114b1f263" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Serverless GenAI Assistant with AWS Bedrock, Lambda, SES, and EventBridge]]></title>
            <link>https://richards-okiemute.medium.com/building-a-serverless-genai-assistant-with-aws-bedrock-lambda-ses-and-eventbridge-89a7d887996f?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/89a7d887996f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 21:37:49 GMT</pubDate>
            <atom:updated>2026-01-31T08:07:54.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMr3grx-KV_qxQoBmOkAwQ.png" /><figcaption>Solution Architecture</figcaption></figure><p>Artificial Intelligence is more powerful with serverless technology where you don’t have to bother about infrastructure; everything works together with ease. All you have to do is<strong><em> “Serverless Integration!”</em></strong></p><p>Now, we are going to explore a scenario where we will integrate AWS Generative AI service; AWS Bedrock and other AWS Serverless solutions such as AWS Lambda, AWS Simple Email Services (SES), Route 53, and Amazon EventBridge to design a solution that achieves the objective below:</p><p><strong>Use Case:</strong></p><p>Let’s say you have a very large organization and you recently employed 500 entry-level cloud engineers. Your aim is to provide them with daily lessons on AWS Cloud Operations Engineering and AWS Generative AI Engineering. You want them to have access to specially curated AWS cloud lessons on these topics every business day at exactly 8:00 AM.</p><p><strong>Requirements:</strong></p><p>The organization wants this solution to be fully automated and daily cloud engineering lessons all specially recommended by AWS Gen AI. The solution should require no maintenance. It should extremely cost effective.</p><p><strong>Solution:</strong></p><p>To meet the requirements above, I designed and built a solution entirely running on AWS Serverless services using the stack below:</p><ul><li><strong>AWS Lambda: </strong>Runs the application code</li><li><strong>AWS Bedrock:</strong> Provides Generative Model for our solution. <strong><em>Anthropic Claude-Sonnet 3.7</em></strong> was used in this solution.</li><li><strong>AWS SES:</strong> Used to send emails to recipients.</li><li><strong>Amazon EventBridge:</strong> Used to create a daily event scheduler to trigger AWS Lambda.</li><li><strong>Route 53:</strong> Used to created a Hosted Zone for the sending domain.</li></ul><p><strong>Prerequisites:</strong></p><ul><li>You need an AWS account with access to Lambda, Bedrock, EventBridge, SES, and Route 53</li><li>A domain name: I used my domain names registered with GoDaddy and Nameservers set to Route 53.</li><li>A test recipient Mailbox.</li></ul><p>Note: If you do not have a domain name, you can create your SES Identities using email address.</p><p>Now let’s move on to the main process of developing our serverless solutions.</p><p><strong>Step 1: DNS Services Integration with AWS SES</strong></p><p>I am going to use my dedicated development domain “<strong><em>okrichards-app.online” </em></strong>for the integration<strong>. </strong>I already have AWS Route 53 managing the DNS for this domain with <a href="http://godaddy.com/">GoDaddy.com</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vt7J_QnCvPbo-mGzBxw6bw.png" /><figcaption>My domain nameservers set to Route 53</figcaption></figure><p>Navigate to AWS SES and click on identity. Create an Identity using either your email or Domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzBHCHGaMIuCtWCkv_cYYA.png" /><figcaption>Create SES domain identity</figcaption></figure><p>Ensure you create a configuration set or use an existing configuration set for easy setup.</p><p>Complete the settings as below then click on create identity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mz5TNqfTlcRj_XCRIKhfuA.png" /><figcaption>SES DKIM configuration</figcaption></figure><p>The AWS SES Identity is successfully created as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3ceyFUES-UGbcXvs8gj5g.png" /><figcaption>My domain SES identity successfully created</figcaption></figure><p>Ensure you navigate to the <strong>DomainKeys Identified Mail (DKIM) </strong>section and click <strong>Publish DNS records. </strong>This will help publish your domain records sets to Route 53</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFZEmHMzOioDvbScjHSjTw.png" /><figcaption>SES CNAME record sets</figcaption></figure><p>Alternatively, you can manually setup your CNAME records on AWS Route 53.</p><p>Now, navigate to AWS Route 53 to review your domain name hosted zone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6C5_FP5u26S7AQZ9iorkDQ.png" /><figcaption>Hosted zone name in Route53 for my domain</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idUHu5oiro9ae_hAOMgqbg.png" /><figcaption>Reviewing DNS records in Route53</figcaption></figure><p>Once the Easy DKIM setup is completed successfully, you will receive an email from AWS confirming that your DKIM setup was successful (see email below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4viv7sHAZjxIT57i5OgvwQ.png" /><figcaption>A confirmation message that my DKIM Setup was successful.</figcaption></figure><p><strong>Step 2: Create and verify your recipient email</strong></p><p>Create a new email identity on AWS SES using your gmail or yahoomail (your personal email or test email)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esU1gH0PpfxEcm4C9xwI-w.png" /><figcaption>SES recipient email identity</figcaption></figure><p>Review the email identity created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WuP4ZKaYircvOBnx-MmQQ.png" /></figure><p><strong>Step 3:</strong> <strong>Enable Claude model access in Bedrock and copy model id</strong></p><p>Navigate to the Amazon Bedrock console.</p><p>Navigate to <a href="https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#inference-profiles"><strong>Cross-region inference</strong></a> under <strong>Infer </strong>then search for your desired model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7WMydkj1YTBthFdlr2JyLQ.png" /><figcaption>AWS Bedrock Anthropic Claude Inference Profile</figcaption></figure><p>I will be using Anthropic’s Claude 3.7 Sonnet.</p><p>Copy the<strong> Inference Profile ID: <em>us.anthropic.claude-3–7-sonnet-20250219-v1:0</em></strong></p><p>We will use this ID later in our Lambda function to make inferences from the model.</p><p><strong>Step 4: Create the Lambda function</strong></p><p>Now, we are getting to the most exciting part of our project. This is where we introduce AWS Lambda Serverless Function. We will use AWS Lambda to execute our code using an event driven mechanism.</p><p>Let’s proceed to the AWS Lambda console and create a function called <strong><em>“ai-daily-cloud-lessons-lambda” </em></strong><em>You don’t need to say it! That’s a horrible name, right?</em> 😂😂😂 You can name your lambda function any name you like.</p><p>We are going to use <strong>Python 3.14</strong> as our runtime. Feel free to use any runtime and version you are most comfortable with.</p><p><strong>Note</strong>: <em>As at the time of this project, Python 3.14 is the latest version available in AWS Lambda runtime.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUQ-bn8fz7ske7ijc65TGw.png" /><figcaption>Creating AWS Lambda function</figcaption></figure><p>Now the <strong><em>ai-daily-cloud-lessons-lambda </em></strong><em>function is created as seen below:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1109rilE7wl9IT3ETPr1uQ.png" /><figcaption><em>ai-daily-cloud-lessons-lambda function</em></figcaption></figure><p>We will proceed to configuring the lambda function by following the steps below:</p><p>In the our lambda function, navigate to:</p><p><strong>Configuration → Environment variables </strong>and add the following environment variables:</p><p><strong>Environment variables:</strong></p><pre>SENDER_EMAIL = daily-cloud-lessons@okrichards-app.online <br>(or any name you like on your domain)<br></pre><pre>RECIPIENT_EMAIL = richards.okiemute@gmail.com<br>(this will be the recipient you want send these daily lessons to)<br></pre><pre>BEDROCK_MODEL_ID = us.anthropic.claude-3–7-sonnet-20250219-v1:0<br>(the inference profile id you copied from the AWS Bedrock infer blade).</pre><p>Input these environment as shown in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VF22dNxT-WWH8vNHw9esiw.png" /><figcaption>Lambda environment variables</figcaption></figure><p>Now, you need to increase the AWS Lambda function<strong> timeout from 3 secs to 15 or 30 secs.</strong> This will give the lambda function more time to process the code, contact and retrieve the Gen AI response from AWS Bedrock without timing out.</p><p>Navigate to <strong>Configuration → General configuration </strong>and increase the timeout to 30 sec and click on save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIsSwGqX7dKledHhtrSWEw.png" /><figcaption>Increase Lambda timeout to 30 sec</figcaption></figure><p>The next important step is to provide the right permissions to our AWS Lambda function to access the resources needed to perform its function successfully without encountering any deny permission error.</p><p>In the Lambda function, navigate to <strong>Configuration → Permission </strong>and then click the role name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvPuMGHxPmaas5A7X7nS8w.png" /><figcaption>Lambda execute role</figcaption></figure><p>This will take you to the AWS IAM console where you can add the required permission to the AWS Lambda role</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRTn5RoRuZHeol0GTz2wSA.png" /><figcaption>Add IAM inline policy to the Lambda execution role</figcaption></figure><p>Click <strong>permission</strong>:</p><p>Add this inline policy using the JSON tab:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: [<br>        &quot;ses:SendEmail&quot;,<br>        &quot;ses:SendRawEmail&quot;<br>      ],<br>      &quot;Resource&quot;: &quot;arn-of-your-lambdafunction&quot;<br>    },<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: [<br>        &quot;bedrock:InvokeModel&quot;<br>      ],<br>      &quot;Resource&quot;: &quot;arn-of-your-lambdafunction&quot;<br>    }<br>  ]<br>}<br><br></pre><p>Save the policy with a good new e.g. <em>lambda-policy-for-bedrock </em>then create your policy, review, and create:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHblMuXTg1YHfQC6Zp4UrA.png" /><figcaption>Policy details</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMn6amR7ERFEN7TTd3eqbw.png" /><figcaption>Policy added to the AWS Lambda role.</figcaption></figure><p>Navigate to back to your AWS Lambda function page and use the code below to build the app logic:</p><pre>import boto3<br>import os<br>import json<br><br>ses = boto3.client(&quot;ses&quot;)<br>bedrock = boto3.client(&quot;bedrock-runtime&quot;)<br><br># Wrapping the model prompt in a python function<br><br>def generate_lessons():<br>    prompt_text = &quot;&quot;&quot;<br>    Generate concise daily lessons for cloud engineers who are beginners.<br>    Make the lessons very concise and impactful<br>    The lessons should be presented with importance of each lecture.<br>    Focus on AWS contents for Cloud Operations Engineer and Generative AI Developers <br>    Return plain text and reference AWS links only.<br>    Your role: Veteran AWS Cloud Engineering and AI Engineering Engineer<br>    Your expertise: You excel at teaching and recommending AWS <br>    cloud engineering lessons for professional development.<br>    Presentation: The lessons should be presented in an AWS style and theme.<br>    &quot;&quot;&quot;<br><br>    model_id = os.environ[&quot;BEDROCK_MODEL_ID&quot;]<br>    <br>    # Lambda request body<br>    request_body = {<br>        &quot;anthropic_version&quot;: &quot;bedrock-2023-05-31&quot;,<br>        &quot;max_tokens&quot;: 200,<br>        &quot;temperature&quot;: 0.4, #you can increase the temperation to improve<br>        &quot;messages&quot;: [       #the creativity of the model.<br>            {<br>                &quot;role&quot;: &quot;user&quot;,<br>                &quot;content&quot;: [<br>                    {<br>                        &quot;type&quot;: &quot;text&quot;,<br>                        &quot;text&quot;: prompt_text<br>                    }<br>                ]<br>            }<br>        ]<br>    }<br><br>    response = bedrock.invoke_model(<br>        modelId=model_id,<br>        body=json.dumps(request_body),<br>        contentType=&quot;application/json&quot;,<br>        accept=&quot;application/json&quot;<br>    )<br><br>    result = json.loads(response[&quot;body&quot;].read())<br>    content = result[&quot;content&quot;][0][&quot;text&quot;]<br>    return content.strip()<br><br># Lambda handler with the sender and recipient email.<br>def lambda_handler(event, context):<br>    sender = os.environ[&quot;SENDER_EMAIL&quot;]<br>    recipient = os.environ[&quot;RECIPIENT_EMAIL&quot;]<br><br>    lessons = generate_lessons()<br><br>    subject = &quot;Your Daily Cloud Engineering Lessons&quot;<br>    body = (<br>        &quot;Hi,\n\n&quot;<br>        &quot;Here is your AI generated Cloud Engineering Lessons for today:\n\n&quot;<br>        + lessons<br>        + &quot;\n\nHave a productive day.\n&quot;<br>        + &quot;Sent automatically from your AWS serverless assistant.&quot;<br>    )<br>   <br><br>#Simple Email Services<br>    ses.send_email(<br>        Source=sender,<br>        Destination={&quot;ToAddresses&quot;: [recipient]},<br>        Message={<br>            &quot;Subject&quot;: {&quot;Data&quot;: subject},<br>            &quot;Body&quot;: {&quot;Text&quot;: {&quot;Data&quot;: body}}<br>        }<br>    )<br><br>    return {&quot;status&quot;: &quot;Email sent&quot;}</pre><p>After pasting your code into the AWS Lambda code editor, just proceed to deploy the code before testing it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtdTsLrGJwHVphX6pmtstw.png" /><figcaption>Deploy Lambda code</figcaption></figure><p>Now proceed to test the AWS lambda function by creating an empty test event.</p><p>Click on Test</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/91/1*toeMnTnKaUA7jHAH6vK4Ew.png" /></figure><p>and create an empty test event using {} as the body of the event, save and test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*uTkkW7B60T2nsyh8AQt4oA.png" /><figcaption>Test events for Lambda</figcaption></figure><p>Our AWS lambda execution was successful as seen in the execution log below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1CINq_LIl71QFtuwJa_dA.png" /><figcaption>Lambda executed successfully</figcaption></figure><p>Now I will proceed to check my email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXWyg0FA58G8CxKNYEnSUA.png" /><figcaption>Cloud engineering lesson email received from <strong><em>daily-cloud-lessons</em></strong></figcaption></figure><p>Review the content of the email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*By8I2-XtYizZ8OHMOhnMMw.png" /><figcaption>Email content</figcaption></figure><p>We can see that our solution is working perfectly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*9d6PqmTeyT4SnDGF.gif" /><figcaption>Celebration!!!!</figcaption></figure><p>We need to create a schedule to ensure that these emails are sent daily.</p><p><strong>Step 6: Add the daily schedule using AWS EventBridge.</strong></p><p>Navigate to <strong>Amazon EventBridge → Schedules </strong>then<strong> Create schedule</strong> for our lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Si_8FsWbDPYU5RPmcCGykQ.png" /><figcaption>Configure Amazon EventBridge Schedules</figcaption></figure><p>Now create a daily schedule using the configuration below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DmHLC0Rn5BwNt7nurna-9Q.png" /><figcaption>Amazon EventBridge Cron Schedule</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEAaUowaKJn2XC-5NUZtBg.png" /><figcaption>Schedule settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BdjZHIFB1w_PmwH2zIAOA.png" /><figcaption>Setting schedule target</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Si_8FsWbDPYU5RPmcCGykQ.png" /><figcaption>Schedule settings cont.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpZqKREAYljF-jONRdepVQ.png" /><figcaption>Amazon EventBridge permission</figcaption></figure><p>Move to the review page and create the schedule</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kEybzgqzCP_XZJfrpFy7NA.png" /><figcaption>Create Event Schedule</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WWpZ1HtwpbHcMY5YVIawA.png" /><figcaption>Amazon EventBridge schedule finalized</figcaption></figure><p>This solution will keep sending Cloud Engineering contents to new employees every morning at 8:00 AM from Monday to Friday, December 2025.</p><p>Congratulations for developing this wonderful solution using AWS services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*K7oSodUgJhRQ0BaU.gif" /><figcaption>Celebrate your good work</figcaption></figure><p>Please feel free to leave your claps and share this project if you find it useful. Thank you for your time.</p><p><strong>Post Project Delivery:</strong></p><p>First Automated Email Received on <strong>Tuesday 2nd December, 2025 @ 8:00 AM</strong> (as scheduled on Amazon Event Bridge):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H78m4q0gl2IwWTZstnRVsw.png" /><figcaption>Your Daily Cloud Lessons delivered from daily-cloud-lessons@okrichards-app.online</figcaption></figure><p>Let’s view the email content:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIe4ZMm2CCXzQRqKP7E9ag.png" /><figcaption>Email content with AWS Cloud engineering tutorial links</figcaption></figure><p>We can see that this service is completely serverless and running on it’s own without any maintenance. We can customized the prompts to make the email content more advanced and rich. But this is just a concept to show what we can achieve with AWS Generative AI and Serverless technologies.</p><p>I will post tomorrows update as well.</p><p>Second Automated Email Received on <strong>Wednesday 3rd December, 2025 @ 8:00 AM</strong> (as scheduled on Amazon Event Bridge):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBOqg9V2Zm0jVLzzs3muNg.png" /><figcaption>Second Email Received</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3gzkzo08Qjpu1TE-EGx8g.png" /><figcaption>Second Email Content Received on <strong>Wednesday 3rd December, 2025 @ 8:00 AM</strong></figcaption></figure><p>Today’s schedule was successfully delivered by Amazon SES + Lambda + EventBridge as seen in my email box.</p><p>Third Automated Email Received on <strong>Thursday 4th December, 2025 @ 8:00 AM</strong> (as scheduled on Amazon Event Bridge):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k45o61-QnG9Lg987J5V6xA.png" /><figcaption>Third Email Received</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7OexBXBGHjfe8lRbEkZ3w.png" /><figcaption>Third Email Content Received on <strong>Thursday 4th December, 2025 @ 8:00 AM</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89a7d887996f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Become the Next AWS Generative AI Professional Developer]]></title>
            <link>https://richards-okiemute.medium.com/become-the-next-aws-generative-ai-professional-developer-2793639c4f20?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/2793639c4f20</guid>
            <category><![CDATA[aws-machine-learning]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[ai-developer]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 07:14:00 GMT</pubDate>
            <atom:updated>2025-11-19T07:14:00.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LE-SPBrrd4UDee_rG0U-tA.png" /><figcaption>AWS Generative AI professional Certificate</figcaption></figure><p>I am certain you need no special announcement or breaking news to know that we are in the AI-driven era, where almost everything is integrated with Artificial Intelligence (AI). From Cloud Operations (CloudOps), Development and Operations (DevOps), Marketing, Branding, Communications, and down to even Analytics, AI has completely taken center stage and this is not going to change anytime soon.</p><p>There are still a myriad of professionals out there who have not come to the reality and terms of things today; AI is a force that we must cooperate with, a tool that we must master to enhance our workflow. The earlier these sets of professionals come to terms with this bittersweet reality, the better it will become for their career. Interestingly, I am confident that you are not scared of AI, rather, you understand the benefit and opportunities that exists within the boundaries of AI, otherwise you would not be reading this article about AI. Guess what? I am happy you are aligned with the realities of the day and ready to position yourself properly for the opportunities that lies within the new AI-driven workplace.</p><p>Let’s dive right into the main juice of the day <strong>“Becoming an AWS Generative AI Professional Developer.” </strong>Today is the most exciting time to kickstart your journey to becoming an AWS Generative AI Professional Developer because Amazon Web Services (AWS) just released the new most in demand and highly sort after certification path: <a href="https://aws.amazon.com/certification/certified-generative-ai-developer-professional/"><strong>AWS Certified Generative AI Developer — Professional.</strong></a><strong> </strong>Interestingly, this certification path was launched yesterday and the beta registration is open; participating in this certification path will give you an opportunity to be recognized as AWS Generative AI Developer Professional Early Adopter via a special Early Adopter badge issued upon passing. You have to be hurry up and register for the program to ensure you are among the first 5,000 exam participant to pass this exam. This recognition will give a very prestigious lift to your developer profile.</p><p>Believe me, this is absolutely the best time to jump on the AI train and cement your place as an authority. Since this program is still beta and fresh, you have no disadvantage, as everyone on this program is currently on a fresh starts, there are not experts yet (of course, except the major AWS Generative AI content creators at Amazon), besides that, everyone of us who are going to participate in this program will start from ground zero. So you don’t have any catching up to do. It is 100% self-paced and you can learn with the <a href="https://skillbuilder.aws/"><strong>AWS Skill Builder</strong></a> resources.</p><p>Now let’s get to the <em>nitty-gritty</em> of the <strong>AWS Certified Generative AI Developer — Professional </strong>certification. We are going to walk through few important aspects of this certification you need to be aware of to get you fully started.</p><p><strong>Who is the exam and certification path for?<br></strong>Personally, I would say if you are interested in becoming a Generative AI Developer and you are passionate about the AWS cloud ecosystem, this exam and certification path is 100% for you. The only requirement is that you have significant technical experience on AWS such as hands-on experience with AWS compute, storage, and networking services, understanding AWS architecture best practices, security and IAM, deployment and Infrastructure as Code (IaC) using either CloudFormation or Terraform, hands-on with AWS monitoring and observability, and general knowledge of AWS cost and optimization principles — AI solutions are quite expensive without using the right cost optimization strategies. So costing and budgeting is very important.</p><p><strong>AWS Certification Requirements for the AWS Certified Generative AI Developer — Professional:<br></strong>Most AWS Professional certification exams require other associate level certifications prior to preparing for them. However, the <strong>AWS Certified Generative AI Developer — Professional </strong>does not have any prior certification requirement. That being said, you are expected to have technical experience across a broad set of AWS technologies to help you gain the right foundations to become an AWS Generative AI developer. Certainly, passing other certifications will definitely be a plus as it positions you to properly understand the full AWS Generative AI Developer ecosystem. Not having a prior certification is not a blocker; it is huge addition and springboard towards your successful AWS Generative AI Developer Professional journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*aOcOLRY2Dzlsf9Pi.png" /><figcaption>AWS Certified Generative AI Developer — Professional</figcaption></figure><p><strong>Benefits of the AWS Certified Generative AI Developer — Professional certification?<br></strong>There are countless benefits of becoming an <strong>AWS Certified Generative AI Developer — Professional. </strong>In an AI-driven world, what other type of developer would you want to become? It is an important question of time and skills shift and adapting to the realities of the workforce trend and development.</p><p>Let us make a broad and important reflection of the last couple of months. One striking and scaring data to look at is <strong>“Layoffs.” </strong>Layoffs is not a friendly water to step on, but being an optimistic yet pragmatic realist, I have to crunch the details carefully. Taking a look at the data, <a href="https://guardian.ng/technology/166000-tech-jobs-lost-to-economic-uncertainty-ai-in-eight-months/#:~:text=Global%20technology%20sector%20may%20have,the%20year%2C%E2%80%9D%20it%20stated."><em>the recent wave of tech layoffs attributed to a shift towards AI edges overs</em><strong><em> 166,000 </em></strong><em>from since early 2025 and it is predicted to hit over </em><strong><em>236,000 </em></strong><em>by December 2025</em></a><em>.</em></p><p>So here is my advice in picture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4VlitI2Lo6snaqB3dfu7g.png" /><figcaption>The Power of being first.</figcaption></figure><p>Since the shift towards AI is causing a massive raging ripple of layoffs across different industries, it would be a smart decision to start developing the skills required to be the AI solutions to automate the tasks of yesterday and engineer the solutions of tomorrow; securing your place in this raging AI-driven workplace.</p><p>In a nutshell, the benefits of becoming an <strong>AWS Certified Generative AI Developer — Professional </strong>is that prepares you a better landing in 2026 and if you are out there seeking for a high paying remote role, this is your opportunity to prepare and launch into 2026 readily equipped and certified for the AI-driven workplace of tomorrow.</p><p>After reading to this point, I think you should be ready to get started on this track. First you can start by familiarizing with the <strong>AWS Certified Generative AI Developer — Professional </strong>by reading through the official AWS training and certification webpage by clicking this <a href="https://aws.amazon.com/blogs/training-and-certification/aws-generative-ai-for-developers-professional-certificate/"><strong><em>link</em></strong></a>. Also, click <a href="https://aws.amazon.com/certification/certified-generative-ai-developer-professional/"><strong><em>here</em></strong></a><strong><em> </em></strong>for the AWS official exam overview page.</p><p>Finally, I wish you an amazing new 2026 ahead with new skills in cloud technologies and Artificial Intelligence. Remember<em> “Never Underestimate The Power of Being FIRST — Get into the circle of the “Early Adopter”</em></p><p>Success in your journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2793639c4f20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Virtual Private Cloud (VPC) for RichardsCorp Using AWS CloudFormation]]></title>
            <link>https://richards-okiemute.medium.com/deploying-a-virtual-private-cloud-vpc-for-richardscorp-using-aws-cloudformation-bb8ccae671ca?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb8ccae671ca</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[vpc]]></category>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[cloudformation]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 08:19:23 GMT</pubDate>
            <atom:updated>2024-09-10T09:32:48.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJkPGk-UIA39z5KO8BqY-w.jpeg" /><figcaption>RichardsCorpVPC created with AWS CloudFormation</figcaption></figure><p>The networking architecture is the most important fundamental component of any application system. The network architecture determines how the applications hosted in the cloud communicates with the internet and various cloud services.</p><p>In this project, we will leverage the power of AWS Infrastructure as Code (IaC) service; AWS CloudFormation to deploy a Virtual Private Cloud (VPC) architecture for <strong>RichardsCorp</strong>. This project demonstrates how to automate the creation of essential network components, including VPC, subnets, route tables, and an Internet Gateway.</p><p>AWS CloudFormation is a service that helps you model and set up your AWS resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and CloudFormation takes care of provisioning and configuring those resources for you. You don’t need to individually create and configure AWS resources and figure out what’s dependent on what; CloudFormation handles that.</p><p>We are going to use AWS CloudFormation template to design a networking architecture that contains the following components:</p><ul><li>A VPC with a CIDR block of 10.0.0.0/16</li><li>One public and one private subnet in 2 availability zones in <em>us-west-2 </em>region</li><li>An Internet Gateway and routing for public Internet access</li><li>Route tables for managing traffic within and outside the VPC</li></ul><p><strong>Prerequisites for this project:</strong></p><p>Before we begin, ensure you have the following:</p><ul><li>An AWS account with the necessary permissions to create VPCs, subnets, and other resources.</li><li>Access to the AWS Management Console and AWS CloudFormation.</li><li>Basic understanding of AWS networking concepts like VPC, subnets, and routing.</li><li>Familiarity with AWS CloudFormation YAML templating</li></ul><p>First, let’s review the AWS CloudFormation template of RichardsCorp Networking Architecture</p><p><strong>AWS CloudFormation — RichardsCorp Networking Architecture Overview</strong></p><p>The AWS CloudFormation template for RichardsCorp networking architecture includes the following components:</p><p>· <strong>VPC:</strong> The central network structure.</p><p>· <strong>Subnets:</strong> A public and private subnet, each associated with different layers of your application</p><ul><li>— Public Subnet</li><li>— Private Subnet</li><li><strong>Internet Gateway:</strong> Provides internet access to the public subnet.</li><li>— Internet Gateway</li><li>— VPC Gateway Attachment</li></ul><p>· <strong>Route Tables:</strong> To manage the routing rules for both public and private subnets.</p><ul><li>— Public Route Table</li><li>— Private Route Table</li><li>— Public Route</li></ul><p>· <strong>Subnet Route Table Associations</strong> (for both public and private subnets)</p><p><strong>CloudFormation Template Component Review:</strong></p><p><strong>1. VPC Creation</strong></p><p>The VPC is the foundation of the cloud network. Here, we define a VPC with a CIDR block of 10.0.0.0/16, which allows for a range of private IP addresses for resources in the cloud.</p><pre>RichardsCorp-VPC:<br>  Type: AWS::EC2::VPC<br>  Properties:<br>    CidrBlock: 10.0.0.0/16<br>    EnableDnsHostnames: true<br>    Tags:<br>      - Key: Name<br>        Value: RichardsCorp-VPC</pre><p><strong>EnableDnsHostnames</strong>: Set to true so that instances within the VPC can resolve DNS hostnames.</p><p><strong>Tagging</strong>: The VPC is tagged for easy identification of the VPC.</p><p><strong>2. Subnets</strong></p><p>We define one <strong>public subnet</strong> and one <strong>private subnet</strong>, each within the same VPC but isolated into different IP ranges.</p><pre>PublicSubnet1:<br>  Type: AWS::EC2::Subnet<br>  Properties:<br>    VpcId: !Ref RichardsCorp-VPC<br>    CidrBlock: 10.0.0.0/24<br>    AvailabilityZone: !Select <br>      - &#39;0&#39;<br>      - !GetAZs &#39;&#39;<br>    Tags:<br>      - Key: Name<br>        Value: Public Subnet 1</pre><p>The public subnet (10.0.0.0/24) is located in the first availability zone.</p><p>The private subnet (10.0.1.0/24) is isolated from direct internet access.</p><p><strong>3. Internet Gateway and Route</strong></p><p>To allow the public subnet to access the internet, we define an Internet Gateway and a route that directs all traffic to this gateway.</p><pre>InternetGateway:<br>  Type: AWS::EC2::InternetGateway<br>  Tags:<br>    - Key: Name<br>      Value: Internet Gateway<br><br>AttachGateway:<br>  Type: AWS::EC2::VPCGatewayAttachment<br>  Properties:<br>    VpcId: !Ref RichardsCorp-VPC<br>    InternetGatewayId: !Ref InternetGateway</pre><p>The <strong>VPCGatewayAttachment</strong> resource ensures that the internet gateway is attached to the VPC.</p><p><strong>4. Routing</strong></p><p>To enable internet access for the public subnet, a route table is created with a route to the Internet Gateway. This ensures any traffic destined for outside the VPC (i.e., 0.0.0.0/0) is routed via the Internet Gateway.</p><pre>PublicRoute:<br>  Type: AWS::EC2::Route<br>  Properties:<br>    RouteTableId: !Ref PublicRouteTable<br>    DestinationCidrBlock: 0.0.0.0/0<br>    GatewayId: !Ref InternetGateway</pre><p>The <strong>private route table</strong> does not have a direct route to the internet for security reasons. If you need resources in the private subnet to sent/receive traffic to 0.0.0.0/0, you can deploy a NAT Gateway in the public subnet and route the private route table to the NAT Gateway</p><p><strong>5. Subnet-Route Table Association</strong></p><p>The <strong>SubnetRouteTableAssociation</strong> links the subnets with their respective route tables, ensuring that traffic flows as expected.</p><pre>PublicSubnetRouteTableAssociation1:<br>  Type: AWS::EC2::SubnetRouteTableAssociation<br>  Properties:<br>    SubnetId: !Ref PublicSubnet1<br>    RouteTableId: !Ref PublicRouteTable</pre><p>Finally, the <strong>Output</strong> section:</p><p>We will output the VPC and the availability zone for easy reference in future stack deployments or monitoring.</p><pre>Outputs:<br>  RichardsCorp:<br>    Description: VPC for RichardsCorp-VPC<br>    Value: !Ref RichardsCorp-VPC<br>  AZ1:<br>    Description: Availability Zone 1<br>    Value: !GetAtt <br>      - PublicSubnet1<br>      - AvailabilityZone</pre><p>Putting it all together. You can download the complete AWS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*Ik55eqgl3CF1vSdE3s777Q.png" /><figcaption>RichardsCorp CloudFormation Template — 1a</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*O6Dg_c9tW6UJqSgQRVBaEw.png" /><figcaption>RichardsCorp CloudFormation Template — 1b</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*CQD5dy7pZPWYd1RsXt-i7g.png" /><figcaption>RichardsCorp CloudFormation Template — 1c</figcaption></figure><p>CloudFormation template for this project from my GitHub page <a href="https://github.com/richards-okiemute/Create-A-VPC-Network-Architecture-Using-AWS-CloudFormation">here</a></p><p>Now let’s proceed to deployment using the AWS CloudFormation console</p><p>First, search for CloudFormation using the AWS Global Search:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMZCH3HiXOttrjCe8gjCZg.png" /><figcaption>AWS CloudFormation</figcaption></figure><p>Next, click on <strong>Create stack:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6nS7GevRFFGY7Jx82u7QQ.png" /><figcaption>Create stack</figcaption></figure><p>Select the following:</p><ul><li>Choose an existing template</li><li>Upload a template file</li></ul><p>Then click on <strong>Choose File</strong> to upload the CloudFormation template file we created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFzDxFwNejGxhJV_rgT5dg.png" /><figcaption>Uploading CloudFormation Template file</figcaption></figure><p>Click on “<strong>Next</strong>” and proceed to name the stack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eDE8hEEMw6HeESWOUDejA.png" /><figcaption>Naming the stack</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ImDK5HFYuGsOPqlcalczg.png" /><figcaption>Review stack settings</figcaption></figure><p>Review the stack settings and scroll down to click on “<strong>Submit”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADIf8n-caBj4w8YXNzCftg.png" /><figcaption>Submit Cloudformation template to create the stack</figcaption></figure><p>Upon submission, CloudFormation will create the stack including all the resources defined in the AWS CloudFormation template for <strong>RichardsCorpVPC</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZWYWCz0rfaX0ZHJVf8iWg.png" /><figcaption>Stack creation in progress</figcaption></figure><p>The creation of the stack will take a couple of minutes. You can refresh to see the progression of the events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZI-N-9dryS5uGS_WzU-gA.png" /><figcaption>Stack creation events</figcaption></figure><p>Proceed to review the stack resources, outputs, and other sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxVUXVgPp7EhVhRylRBIag.png" /><figcaption>Reviewing the resources created</figcaption></figure><p>You can see the resources created as defined in the CloudFormation stack. Next, proceed to review the Outputs section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKAnJUF96z1l7BGGeOxGSQ.png" /><figcaption>Reviewing the Outputs section.</figcaption></figure><p>There are no parameters in our CloudFormation template. So we proceed to review the template section (optional).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvHWzS0qzq5hu4ymALOe0g.png" /><figcaption>CloudFormation template review</figcaption></figure><p>Now let’s navigate over to the VPC section to confirm and review the VPC creation.</p><p>Search for VPC using the AWS global search box:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEv3cFlQzJJIZsQzmtAXFw.png" /><figcaption>AWS VPC</figcaption></figure><p>Click on <strong>VPCs:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlX6YgnMoQVsky90AQ1dOQ.png" /><figcaption>VPCs</figcaption></figure><p>Select the VPC we created using AWS CloudFormation <strong>“RichardsCorpVPC”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBE8dzSuzeCbk6CA2cK9Ag.png" /><figcaption>RichardsCorp VPC</figcaption></figure><p>Click on the VPC ID link to view the properties of the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHBDRtVDyxYWvOFsPthVTQ.png" /><figcaption>RichardsCorpVPC properties</figcaption></figure><p>Reviewing the VPC Resource Map, you can see that using AWS CloudFormation template, we have been able to architect the RichardsCorpVPC just as we planned.</p><p>Below is the networking architecture we created using AWS CloudFormation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJkPGk-UIA39z5KO8BqY-w.jpeg" /></figure><p>In conclusion, deploying a Virtual Private Cloud (VPC) using AWS CloudFormation allows for efficient, automated management of network architecture. By leveraging Infrastructure as Code (IaC), it simplifies the process of creating and maintaining essential network components such as subnets, route tables, and Internet Gateways. This project for RichardsCorp demonstrates the power of AWS CloudFormation to streamline resource provisioning, ensuring that networking elements are properly configured while minimizing manual intervention.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb8ccae671ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure and Connect to a Serverless PostgreSQL Database with Amazon Aurora Serverless v2]]></title>
            <link>https://richards-okiemute.medium.com/configure-and-connect-to-a-serverless-postgresql-database-with-amazon-aurora-serverless-v2-dd6d365fc540?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd6d365fc540</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[cloud9]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 07:57:42 GMT</pubDate>
            <atom:updated>2024-09-07T07:57:42.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLgfEhpnkPlTFAzgn3UlCw.jpeg" /><figcaption>AWS Cloud9 and Aurora PostgreSQL architecture</figcaption></figure><p><strong>Serverless!</strong> Organizations cannot just stop loving serverless technology because of the amazing benefits associated with adopting serverless. With serverless databases, such as Amazon Aurora Serverless v2, you no longer have to worry about managing infrastructure or scaling resources manually. Aurora Serverless automatically adjusts capacity based on your workload, providing a seamless, cost-effective, and scalable solution.</p><p>In this project, I will guide you through setting up and connecting to an Aurora Serverless PostgreSQL database using AWS services. By the end, you’ll have a powerful and flexible database solution ready for your dynamic application needs.</p><h3>Prerequisites</h3><p>Before you begin this project, ensure you have:</p><ul><li>An active AWS account.</li><li>Basic knowledge of relational databases and SQL commands.</li><li>Familiarity with AWS services, particularly Amazon RDS, Amazon VPC, and AWS Cloud9.</li><li>Access to the necessary IAM permissions to create databases, VPC configurations, and Cloud9 environments.</li><li>Installed PostgreSQL client tools (optional if you’re not using AWS Cloud9 — I will install the PostgreSQL client — psql towards the end of the project).</li></ul><p>To begin with this project, we start by searching for RDS on the AWS global search or use this link <a href="https://console.aws.amazon.com/rds/">https://console.aws.amazon.com/rds/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-38WCOXOmbBVv0Vra8MLiw.png" /><figcaption>Searching for Relation Database Services (RDS)</figcaption></figure><p>Click on Databases to then proceed to click on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*0ds4WXPdAwV6r2ukL_U1NA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEs-qyE0y6y-1ZkGLHmvVg.png" /><figcaption>Select Databases</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDXJQwEWNk4fmAH4235w3A.png" /><figcaption>Create Database</figcaption></figure><p>Proceed to create an Amazon Aurora (PostgreSQL Compatible) database using the following configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ms66YyztAbaptaZRk9LnWA.png" /><figcaption>Select database configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRcRtcvID4mUU7TlCtWJnA.png" /><figcaption>Select database configuration</figcaption></figure><p>In the <strong>Settings</strong> section, enter a desired name for your database cluster, select <strong>Self managed</strong> for credential management, and enter a strong password as your <strong>Master password</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ZiKZgGSn9xJKMVkobMBDQ.png" /><figcaption>Select database configuration</figcaption></figure><p>Leave the default <strong>Aurora Standard</strong> for the configuration options in the <strong>Cluster storage configuration</strong> section and select <strong>Serverless V2</strong> as the <strong>DB instance class</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwnkky1C5_fYXcvWzTq66w.png" /><figcaption>Select database configuration</figcaption></figure><p>For the capacity range, choose:</p><p>Minimum Capacity (ACUs): <strong>0.5 GiB</strong> <em>(the smallest Aurora Serverless V2 capacity unit)</em></p><p>Maximum Capacity (ACUs): <strong>8 GiB</strong></p><p>Learn about Aurora capacity unit (ACU) here: <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.how-it-works.html#aurora-serverless-v2.how-it-works.capacity">https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.how-it-works.html#aurora-serverless-v2.how-it-works.capacity</a></p><p>Continuing with the database configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQSaKS67dFmFyP_wo9T0uA.png" /><figcaption>Select database configuration</figcaption></figure><p>Scroll down to Monitoring, click on “<strong>Turn on Performance Insights,</strong>” and proceed to create the database by clicking on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*ZqAr6kzckd7gMfrnr-OfwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRRctG5Ei8Utf6-lvvqojw.png" /><figcaption>Create the database</figcaption></figure><p>The database is now successfully created and you can see there is one regional cluster <a href="https://us-east-1.console.aws.amazon.com/rds/home?region=us-east-1#database:id=richardsdb-cluster;is-cluster=true"><strong>richardsdb-cluster</strong></a><strong> </strong>and one writer instance <a href="https://us-east-1.console.aws.amazon.com/rds/home?region=us-east-1#database:id=richardsdb-cluster-instance-1;is-cluster=false"><strong>richardsdb-cluster-instance-1</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7J_fEcAcs9puox39Fi46dg.png" /><figcaption>Database successfully created</figcaption></figure><p>After creating the RichardsDB-Cluster cluster, I will create a database client inside the same VPC (database VPC). In this step, I will create an AWS Cloud9 environment to use as my database client.</p><p><strong>Creating AWS Cloud9 Client Environment</strong></p><p>In the AWS global search, type in <strong>Cloud9</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcqmgDZ3qbBpDIF-wEGvYQ.png" /><figcaption>AWS Cloud9</figcaption></figure><p>Click on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/1*7F_-jwMhNPO9Ecc-N-pohQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThAqTXJWInLuwxkRAq5B9g.png" /><figcaption>AWS Cloud9</figcaption></figure><p>Create the new Cloud9 environment using the configuration in the following screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToQ7wz75ImPTcn-15fAV3Q.png" /><figcaption>Configure AWS Cloud9</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCQ_YQbMfAz65aQtqbMbzw.png" /><figcaption>Configure AWS Cloud9</figcaption></figure><p><strong>Note:</strong> The VCP selected for the Cloud9 environment is the same VPC for the Aurora DB Cluster instance.</p><p>Now, proceed to create the Cloud9 environment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ib0VWtTiNpMCro8VVi6mhQ.png" /><figcaption>Create AWS Cloud9 environment</figcaption></figure><p>Click on <strong>Open</strong> to open the Cloud9 environment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vD8b8ComNUek_o2Sab4khg.png" /><figcaption>AWS Cloud9 environment</figcaption></figure><p><strong>Configure Client Network Access to the Aurora-Serverless V2 Cluster</strong></p><p>Next, I will enable network access from the <strong>RichardsDB-ClausterEnv</strong> Cloud9 environment to the Serverless v2 DB Cluster by adding the security group assigned to <strong>RichardsDB-ClausterEnv</strong> as a traffic source for the security group assigned to the DB instance in my Aurora cluster.</p><p>Navigate to the AWS VPC services by searching for VPC in the global search box or open the VPC console using this link <a href="https://console.aws.amazon.com/vpc/">https://console.aws.amazon.com/vpc/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpaS8H4tNfaTqX-jUaJ7sQ.png" /><figcaption>AWS Virtual Private Cloud (VPC)</figcaption></figure><p>Navigate to the <strong>Security</strong> section and click on <strong>Security Groups:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4ZCXSvKQwmQyhfHLDiCgw.png" /><figcaption>Security Groups</figcaption></figure><p>On the Security Groups page, select the AWS-Cloud9 security group, click on <strong>Inbound rules </strong>then click on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*qrSFa3zlivB119tf0EV0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VtiL8eW8SyNkoEVHzgjDNQ.png" /><figcaption>DB Security Groups Inbound Rules</figcaption></figure><p>On the <strong>Edit inbound rules</strong> page click on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*03LZiroq7oSChExV_rXfDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5edTDQFupLJftHmuLjEPbA.png" /><figcaption>Add inbound rules</figcaption></figure><p>Add an Inbound Security Group (SG) rule for the Aurora Postgres Cluster database created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQ8kPapl7YXR7ewsNVqYrA.png" /><figcaption>Configuring SG inbound rules</figcaption></figure><p>Then click on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/1*53skaR5b46fFl83LSU1JwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVGt-NnC8FDlIHiPdRaDLA.png" /><figcaption>Save SG inbound rules</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkA3bxhDj1rZrShxZS3Unw.png" /><figcaption>SG inbound rules successfully added</figcaption></figure><p><strong>Connect to the Aurora Serverless V2 Database using AWS Cloud9 CLI</strong></p><p>Open the AWS Cloud9 instance and use the following command to access the Aurora Serverless v2 cluster instance:</p><pre>sudo dnf update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fI8MNOwr1ILy9qkLgfzwMA.png" /><figcaption>updating Linux environment</figcaption></figure><p>Next, run the command below:</p><pre>sudo dnf install postgresql15  -y #to provide accesss to psql in AWS Cloud9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMrfK1bne0q39PdECrCQEw.png" /><figcaption>Installing PostgreSQL version 15</figcaption></figure><p>Now, Connect to the Aurora Serverless V2 Postgres Db endpoint and log in using the Master user account.</p><p>Run the command below to connect to the DB instance:</p><pre>psql -U [your Master username] -h [your Aurora cluster endpoint] postgres</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBr7fMXM-eT6_bJQ4xSBfg.png" /><figcaption>Connecting the Aurora Serverless V2 Postgress DB</figcaption></figure><p>To show the databases use the command below:</p><pre>\l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QtS42g9dTETmN0hHVecXfQ.png" /><figcaption>DefaultPostgres databases</figcaption></figure><p>Run the commands below to show the current time and the Postgres version</p><pre>select now();<br>Select version();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9S2PK_d-jtp_FxaEySpEQ.png" /><figcaption>Time and version of Postgres DB</figcaption></figure><p>Now I have successfully deployed the AWS Aurora V2 Postgres DB and configured an AWS Cloud9 environment to establish a connection to the AWS Aurora V2 Postgres DB endpoint.</p><h3>Conclusion</h3><p>In this project, I walked through configuring and connecting to an Amazon Aurora Serverless v2 PostgreSQL database using AWS Cloud9. By setting up the database and client environment, I now have a scalable and flexible database solution that adjusts to my needs automatically. This project demonstrates the power of AWS services and provides a solid foundation for further development and scaling of cloud-based applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd6d365fc540" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing a serverless file-encryption app using AWS Lambda, S3, and AWS CLI]]></title>
            <link>https://richards-okiemute.medium.com/developing-a-serverless-file-encryption-app-using-aws-lambda-s3-and-aws-cli-0e85c7aa9dfd?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e85c7aa9dfd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Fri, 06 Sep 2024 16:03:34 GMT</pubDate>
            <atom:updated>2024-09-08T16:10:20.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7JFGjegaozIWcZE-Q5wKw.jpeg" /><figcaption>AWS Lambda File Encryption App</figcaption></figure><p><strong>Data security is a global issue!</strong> One that is a concern for most organizations around the world. Most organizations conduct their businesses using different digital media to convey important information and business plans. Most organizations rely on using digital documents with the Portable Digital Format (PDF) extension to store important information such as Business Proposals, Business Plans, Business Process Models (BPM), Systems Architectures, Organizational Flowchart, and other Intellectual Properties (IP) thus there is a critical need to secure this information from getting into the wrong hands or the hands of competitors.</p><p>Data encryption is one of the methods to secure data from unauthorized access and data breaches. PDF files can be secured using various data encryption methods such as transforming a non-secured PDF document to a secured document by using automated password implementation systems. When working in a large organization with a cloud environment, it is vital to have automated data encryption systems to help secure organizational data without the intervention of human processes. For instance, when a PDF file is uploaded into a specific storage marked as confidential, such data should be automatically encrypted to prevent unauthorized access to the information in the confidential storage.</p><p>In this project, we built a <strong>serverless PDF encryption solution</strong> using <strong>AWS Lambda</strong> and <strong>Amazon S3</strong>. The goal was to create an automated process that encrypts PDF files as soon as they are uploaded, ensuring that sensitive information is protected without any manual intervention.</p><p>This project showcases the simplicity and power of AWS serverless architecture. By combining AWS Lambda’s event-driven capabilities with S3’s reliable storage, we developed an efficient, hands-off approach to securing documents. Whether you’re managing client contracts, financial records, or any confidential information, this solution seamlessly integrates encryption into your cloud workflow, enhancing security without adding complexity.</p><p><strong>Prerequisites:</strong></p><p>You should be familiar with:</p><ul><li>AWS CLI — <em>The AWS CLI should be installed on your local computer</em></li><li>Amazon S3</li><li>AWS Lambda</li><li>Visual Studio Code or any other IDE of your choice.</li></ul><p><strong>Resources needed for this project:</strong></p><p>You can get the required files from my GitHub repository <a href="https://github.com/richards-okiemute/AWS-Lambda-PDF-Encryption-App">here</a></p><p>We are going to implement a couple of tasks to accomplish the final objective of this project. The list of tasks to complete are listed below:</p><ul><li>Developing and deploying the application</li><li>Configure an Amazon S3 trigger to invoke the function</li><li>Test the application</li></ul><p><strong>Developing and deploying the application:</strong></p><p>First, you will create both the source and destination s3 buckets using AWS CLI commands for S3 bucket creation by using AWS s3api calls.</p><p>The source bucket is going to be named as:</p><p>Source S3 bucket: <strong>pdf-source-bucket77</strong></p><p>Destination S3 bucket: <strong>pdf-source-bucket77-encrypted</strong></p><p><strong>Creating the source S3 bucket using AWS CLI:</strong></p><pre>aws s3api create-bucket - bucket pdf-source-bucket77 - region us-west-2 \<br> - create-bucket-configuration LocationConstraint=us-west-2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLOJHsy_k6t_mpas97FiSw.png" /><figcaption><strong>Creating the source S3 bucket</strong></figcaption></figure><p><strong>Creating the destination S3 bucket using AWS CLI:</strong></p><pre>aws s3api create-bucket --bucket pdf-source-bucket77-encrypted --region us-west-2 \<br>--create-bucket-configuration LocationConstraint=us-west-2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oPvbLAn_W3LlFwDvXXcNPA.png" /><figcaption>Creating the destination S3 bucket</figcaption></figure><p>Note: Your destination bucket must use the format <strong><em>sourcebucket-encrypted</em></strong>, where <strong><em>sourcebucket</em></strong> is the name of the source bucket you created.</p><p>Now, navigate to the AWS S3 console to confirm the creation of both the source and destination buckets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fBKL7wpfpqKhhq6VYTB3w.png" /><figcaption>Source and destination S3 buckets</figcaption></figure><p><strong>Create an execution role (AWS CLI)</strong></p><p>An execution role is an IAM role that grants a Lambda function permission to access AWS services and resources. When you create a function using the Lambda console, Lambda automatically creates an execution role. You only need to create a role manually if you choose to deploy the app using the AWS CLI. To give your function read and write access to Amazon S3, you attach the AWS managed policy <em>AmazonS3FullAccess.</em></p><p>First, create a <strong><em>trust-policy.json</em></strong> file containing the following IAM policy. This trust policy allows Lambda to use the role’s permissions by giving the service principal lambda.amazonaws.com permission to call the AWS Security Token Service (AWS STS) <em>AssumeRole</em> action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdMdN4zh9tIY_y7huoHiFA.png" /><figcaption>trust-policy.json</figcaption></figure><p>From the directory you saved the JSON trust policy document in, run the following CLI command to create the execution role.</p><pre>aws iam create-role - role-name LambdaS3Role - assume-role-policy-document file://trust-policy.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*US9GwaQqvWxbCrPwcwOXxg.png" /><figcaption>LambdaS3Role created</figcaption></figure><p>Navigate the AWS IAM on the console to check for the <strong><em>LambdaS3Role</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vUSBvkzefhqJt06Zs6K_7Q.png" /><figcaption>LambdaS3Role as seen on the AWS Console</figcaption></figure><p>To attach the <em>AmazonS3FullAccess</em> managed policy, run the following CLI command.</p><pre>aws iam attach-role-policy - role-name LambdaS3Role - policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdNyxHGR4UUR5T0eUM3mXg.png" /><figcaption>Attaching <em>AmazonS3FullAccess policy to LambdaS3Role</em></figcaption></figure><p>Confirm the AmazonS3FullAccess policy has been added to LambdaS3Role on the AWS console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqcEAWsQeQzoOMBqOW61wA.png" /><figcaption><em>AmazonS3FullAccess policy attached to LambdaS3Role</em></figcaption></figure><p>Next, we will proceed to create a deployment package for our AWS Lambda function.</p><p><strong>Create the function deployment package:</strong></p><p>To create your function, you create a <em>deployment package</em> containing your function code and its dependencies. For this application, your function code uses a separate library for PDF encryption.</p><p><strong>To create the deployment package</strong></p><ol><li>Navigate to the project directory containing the <em>lambda_function.py</em> and <em>requirements.txt</em> files you created or downloaded from GitHub earlier and create a new directory named <em>package</em>.</li><li>Install the dependencies specified in the <em>requirements.txt</em> file in your package directory by running the following command.</li></ol><pre>pip install -r requirements.txt - target ./package/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zCt61uMAzpA2rW1jsSDJNg.png" /><figcaption>installing dependencies for the serverless encryption app</figcaption></figure><p>Create a .zip file containing your application code and its dependencies. In Linux or MacOS, run the following commands from your command line interface.</p><pre>cd package<br>zip -r ../lambda_function.zip .<br>cd ..<br>zip lambda_function.zip lambda_function.py</pre><p>In Windows, use your preferred zip tool to create the <em>lambda_function.zip</em> file. Make sure that your <em>lambda_function.py</em> file and the folders containing your dependencies are all at the root of the .zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*o0qQg0LA1XawNuUwX5wuSw.png" /><figcaption>Lambda_function.zip created.</figcaption></figure><p>Now let’s add lambda_function.py to the lambda_function.zip</p><pre>cd ..<br>ls -ll<br>zip lambda_function.zip lambda_function.py</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ud87AEStyPD-o9cyEA4T2w.png" /><figcaption>Lambda_function.py file added to lambda_function.zip</figcaption></figure><p>The next step is to create and deploy the lambda function using the deployment package created.</p><p><strong>Create and deploy the Lambda function using AWS CLI:</strong></p><p>Run the following command from the directory containing your <strong>lambda_function.zip</strong> file. For the region parameter, replace us-west-2 with the region you created your S3 buckets.</p><pre>aws lambda create-function - function-name Lambda-PDF-Encryption-App \<br> - zip-file fileb://lambda_function.zip - handler lambda_function.lambda_handler \<br> - runtime python3.12 - timeout 15 - cli-connect-timeout 600 - memory-size 256 \<br> - role arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/LambdaS3Role - region us-west-2 \<br> - logging-config LogFormat=JSON</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R9BOXImoZKe4qIQA2pkowA.png" /><figcaption>Successfully created and deployed the AWS Lambda Function</figcaption></figure><p>Now, you can proceed to the AWS Console to confirm the creation of the AWS Lambda function<strong><em> Lambda-PDF-Encryption-App.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulC7l2Llp5dMrZ3DhV6clg.png" /><figcaption>Reviewing the AWS Lambda Function on AWS console</figcaption></figure><p>Now we to configure an Amazon S3 trigger to invoke the <strong><em>Lambda-PDF-Encryption-App</em></strong></p><p><strong>Configure an Amazon S3 trigger to invoke the function</strong></p><p>For the Lambda function to run when a PDF file is uploaded to the <strong>pdf-source-bucket77</strong>, you need to configure a trigger for your function. You can configure the Amazon S3 trigger using either the console or the AWS CLI.</p><p><strong>To configure the Amazon S3 trigger (AWS CLI)</strong></p><p>For the pdf-source-bucket77 to invoke the Lambda-PDF-Encryption-App function when a pdf file is uploaded, you first need to configure permissions for the function using a resource-based policy.</p><pre>aws lambda add-permission - function-name Lambda-PDF-Encryption-App \<br> - principal s3.amazonaws.com - statement-id s3invoke - action &quot;lambda:InvokeFunction&quot; \<br> - source-arn arn:aws:s3:::pdf-source-bucket77 \<br> - source-account YOUR-AWS_ACCOUNT_ID</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_lBY945XVh9eFgEluBMxg.png" /><figcaption>Adding S3invoke permission to the AWS Lambda function to allow the S3 source bucket to trigger the AWS Lambda function</figcaption></figure><p>Navigate the Lambda function configuration section and confirm the permission added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ac2vjLqEdL0aLKo04AVKGA.png" /><figcaption>S3invoke permission attached to the AWS Lambda Function</figcaption></figure><p>Review the <strong><em>s3invoke </em></strong>policy that was added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L87zdbUq5gQu6jRARrB6VA.png" /><figcaption>Reviewing S3invoke policy</figcaption></figure><p>Next, you will configure the <strong><em>pdf-source-bucket77</em></strong> to send a notification to the lambda function every time a new object is added.</p><p>Create a JSON configuration file named <strong><em>notification.json</em></strong><em>. </em>This file will be used to configure the source S3 bucket using the AWS CLI.</p><p>Copy the JSON below to the <strong><em>notification.json</em></strong> file</p><pre>{<br>  &quot;LambdaFunctionConfigurations&quot;: [<br>    {<br>      &quot;Id&quot;: &quot;Lambda-PDF-Encryption-AppEventConfiguration&quot;,<br>      &quot;LambdaFunctionArn&quot;: &quot;arn:aws:lambda:us-west-2: YOUR-AWS_ACCOUNT_ID:function:Lambda-PDF-Encryption-App&quot;,<br>      &quot;Events&quot;: [ &quot;s3:ObjectCreated:Put&quot; ]<br>    }<br>  ]<br>}</pre><p>Use the AWS CLI command below to apply the JSON configuration in the <strong><em>notification.json</em></strong> file.</p><pre>aws s3api put-bucket-notification-configuration - bucket pdf-source-bucket77 \<br> - notification-configuration file://notification.json</pre><p>Navigate to the console to review the S3 trigger added to the Lambda function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-owtGCu4EPsSGzKbQMyKQ.png" /><figcaption>S3 event trigger setup</figcaption></figure><p><strong>Testing the app</strong></p><p>To test your app, you upload a PDF file to your source bucket, and confirm that Lambda creates an encrypted version of the file in your destination bucket. In this example, you can either test this manually using the console or the AWS CLI.</p><p>You are going to use the AWS CLI to test the app. You can use any pdf file on your local computer to test the functionality.</p><p>Before uploading any test file, first navigate to the AWS Lambda environment variables under the AWS Lambda configuration section using the AWS console then add a pdf password as an environment variable</p><p>Pass in the following variable</p><p>Key: <strong>PDF_ENCRYPTION_PASSWORD</strong></p><p>Value: <strong>Your secret password to encrypt the pdf file</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-k3oAAHIgyYWNa2gKoDHw.png" /><figcaption>Adding environment variables to the AWS Lambda function</figcaption></figure><p>Now proceed to upload a file to the AWS source bucket <strong><em>pdf-source-bucket77</em></strong></p><p>From the directory containing the PDF file you want to upload, run the following CLI command. Replace the — bucket parameter with the name of your source bucket. For the — key and — body parameters, use the filename of your test file.</p><pre>aws s3api put-object - bucket pdf-source-bucket77 - key YOUR-PDF-FILE.pdf - body ./YOUR-PDF-FILE.pdf</pre><p>I am going to upload the pdf with the content below:</p><p>PDF name: <strong>AWS-Documentation.pdf</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*2kz0n2rf1J9f-4_V5Qdnpw.png" /><figcaption><strong>AWS-Documentation.pdf</strong></figcaption></figure><p>AWS CLI command to upload the AWS-Document.pdf file to pdf-source-bucket77 on Amazon S3:</p><pre>aws s3api put-object - bucket pdf-source-bucket77 - key AWS-Documentation.pdf - body ./AWS-Documentation.pdf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0rX4_1T2-E7FF7aaC4cUQ.png" /><figcaption>Uploading the test pdf file to AWS S3</figcaption></figure><p>Review the file upload in S3 via AWS console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3VJk2kMZBYxKIaRGV2Mkw.png" /><figcaption>test pdf successfully uploaded to AWS S3 source bucket</figcaption></figure><p>Checking the destination S3 bucket for any pdf file upload from the AWS Lambda invocation by the S3 source bucket put operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v6s6HGv6v9WbJyankBApNA.png" /><figcaption>Confirming the test pdf file was encrypted and sent to the AWS S3 destination bucket</figcaption></figure><p>From the screenshot above, you can see that the AWS-Documentation.pdf file has now been encrypted and its name modified to AWS-Documentation_encrypted.pf</p><p>Let’s navigate to the destination S3 bucket <em>pdf-source-bucket77-encrypted </em>to confirm the presence of this file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJEZYk8RLMHX18tVLQP8WQ.png" /><figcaption>Test pdf automatically uploaded to the destination S3 bucket</figcaption></figure><p>Let’s check the bucket properties:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-8rcyGOPRfXNidMiySL6w.png" /><figcaption>test document properties review</figcaption></figure><p>Now let’s download the bucket and try to open it to check if the AWS Lambda encryption app will work perfectly.</p><p>Just click on the download option on the bucket page to download the encrypted PDF file then try to open the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4SX9U-G9vS8gmhS1-c3Vg.png" /><figcaption>Test file downloaded</figcaption></figure><p>The file was successfully downloaded. Next, click on the file to open it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDEdPHCKU7ijuO7K8NhRYg.png" /><figcaption>Test document now password protected</figcaption></figure><p>You can see that the AWS Lambda encryption app we developed as successfully encrypts the AWS-Documentation.pdf file with a password.</p><p>Now, you have to use the password passed into the AWS Lambda function as an environment variable to unencrypt the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNY9cuyo4ERPPWdtb5Pzdw.png" /><figcaption>Unlocking test pdf file with the password</figcaption></figure><p>Inputting the password to unencrypt the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_sjVPySyRD0guZqKwP6Pg.png" /><figcaption>Test pdf file now unlocked</figcaption></figure><p>Congratulations! The PDF file is now unencrypted.</p><p>Conclusion:</p><p>In this project, we successfully developed a <strong>serverless PDF encryption application</strong> using <strong>AWS Lambda</strong> and <strong>Amazon S3</strong>. The application was designed to automatically encrypt PDF files uploaded to a source S3 bucket, applying password protection and storing the encrypted files in a destination bucket.</p><p>Key highlights of the project include:</p><ul><li><strong>Serverless Architecture</strong>: Utilizing AWS Lambda for on-demand execution without the need to manage underlying infrastructure.</li><li><strong>Automated File Processing</strong>: The app triggers the Lambda function whenever a new PDF file is uploaded to the source bucket, ensuring immediate encryption.</li><li><strong>Secure PDF Encryption</strong>: Each PDF is encrypted with a password, adding a layer of security for sensitive documents.</li><li><strong>Seamless S3 Integration</strong>: The application efficiently handles file transfers between S3 buckets, ensuring smooth upload and storage processes.</li></ul><p>This solution demonstrates the power and flexibility of AWS serverless services, providing a robust, scalable, and secure mechanism for file encryption.</p><p>We have successfully achieved the goal of this project, showcasing the potential for using serverless architecture to automate tasks while enhancing security and reliability in cloud environments.</p><p>Thank you for walking through this AWS project with me!</p><p>Keep building!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e85c7aa9dfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Continuous Delivery Pipeline with AWS CodePipeline, AWS CodeBuild and Elastic…]]></title>
            <link>https://richards-okiemute.medium.com/implementing-continuous-delivery-pipeline-with-aws-codepipeline-aws-codebuild-and-elastic-3142df84b2eb?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/3142df84b2eb</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[aws-code-deploy]]></category>
            <category><![CDATA[aws-codepipeline]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[aws-codebuild]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 12:25:55 GMT</pubDate>
            <atom:updated>2024-08-31T18:04:48.418Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Implementing Continuous Delivery Pipeline with AWS CodePipeline, AWS CodeBuild, and AWS Elastic Beanstalk</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*p0WUTX5R_hRo5Hs8qypkIA.png" /><figcaption>AWS Simple App Architecture</figcaption></figure><p>In this project, I will create a continuous delivery pipeline using AWS Codepipeline, AWS CodeBuild, and Git to deploy a simple web application to AWS Elastic Beanstalk. The continuous delivery pipeline will automatically deploy your web application whenever your source code is updated or modified in the GitHub repository.</p><p><strong>Tools/Technologies needed:</strong></p><p>· GitHub Repository</p><p>· AWS Elastic Beanstalk</p><p>· AWS CodeBuild</p><p>· AWS CodePipeline</p><p><strong>Application architecture</strong></p><p>This application uses GitHub, AWS Elastic Beanstalk, AWS CodeBuild, and AWS CodePipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Yg96GgzDvNGRfU6Jt2DXog.png" /><figcaption>Planned architecture</figcaption></figure><p>To begin with, the creation of the simple AWS app, we will first clone the GitHub repository with web application code</p><p><strong>Repository:</strong> <a href="https://github.com/aws-samples/aws-elastic-beanstalk-express-js-sample.git"><em>https://github.com/aws-samples/aws-elastic-beanstalk-express-js-sample.git</em></a></p><ol><li>Create a new web app directory called <strong>aws-app</strong></li><li>Change the directory into the <strong>aws-app</strong> directory</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*SG-bRG3HbVhh8FWh861DwA.png" /><figcaption>aws-app directory</figcaption></figure><p>3. Clone the web app repository into <strong>aws-app</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*SY6qO5GokgavUAgo0Rx3Tg.png" /><figcaption>Cloning Github repository</figcaption></figure><p>Review the content of the <strong>aws-app</strong> folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*gMx2cAHW1uuBejZaJcm7Xw.png" /><figcaption>Review the content of the AWS Elastic Beanstalk app folder</figcaption></figure><p>Review the content of the <strong>app.js</strong> file and modify the response to <strong>“AWS simple web application”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*d1pDSFFFHs7vpEH8l2Ac2w.png" /><figcaption>Modifying the App,js file</figcaption></figure><p>Add and commit the <strong>app.js</strong> file to the git repo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zgHuWLvJLlMqEaQMlfWPfA.png" /><figcaption>Git commit the modified</figcaption></figure><p>Push the changes to the git repo using <strong>git push:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CL9SMvyFpVU9rWbzZnH3Iw.png" /><figcaption>Pushing modification</figcaption></figure><p>So far, here is the current architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*TjYOGfcuO3W6BD9xdeNkSw.png" /><figcaption>Current AWS Architecture with no resource deployed yet</figcaption></figure><p>Next, we will proceed to accomplish the following steps:</p><ol><li><strong>Configure and deploy the AWS Simple Web App to AWS Elastic Beanstalk</strong></li><li><strong>Create a Build Project on AWS CodeBuild</strong></li><li><strong>Integrating AWS Create Delivery Pipeline Using AWS Codepipeline</strong></li><li><strong>Finalize the Pipeline and Test the continuous delivery pipeline.</strong></li><li><strong>Configure and deploy the AWS Simple Web App to AWS Elastic Beanstalk:</strong></li></ol><p>This section will use the AWS Elastic Beanstalk console to create and deploy a web application. AWS Elastic Beanstalk is a computing service that makes it easy to deploy and manage AWS applications without worrying about the infrastructure that runs them.</p><p>I will proceed to <strong>configure AWS Elastic Beanstalk app</strong></p><p>Navigate to the AWS global search bar and search for Elastic Beanstalk and click on <strong>create application</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dEy40pT_b8EDznUnAbFq4w.png" /><figcaption>AWS Elastic Beanstalk</figcaption></figure><p><strong>Next, we will configure the Elastic Beanstalk environment</strong></p><p>Configure the environment using the configuration below:</p><p><strong>Environment tier:</strong> Web server environment</p><p><strong>Application name:</strong> SimpleWebApplication (any name you like)</p><p><strong>Platform:</strong> NodeJs</p><p><strong>Application Code:</strong> Sample application</p><p><strong>Configuration presets: </strong>Single instance (free tier eligible)</p><p>Create or select<strong> service role</strong> and <strong>Ec2 instance profile</strong> for Elastic Beanstalk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_MG3I7sXhBwuHpN2tzVHQ.png" /><figcaption>SimpleWebApp-env environment created on Elastic Beanstalk</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LULBG5I3U8tX2XOEDCcjMw.png" /><figcaption>Elastic Beanstalk Nodejs sample application</figcaption></figure><p>Now that we have configured our AWS Elastic Beanstalk environment, let’s review the current architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*a8J7EwGysltp42xr7ceXgA.png" /><figcaption>AWS Elastic Beanstalk configured</figcaption></figure><p>Next, we will create a Build project on AWS CodeBuild</p><p><strong>2. Create a Build Project on AWS CodeBuild:</strong></p><p>In this section, we will use <strong>AWS</strong> <strong>CodeBuild</strong> to build the source code previously stored in the GitHub repository. <strong>AWS</strong> <strong>CodeBuild</strong> is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy.</p><p>Navigate to <strong>AWS</strong> <strong>CodeBuild </strong>and click on<strong> Create project</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*2fu8prV8tY_zIsI3p8KF7w.png" /><figcaption>AWS CodeBuild</figcaption></figure><p>Use the following configuration to create the build project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlV02JZ1LEO5pZJzQWluSA.png" /><figcaption>AWS CodeBuild setup</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*535hdx0JOH_kBi60fZCT1w.png" /><figcaption>AWS CodeBuild Setup cont.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1z4BxHjc-iqKgtrdEUb_kQ.png" /><figcaption>AWS CodeBuild Setup cont.</figcaption></figure><p>Click on Insert build commands in the <strong>Buildspec</strong> section and paste the YAML code below:</p><pre>version: 0.2<br>phases:<br>    build:<br>        commands:<br>            - npm i --save<br>artifacts:<br>    files:<br>        - &#39;**/*&#39;</pre><p>Now proceed to create the build project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q7X-S_9k3C17ZY92I-N8Rg.png" /><figcaption>Create build project</figcaption></figure><p>Wait for a while for the build project to be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-UqKFOqbb58wVyWWfvCjsw.png" /><figcaption>Build project “SimpleWebApp” successfully created</figcaption></figure><p>Now that the build project “SimpleWebApp” has been successfully created, we will now initiate the build process by clicking on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/146/1*-WF-vDVGBfjVV8DzHYpfkg.png" /></figure><p>Clicking on Start build will start the build process and we can review the build logs to review the build process</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w1xjTVsNbWm4eCTSR6ZYw.png" /><figcaption>Build logs</figcaption></figure><p>Let’s now review the architecture of the application thus far:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AX9mr4KZAkuHNmKEMnOB8A.png" /><figcaption>AWS CodeBuild and AWS Elastic Beanstalk</figcaption></figure><p>So far, we have created a build project on AWS <strong>CodeBuild</strong> to run the build process of the <strong>SimpleWebApp</strong> from my GitHub repository. We will be using this build project as the build step in the continuous delivery pipeline, which we will create in the next section of this project.</p><p><strong>3. Integrating AWS Create Delivery Pipeline Using AWS Codepipeline</strong></p><p>In this phase of the project, I will use AWS <strong>CodePipeline</strong> to set up a continuous delivery pipeline with source, build, and deploy stages. The pipeline will detect changes in the code stored in my GitHub repository, build the source code using AWS <strong>CodeBuild</strong>, and then deploy the simple web application to AWS Elastic Beanstalk.</p><p>Search for <strong>CodePipeline</strong> and navigate to <strong>CodePipeline </strong>to create a pipeline.</p><p>In this phase of the project, I will use AWS <strong>CodePipeline</strong> to set up a continuous delivery pipeline with source, build, and deploy stages. The pipeline will detect changes in the code stored in my GitHub repository, build the source code using AWS <strong>CodeBuild</strong>, and then deploy the simple web application to AWS Elastic Beanstalk.</p><p>Search for <strong>CodePipeline</strong> and navigate to <strong>CodePipeline </strong>to create a pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbGliDk3vuw-zOTZpdyHRg.png" /><figcaption>Create a pipeline on AWS Codepipeline</figcaption></figure><p>Follow the pipeline configuration below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WcKF5dqM_dKJsRoC-gmIDg.png" /><figcaption>Pipeline settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXF9N43P8yD47HssOvTpVQ.png" /><figcaption>Pipeline settings</figcaption></figure><p>Click on<strong> Connect to GitHub and Authorize AWS CodePipeline</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhpBdQGks0qPP-444VkaZw.png" /><figcaption>Authorize <strong>aws-codesuite</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKCi3RvOrW-RWBBAQ4ybww.png" /><figcaption>Pipeline Source stage settings</figcaption></figure><p>Configure the build stage as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N7E2DNDWdvq9aDL4k--dZw.png" /><figcaption>Build stage settings</figcaption></figure><p>Add a deploy stage as in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcD3i1wwlDKReQXysX4VeA.png" /></figure><p>Review and create the <strong>CodePipeline</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLgM9uWaBqHg4Urgo5umPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fFeMDeXrAfwL7rKGoyNk0A.png" /><figcaption>CodePipeline review</figcaption></figure><p>So far, we have created a continuous delivery pipeline on AWS CodePipeline with three stages: source, build, and deploy. The source code from the GitHub repo created previously is part of the source stage. That source code is then built by AWS CodeBuild in the build stage. Finally, the built code is deployed to the AWS Elastic Beanstalk environment which I created earlier.</p><p>Below is the current application architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPuiIGRei-Z0w5W7bttQdg.png" /><figcaption>Current application architecture</figcaption></figure><p>This brings us to the next phase where we finalize the pipeline and test the continuous delivery pipeline.</p><p><strong>4. Finalize the Pipeline and Test the continuous delivery pipeline.</strong></p><p>In this phase of the project, we are going to add a review stage between the Build and Deploy stage of the CodePipeline. The review stage will allow for a manual review before the complete pipeline deployment.</p><p>In CodePipeline, click on the <strong>SimpleWebApp</strong> pipeline then click on <strong>Edit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoTGqD9LZeKC8KjDq6rxow.png" /><figcaption>Editing the CodePipeline</figcaption></figure><p>Scroll down to the “<strong>+ Add Stage</strong>” between the <strong>Build</strong> and the <strong>Deploy</strong> section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LbqOuDdO3ogV2eeo-IwmgA.png" /><figcaption>Adding a new stage</figcaption></figure><p>Click on Add Stage and give it any name e.g. <strong>Manual-Review</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvNpzG2bJkfQuQcNL9odHQ.png" /><figcaption>Adding a Manual-Review stage</figcaption></figure><p>The <strong>Manual-Review</strong> stage is now added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T0HHhP7BA2x3QaBr8ac_yQ.png" /><figcaption>The <strong>Manual-Review</strong> stage</figcaption></figure><p>Configure the Manual-Review stage by adding an <strong>action group </strong>as in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1tFu-d5jwJSQdnfGSpRnA.png" /><figcaption>Added Manual approval as Action Provider</figcaption></figure><p>Click <strong>Done.</strong></p><p>Review the <strong>Manual-Review</strong> stage to confirm the <strong>Stage-Review</strong> action group has been added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CV-LjmNpvVZ7l3PyVlKLoQ.png" /><figcaption>Reviewing Manual Stage action group</figcaption></figure><p>Save the modification made</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ub1xIIqOJU2Ttypxt0FwQ.png" /><figcaption>Saving pipelines changes</figcaption></figure><p>To test the setup, navigate to your git repository and make changes to the app.js file then push to the commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r722iXB77cEaTKqpC6saxQ.png" /><figcaption>Modifying app.js file</figcaption></figure><p>I just added extra text to the last line of the code <em>“</em><strong><em>My simple Web Application ..”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cdjjZ_fv1xVx3sgAAvqIQ.png" /><figcaption>Pushing changes on add.js to the git repository</figcaption></figure><p>Click on Review to review and approve the changes pushed to the git repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*z5ZEQKns1UCwF1M9Q4hftA.png" /><figcaption>Manual Approval Stage-review</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*-pYgV5H2MObFDwT3h4o2Mw.png" /><figcaption>Manual Approval submission</figcaption></figure><p>Click on <strong>Submit </strong>above<strong> </strong>to approve the deployment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5ZAwlrjRW5roGRU_95sjg.png" /><figcaption>Manual approval in progress</figcaption></figure><p>Deployment is currently in progress as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4-GOwU4aisegNVbyBjmkA.png" /><figcaption>Deployment stage</figcaption></figure><p>Waiting for the deployment to complete:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VI-AQUmQ7ts5SJ-SXV_IkA.png" /><figcaption>Deployment to LAWS Elastic Beanstalk completed</figcaption></figure><p>Click on AWS Elastic Beanstalk:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uueiOfz_mU_UKTOTX0FJQ.png" /><figcaption>The SimpleWebApp deployed to AWS Elastic Beanstalk</figcaption></figure><p>Click on the application link:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Au4YKyqjsAwQQULblp1_w.png" /><figcaption>AWS Simple web application</figcaption></figure><p>So far we have successfully deployed the AWS Simple Web App to AWS Elastic Beanstalk and tested the Continuous Integration (CI) and Continuous Delivery (CD) of the AWS CodePipeline with AWS CodeBuild and AWS CodeDeploy.</p><p>Let us now review the current application architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4Xic4CwHDbI6etGpGXL5A.png" /><figcaption>Final application architecture</figcaption></figure><p>In this phase, we have used AWS CodePipeline to add a review stage with manual approval to the continuous delivery pipeline. Now, the code changes will have to be reviewed and approved before they are deployed to AWS Elastic Beanstalk.</p><p>Review the <strong>Manual-Review</strong> stage to confirm the <strong>Stage-Review</strong> action group has been added:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3142df84b2eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying AWS Lambda Function Using Terraform and Python]]></title>
            <link>https://richards-okiemute.medium.com/deploying-aws-lambda-function-using-terraform-and-python-8ea9bf667bf3?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ea9bf667bf3</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Fri, 30 Aug 2024 05:31:46 GMT</pubDate>
            <atom:updated>2024-08-30T14:46:23.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFHM-zQ0i27q7Njoj914lg.png" /><figcaption>Deploying AWS Lambda Function Using Terraform and Python</figcaption></figure><p>With most companies considering migrating to the cloud, building and innovating with serverless technology has become paramount as organizations design their architecture to be cost-optimized, secure, highly performant, reliable, operationally efficient, and sustainable. With this in mind, organizations adopting the serverless paradigm must leverage different serverless services such as Function as a Service (FaaS). AWS Lambda is Amazon Web Services&#39; core FaaS service which helps build and deploy your codes without the need to provision or manage servers.</p><p>Deploying services on the cloud is made easier by using the Infrastructure as Code (IaC) tool. Terraform is an IaC tool used to deploy cloud resources across cloud providers such as AWS, Azure, GCP, IBM, Oracle Cloud, Digital Ocean, etc. Terraform provides automation, consistency, modularity, scalability, etc.</p><p>In this mini project, we will deploy a simple AWS Lambda function with a Python runtime to deploy our Python code on AWS.</p><p><strong>Tools, pre-requisites, and services needed for this mini-project:</strong></p><ul><li>Terraform is installed in your local system.</li><li>Visual Studio (or any other IDE of your choice)</li><li>Familiarity with AWS services and Terraform.</li></ul><p>In this mini-project, we will create the following resources below:</p><ol><li>An AWS Lambda function to calculate the area and perimeter of a circle</li><li>AWS IAM role for Lambda execution</li><li>AWS IAM Policy</li><li>An AWS S3 Remote Backend to store the terraform state</li><li>A DynamoDB to enable terraform state locking and consistency check</li></ol><p>Below is the folder and file structure for deploying the AWS Lambda function using Terraform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*dKUG0T2KuWg3sUXWB2SjyQ.png" /></figure><p>The <strong>LAMBDA-TERRAFORM</strong> folder contains:</p><p>An <strong>iam</strong> subfolder that contains the <strong>lambda-assume-role-policy.json</strong> file and the <strong>lambda-policy.json</strong></p><p>These files contain the roles and policies to be created using Terraform for the lambda function to have the required permission.</p><p><strong>lambda-assume-role-policy.json:</strong></p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot; : [<br>      {<br>        &quot;Action&quot; : &quot;sts:AssumeRole&quot;,<br>        &quot;Effect&quot; : &quot;Allow&quot;,<br>        &quot;Sid&quot;    : &quot;&quot;,<br>        &quot;Principal&quot; : {<br>          &quot;Service&quot; : &quot;lambda.amazonaws.com&quot;<br>        }<br>      }<br>    ]<br>  }</pre><p><strong>lambda-role.json:</strong></p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>      {<br>        &quot;Sid&quot;: &quot;Stmt1724605563449&quot;,<br>        &quot;Action&quot;: [<br>          &quot;logs:CreateLogDelivery&quot;,<br>          &quot;logs:CreateLogGroup&quot;,<br>          &quot;logs:CreateLogStream&quot;,<br>          &quot;logs:DescribeDestinations&quot;,<br>          &quot;logs:DescribeLogGroups&quot;,<br>          &quot;logs:DescribeLogStreams&quot;,<br>          &quot;logs:DescribeQueries&quot;,<br>          &quot;logs:DescribeQueryDefinitions&quot;,<br>          &quot;logs:DescribeResourcePolicies&quot;,<br>          &quot;logs:GetLogDelivery&quot;,<br>          &quot;logs:GetLogEvents&quot;<br>        ],<br>        &quot;Effect&quot;: &quot;Allow&quot;,<br>        &quot;Resource&quot;: &quot;*&quot;<br>      }<br>    ]<br>  }</pre><p>The JSON policies above will be referenced in the<em> </em><strong><em>lambda-iam-role.tf</em>:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzNrtH-ASisFHitUitSryQ.png" /></figure><p>To create the AWS Lambda function, I will make a Python file called <strong><em>circle_terraform.py</em> </strong>which will contain the code to calculate the area and perimeter of a circle. This file will be referenced as a data source in the <strong><em>main.tf</em> </strong>file to archive the Python code as a Zip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtgihiNQIAfQeLxVLAH-GQ.png" /></figure><p>The <strong><em>main.tf</em></strong> file contains the AWS Lambda function resource:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0abRlnjg2hs_68fND4ybfQ.png" /></figure><p>Finally, the <strong><em>provider.tf</em></strong> file contains the AWS provider information, terraform version, deployment region <strong><em>“us-west-2”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unLnrp3MhRSltz9aXv9VZQ.png" /></figure><p>To proceed, I will first create an AWS S3 bucket to configure as a remote backend to store the Terraform state and a DynamoDB table to configure Terraform state locking. Note that the DynamoDB table must have a partition key named <strong><em>LockID</em></strong> of type <strong><em>String</em>.</strong></p><p>Configuring the AWS S3 remote backend for the terraform state:</p><p>I proceeded to create the AWS S3 bucket:</p><p>Bucket name: <strong><em>terraform-s3-backend77</em></strong></p><p>Bucket region: <strong>us<em>-west-2</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ta1koPbSyIL2f2FLHyQ6uQ.jpeg" /><figcaption>Created an AWS S3 bucket (<em>terraform-s3-backend77</em>) in us-west-2 to use as terraform remote backend.</figcaption></figure><p>Also, to ensure the consistency checking and locking of the terraform state file, I created an AWS DynamoDB table to configure the terraform state. Below are the settings of the AWS DynamoDB table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*MGnWA4uNJgT4YH8QwdhOzQ.png" /><figcaption>Settings for the AWS DynamoDB table for terraform state locking and consistency check</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6QBcxtepHrOZGQdWfsBTQ.png" /><figcaption>terraform-dynamodb with partition key (LockID) of type String.</figcaption></figure><p>Now, we have the requirements to proceed with the configuration of the remote terraform state file. Using the details from the AWS S3 bucket and the dynamoDB, I will now go ahead to create the terraform remote backend file: <strong><em>s3-remote-backend.tf</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*s2TB7Bjv9Tij70e7L1NkmQ.png" /><figcaption>S3-remote-backend.tf</figcaption></figure><p>Having created the required files with the configurations (terraform and Python code), I will proceed to use Terraform to deploy the resources:</p><p><strong>Step 1:</strong></p><p>Initialize Terraform backend using:</p><pre>terraform init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*Wj4Fk7iW7DhLCUOfPzRW5A.png" /><figcaption>terraform init</figcaption></figure><p><strong>Step 2:</strong></p><p>Review the plan resources to deploy using terraform plan:</p><pre>terraform plan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*znW4nPqzy2LDXmgioAadFQ.png" /><figcaption>terraform plan to create 3 resources</figcaption></figure><p>The terraform plan indicates that 3 resources will be created with 0 changes and destroy operations to be made.</p><p>The 3 resources to be created are:</p><p>i. Lambda Role:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*YTFaNwHJrkR6YVq5xJyaPQ.png" /><figcaption>Lambda role will be created</figcaption></figure><p>ii. Lambda Policy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*rNNHoEpoO7zSQX8y-_8ANg.png" /></figure><p>iii. Lambda Function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*_ITyDBiXc1Xdmlse4o4fIQ.png" /><figcaption>Lambda function will be created.</figcaption></figure><p>Step 3:</p><p>Deploy resources using:</p><pre>terraform apply <br><br>    or<br> <br>terraform apply -auto-approve </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYfKSMTQzlvMI_zIA765Cg.png" /><figcaption>terraform apply -auto-approve</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*1IU_iga4aVRpkKE9tODU3A.png" /><figcaption>Resources creation</figcaption></figure><p>From the above, I have used <strong><em>terraform apply </em></strong>to deploy these resources. Now, I will navigate to the AWS console to check for these resources to confirm successful deployment.</p><p>First, I will check for the terraform state file in the AWS S3 bucket named <strong><em>terraform-s3-backend77.</em></strong><em> </em>This bucket should contain a terraform state file name <strong><em>terraform-tfstate </em></strong>as named in our terraform <strong><em>s3-remote-backend.tf</em></strong> file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zw4bqbvhiZv9UKoBCHTZrw.png" /><figcaption>terraform-tfstate file created in the S3 remote backend bucket in AWS</figcaption></figure><p>I will proceed to check if there is a hash entry in the <strong><em>terraform-dynamodb</em></strong> table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUE-WexxLJwhigDtBXvQLw.jpeg" /><figcaption>hash entry for consistency and state terraform locking</figcaption></figure><p>Next, I will proceed to check for the AWS Lambda function <strong><em>“Circle_Calculation” </em></strong><em>on the AWS Console:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*D0xV6d3D54dceIm_efKdjg.png" /><figcaption>AWS Lambda “circle_calculation” created using terraform</figcaption></figure><p>Reviewing the AWS Lambda function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OH6-WGV3M1h5wu-uQy1L7Q.png" /><figcaption>AWS Lambda function overview</figcaption></figure><p>Reviewing the code section of the AWS Lambda function <strong><em>“circle_calculation” </em></strong><em>and comparing it with the code in our</em><strong><em> circle_terraform.py file</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWHy_egtUQ3r8QmXnykzhg.png" /><figcaption>Reviewing the AWS Lambda function code</figcaption></figure><p>Next, I am going to configure a test event to test the function by passing the JSON value below:</p><pre>{<br>&quot;radius&quot;: 10<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*Gz7MWopEl4tPXIYZSKo5iw.jpeg" /></figure><p>Reviewing the AWS Lambda Function (Circle_Calculation) output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsi-GsPcZjk7tuJuuoZ4Jg.png" /><figcaption>AWS Lambda execution response with calculated area and perimeter of circle</figcaption></figure><p>The AWS Lambda function (circle_calculation) was successfully deployed using Terraform and the Python code is functioning correctly.</p><p>Finally, I will navigate to AWS IAM to check for the AWS Lambda role (<strong><em>lambda-role</em></strong>) and the AWS lAM policy (<strong><em>lambda-policy</em></strong>) attached to the AWS Lambda role.</p><p>AWS Lambda role (<strong><em>lambda-role</em></strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOFifXWx5Gug82D33fkz4g.png" /><figcaption>AWS lambda role (<strong><em>lambda-role</em></strong>)</figcaption></figure><p>AWS lAM policy (<strong><em>lambda-policy</em></strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azQBEPkGKchPg0x0fvYxJg.png" /><figcaption>Lambda-policy added the lambda-role</figcaption></figure><p><strong>Conclusion:</strong></p><p>Using Terraform and Visual Studio Code, I was able to deploy the AWS Lambda function and the related resources needed to maintain the Terraform state remotely in an AWS S3 bucket, initiate consistency checking and state locking using Amazon DynamoDB, and provide the required role and permission for the AWS Lambda function.</p><p>The deployed AWS Lambda function was also tested by passing a JSON event with a radius value which the AWS Lambda function used as an input to calculate the area and perimeter of the circle.</p><p>You can find the Terraform and Python files in my GitHub repo <a href="https://github.com/richards-okiemute/Deploying-AWS-Lambda-Function-Using-Terraform-and-Python"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ea9bf667bf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Free Microsoft Advance Level Certification Vouchers in 2023 for Azure DevOps, Azure Security…]]></title>
            <link>https://richards-okiemute.medium.com/get-free-microsoft-advance-level-certification-vouchers-in-2023-for-azure-devops-azure-security-14be0a12e4c7?source=rss-29fed0d8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/14be0a12e4c7</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Richards Okiemute]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 20:29:00 GMT</pubDate>
            <atom:updated>2023-03-14T20:29:00.838Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Get Free Microsoft Advance Level Certification Vouchers in 2023 for Azure DevOps, Azure Security Engineer, Data Scientist, etc.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8N_tJtTU2Nn6yzEzbF6r_w.png" /><figcaption>Microsoft Certifications</figcaption></figure><p>Certifications open a vista of opportunities for us because <strong><em>“When we are skilled, we know it, but when we are certified, everyone knows it.”</em></strong> Having advance level certifications from Microsoft in Azure technologies cutting across Azure Administration, DevOps Engineering, Security Administration, etc., goes a long way to make you more confident and more appealing to top level employers in the tech space.</p><p>Having advance level certifications be a tedious, demanding, and expensive in terms of the associated financial cost in sitting for the examinations. For this reason, Microsoft and the Government of the Federal Republic of Nigeria setup the <strong>Digital Skills Nigeria</strong> program to opportunity for Nigerian residents to be certified in Advance level Microsoft technologies.</p><p><strong>About Digital Skills Nigeria</strong></p><p>This is a skill empowerment program by the Federal Ministry of Communications and Digital Economy in partnership with several institutions (including Microsoft) to enable Nigerian students to acquire cutting edge digital skills.</p><p>It comprises of building foundational and advance skills across the following categories:</p><ol><li><strong>Administrative Professionals:</strong> Develop essential skills needed for administrative roles, including communication, writing, time management, and must-have software skills.</li><li><strong>Project Manager:</strong> Discover how to manage projects effectively with scheduling, budgeting, and communication, and explore PM tools in Microsoft 365, etc.</li><li><strong>Business Analyst</strong>: Explore foundational business analysis concepts and understand key processes. Practice using software tools for common business analysis tasks.</li><li><strong>Systems Administrator:</strong> Learn about this multifaceted role — from managing on-site, cloud, physical, and virtual implementations, as well as storage security.</li><li><strong>Data Analyst:</strong> Explore foundational concepts used in data analysis and practice using software tools for data analytics and data visualization.</li><li><strong>Software Development</strong>: Understand the core concepts and structure of programming languages and learn how they’re applied.</li></ol><h3>Advance Certification Exams</h3><p>Besides these, there are selected advanced Certification Exams you can also write for FREE which are listed below:</p><p><a href="https://learn.microsoft.com/certifications/m365-security-administrator/?WT.mc_id=academic-83160-ooyinbooke"><strong>Security Administrator:</strong></a><strong> </strong>Microsoft 365 Security Administration (MS-500): Demonstrate your real-world knowledge of Microsoft 365 security implementation and administration, including identity, access, threat and information protection, governance, and compliance. Designed for professionals with Microsoft security experience.</p><p><a href="https://learn.microsoft.com/certifications/azure-data-scientist/?WT.mc_id=academic-83160-ooyinbooke"><strong>Azure Data Scientist</strong></a><strong>:</strong> The Azure Data Scientist DP-100 applies their knowledge of data science and machine learning to implement and run machine learning workloads on Azure; in particular, using Azure Machine Learning Service. This entails planning and creating a suitable working environment for data science workloads on Azure, running data experiments and training predictive models, managing and optimizing models, and deploying machine learning models into production.</p><p><a href="https://learn.microsoft.com/certifications/exams/pl-300?WT.mc_id=academic-83160-ooyinbooke"><strong>Power BI Data Analyst</strong></a><strong>: </strong>The Power BI data analyst PL-300 delivers actionable insights by leveraging available data and applying domain expertise. The Power BI data analyst collaborates with key stakeholders across verticals to identify business requirements, cleans and transforms the data, and then designs and builds data models by using Power BI.</p><p><a href="https://learn.microsoft.com/certifications/azure-security-engineer/?WT.mc_id=academic-83160-ooyinbooke"><strong>Azure Security Engineer</strong></a><strong>:</strong> This course will explore how to manage identities, provide role-based access, and secure data within an Azure ecosystem.</p><p>What will be covered?</p><p>Microsoft Azure Security Engineer (AZ-500): You will learn how to implement secure infrastructure solutions in the Microsoft Azure platform, Azure security core services, capabilities, etc.</p><p><a href="https://learn.microsoft.com/certifications/exams/az-104?WT.mc_id=academic-83160-ooyinbooke"><strong>Azure Administrator</strong></a><strong>: </strong>It manages Azure identities and governance; Exam AZ-104 implement and manage storage; deploy and manage Azure compute resources; configure and manage virtual networking; and monitor and back up Azure resources.</p><p><a href="https://learn.microsoft.com/certifications/devops-engineer/?WT.mc_id=academic-83160-ooyinbooke"><strong>Azure DevOps Engineer</strong></a><strong>: </strong>Designing and Implementing DevOps Solution (AZ-400): Configure processes and communications, Design and implement source control, Design and implement build and release pipelines, develop a security and compliance plan and implementing an instrumentation strategy.</p><h3>How to Participate</h3><p>See full article with instructions here: <a href="https://techcommunity.microsoft.com/t5/educator-developer-blog/free-microsoft-associate-and-expert-certification-vouchers-in/ba-p/3695976">https://techcommunity.microsoft.com/t5/educator-developer-blog/free-microsoft-associate-and-expert-certification-vouchers-in/ba-p/3695976</a></p><p>Reference:</p><p><a href="https://techcommunity.microsoft.com/t5/educator-developer-blog/free-microsoft-associate-and-expert-certification-vouchers-in/ba-p/3695976">https://techcommunity.microsoft.com/t5/educator-developer-blog/free-microsoft-associate-and-expert-certification-vouchers-in/ba-p/3695976</a></p><p><a href="https://aka.ms/learnstudent">https://aka.ms/learnstudent</a> for Microsoft offerings for students.</p><p><a href="http://digitalskillsnigeria.gov.ng/advanced/">http://digitalskillsnigeria.gov.ng/advanced/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14be0a12e4c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>