<?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 Dionne Little on Medium]]></title>
        <description><![CDATA[Stories by Dionne Little on Medium]]></description>
        <link>https://medium.com/@markeeta.d.little?source=rss-87752101d336------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L-_cFeJLuSbDlh9WHWP_rQ@2x.jpeg</url>
            <title>Stories by Dionne Little on Medium</title>
            <link>https://medium.com/@markeeta.d.little?source=rss-87752101d336------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:14:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@markeeta.d.little/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[Migrating Level-Up Bank’s Online Platform to AWS]]></title>
            <link>https://medium.com/@markeeta.d.little/migrating-level-up-banks-online-platform-to-aws-e05923559020?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/e05923559020</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 21:12:28 GMT</pubDate>
            <atom:updated>2024-12-03T21:12:28.096Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Migrating Level-Up Bank’s Online Platform to AWS</em></blockquote><blockquote><em>A Guide to Scalability, Security, and Innovation</em></blockquote><p>As digital banking becomes the standard, traditional banks are moving to the cloud to provide customers with a secure, seamless experience that can scale with demand. As becoming Cloudpreneurs let’s explore how Level-Up Bank is transitioning from its on-premises Linux infrastructure to Amazon Web Services (AWS), using a t2.micro EC2 instance to host its online banking platform.</p><p>This move enables Level-Up Bank to offer customers a more reliable and responsive online experience while taking advantage of AWS’s robust security, cost-effective scalability, and high availability. By the end of this guide, you’ll understand the key technical steps involved in setting up AWS EC2 for a banking application, the strategic benefits of migrating to the cloud, and how cloud-based infrastructure enables banks to remain agile in an evolving industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPCwa4TZqTdylcZMI2NK9g.png" /></figure><h4>Justification for Moving to AWS</h4><ol><li><strong>Scalability</strong>: AWS enables the bank to handle traffic surges without extra hardware.</li><li><strong>Reliability</strong>: AWS’s infrastructure provides fault tolerance, reducing downtime.</li><li><strong>Security</strong>: AWS includes encryption, access controls, and certifications to meet banking standards.</li><li><strong>Cost Efficiency</strong>: AWS’s pay-as-you-go pricing eliminates large upfront hardware costs.</li><li><strong>Flexibility</strong>: The bank can quickly deploy new features and adapt to market changes.</li></ol><h3><strong><em>Now let’s get started!</em></strong></h3><p><strong>Access the EC2 Dashboard</strong></p><ul><li>Once logged in, find the “Services” menu and select <strong>EC2</strong> to open the EC2 Dashboard.</li><li>Launch a New EC2 Instance</li><li>Click on the “Launch Instance” button to start the process of creating a new EC2 instance.</li></ul><p>2. Choose an Amazon Machine Image (AMI)</p><ul><li>Select an AMI that fits your requirements. For a free tier, I will choose Ubuntu</li></ul><p>3. Select the Instance Type</p><ul><li>Choose t2.micro from the list of instance types available for the free tier.</li></ul><p><strong>Key Pair : </strong>Create a new key pair if you don’t have one. Download the key pair to a known location.</p><p>4. Configure Instance Details</p><ul><li>Set the number of instances to 1.</li><li>Leave the network and subnet settings to their default values, unless specific changes are required for your setup.</li><li><strong>Network Settings:</strong> Allow SSH, HTTPS, and HTTP traffic from Anywhere.</li><li>Expand the “Advanced Details” section to enter your user-data script.</li><li>Add User-Data Script</li><li>In the “User Data” text box, input the following script to install Apache</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*2mMPM90f9psaYWPJLoaJQg.png" /></figure><pre>!/bin/bash<br># Update packages<br>sudo yum update -y<br><br># Install Apache web server<br>sudo apt install apache2 -y<br><br># Start Apache service<br>sudo systemctl start apache2<br><br># Enable Apache service to start on boot<br>sudo systemctl enable apache2<br><br># Check the status of the Apache service<br>sudo systemctl status apache2</pre><ol><li><strong>Find Public IPv4 Address:</strong> Once your instance is running, click on the instance ID to navigate to the instance details page.</li><li><strong>Access Website: </strong>Copy the Public IPv4 address and paste it into the browser’s search bar to verify that Apache is running. You should see the Apache default page.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*a7gMuD2YGgy8Cmp6lhQNKA.png" /></figure><p><strong>Create an AMI (Amazon Machine Image)</strong></p><ol><li><strong>Navigate to the EC2 Dashboard</strong></li><li><strong>Select the Instance. </strong>Choose the instance you created.</li><li><strong>Create Image</strong><br>From the “Actions” dropdown menu, select “Image and templates” and then “Create image” Enter a name and description</li><li><strong>Image Creation. </strong>Click on “Create image” to start the process.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*rJ8BVOEGjHVFlJ_pQwYU_g.png" /></figure><p><strong>4: Launch Instances Using the AMI</strong></p><ol><li><strong>Navigate to the “Images” Section:</strong> Go to the “Images” section of the EC2 dashboard.<br><strong>2. Launch Instance from Image:</strong> Select the AMI you created and click on “Launch instance from image”.<br><strong>3. Configure Instance Settings: </strong>Follow the same steps as before to configure the instance settings.<br><strong>4. Advanced Details:</strong><br> In the<strong> User data </strong>section, enter the following script to update the instance and set a custom message:</li></ol><p><strong>5. Launch the Instance:</strong> Click on Launch instances</p><p>Verify the New Instance</p><p><strong>1. Find Public IPv4 Address:</strong> Once the new instance is running, select the instance ID to navigate to the instance details page.<br><strong>2. Access Custom Message: </strong>Copy the Public IPv4 address and paste it into the browser’s search bar to verify the custom message.</p><p>bash<br> #!/bin/bash<br> yum update -y<br> echo “Women in tech matter $(hostname -f)” &gt; /var/www/html/index.html</p><p><strong>5. Launch the Instance:</strong> Click on Launch instance</p><p>Step 5: Verify the New Instance</p><ol><li><strong>Find Public IPv4 Address:</strong> Once the new instance is running, select the instance ID to navigate to the instance details page.</li><li><strong>Access Custom Message: </strong>Copy the Public IPv4 address and paste it into the browser’s search bar to verify the custom message.</li></ol><p>By following these steps, you can create a custom Amazon Machine Image (AMI) in AWS and use it to launch instances with pre-configured environments tailored to your specific requirements.</p><p>user-data script that updates all packages, installs the Apache web server, and starts the Apache service.</p><p>Once the EC2 instance is created, the bank verifies that the Apache webserver is downloaded and installed through the public IP. The bank opens a web browser and navigates to the public IP of the EC2 instance. If everything is configured correctly, the bank should see the default Apache web page.</p><p>Creating the AMI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*2cbTsH8Tsl_3LsGuzqiI9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*mDEEsVZ9lv4JfgS0OwqToA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSektEwMcSLhAeeRW0KRzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*-aG_C2KN7ca-leULYnCDeg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e05923559020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy A Jenkins Server With Terraform]]></title>
            <link>https://medium.com/@markeeta.d.little/deploy-a-jenkins-server-with-terraform-51cbbcbb14d0?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/51cbbcbb14d0</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 05:23:25 GMT</pubDate>
            <atom:updated>2024-12-03T08:21:20.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOrFz8D7O-9r-IMA3BQ9_w.png" /></figure><h4>Project Overview</h4><p>Cloudies these are tasks you will need to tackle to complete this project:</p><ol><li>Creating an EC2 instance in the default VPC.</li><li>Bootstrapping Jenkins on the EC2 instance using a startup script.</li><li>Configuring a Security Group to allow traffic on ports 22 and 8080.</li><li>Creating an S3 bucket for Jenkins artifacts.</li><li>Testing your setup by accessing Jenkins in a browser.</li><li>Push your code to GitHub.</li></ol><h4>What is Terraform?</h4><blockquote>Terraform is an open-source Infrastructure as Code (IaC) tool that allows you to define and provision infrastructure using a declarative configuration language. It’s widely used for automating the setup of cloud resources across various providers, such as AWS, Azure, Google Cloud, and many more.</blockquote><blockquote>Here are some key benefits of using Terraform:</blockquote><blockquote><strong>Consistency:</strong> Terraform allows you to manage infrastructure as code, ensuring that environments are consistent across different stages (development, testing, production).</blockquote><blockquote><strong>Version Control:</strong> Infrastructure configurations can be stored in version control systems like Git, providing a historical record of changes and facilitating collaboration.</blockquote><blockquote><strong>Scalability:</strong> Terraform can manage infrastructure at scale, making it easier to handle large, complex environments.</blockquote><blockquote><strong>Reusable Modules:</strong> You can create reusable modules for common infrastructure components, reducing duplication and simplifying management.</blockquote><h4><em>What is Jenkins and why is it useful?</em></h4><blockquote>Jenkins is an open-source automation server used to automate various parts of the software development process, particularly continuous integration and continuous delivery (CI/CD). It’s extremely useful for developers and DevOps teams to streamline and accelerate the development lifecycle.</blockquote><blockquote>Here are some reasons why Jenkins is valuable:</blockquote><blockquote><strong>Continuous Integration (CI)</strong>: Jenkins automates the process of merging code changes frequently into a shared repository. This helps catch bugs early and ensures that code is always in a deployable state.</blockquote><blockquote><strong>Continuous Delivery (CD)</strong>: Jenkins can automate the delivery process, enabling code to be deployed to production in a consistent and reliable manner. This ensures faster release cycles and higher-quality software.</blockquote><blockquote><strong>Extensibility</strong>: Jenkins has a vast ecosystem of plugins (over 1,000) that allow you to extend its capabilities to fit your needs. Whether it’s integrating with version control systems, build tools, or deployment platforms, Jenkins can be customized to suit various workflows.</blockquote><blockquote><strong>Scalability</strong>: Jenkins can distribute tasks across multiple machines, helping to balance the load and speed up the build process. This is especially useful for large projects.</blockquote><blockquote><strong>Ease of Use</strong>: Jenkins has a user-friendly web interface that makes it easy to configure and manage jobs, view build logs, and monitor the status of builds.</blockquote><blockquote><strong>Community Support</strong>: Being an open-source project, Jenkins has a strong and active community. This means a wealth of resources, tutorials, and plugins are available, along with regular updates and improvements.</blockquote><blockquote>In essence, Jenkins helps teams to deliver high-quality software faster and more efficiently, reducing manual effort and potential errors in the process.</blockquote><h4>Business Use Case:</h4><p>Your team would like to start using Jenkins as their CI/CD tool to create pipelines for DevOps projects. They need you to create the Jenkins server using Terraform so that it can be used in other environments and so that changes to the environment are better tracked. For the Foundational project you are allowed to have all your code in a single<a href="http://main.tf/"> main.tf</a> file (known as a monolith) with hardcoded data. Push all your code to GitHub and include the link to your repo in your documentation.</p><h4>Step-by-Step Instructions:</h4><h4>Install Terraform</h4><ol><li>Go to Terraform’s Download Page. <a href="https://www.terraform.io/">https://www.terraform.io/</a></li></ol><p>2. Pick the right version for your computer (Windows, Mac, or Linux). I am using a Mac.</p><p>3. Install it (just like you would install any app).</p><h4>Install Homebrew</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MuEKoErVOrGT2PuO2fLP9Q.png" /></figure><p>Next, I installed Homebrew since I am using a Mac <a href="https://brew.sh/">https://brew.sh/</a></p><p><strong>Why Homebrew is Needed for This Project</strong><br>Terraform is a critical tool for this project, as you’ll use it to deploy your infrastructure (EC2 instance, S3 bucket, security group). With Homebrew, you can install Terraform easily:</p><pre>brew install terraform</pre><p><strong>Installing AWS CLI</strong><br>The AWS Command Line Interface (CLI) is necessary to verify and troubleshoot your resources. Homebrew provides an easy way to install it:</p><pre>brew install awscli</pre><p>You can run these commands in either the Mac Terminal or the VS Code terminal, depending on your preference.</p><p>It’s essential to build infrastructure incrementally to avoid unexpected issues with your code.</p><p>For this project, I created a main.tf file, which Terraform can use. I included all necessary configurations in this file, referencing resources from the Terraform Registry and the official documentation.</p><p>To begin, I needed an AMI ID for the AWS resource. I started the instance launch process to get this ID, noted down the AMI ID, and did not proceed with actually launching the instance.</p><p>After installing Terraform, you can verify the installation by entering the command terraform -v in your terminal. This will display the version of Terraform you have installed. The output should look similar to this:</p><pre>Terraform v1.10.0<br>on darwin_amd64<br>+ provider registry.terraform.io/hashicorp/aws v3.38.0<br>+ provider registry.terraform.io/hashicorp/random v3.1.0</pre><p>If you see an output like this, it means that Terraform has been successfully installed.</p><p><strong>Jenkins Deployment</strong></p><p>To initiate the deployment of the Jenkins web server Create the main.tf file for Terraform</p><p>Using the resource HashiCorp registry documentation, including the hashicorp/aws section on the Terraform Registry, to define the necessary providers, resources, and other components for my Terraform configuration in this project.</p><p><a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs">https://registry.terraform.io/providers/hashicorp/aws/latest/docs</a></p><p>Prior to writing the main.tf file, I executed several commands in my CLI to establish the required environment variables.</p><p>Here are the commands needed to set up the environment variables in your CLI for Terraform:</p><ol><li><strong>AWS Access Key ID</strong>:</li></ol><pre>export AWS_ACCESS_KEY_ID=&quot;your_access_key_id&quot;</pre><ol><li><strong>AWS Secret Access Key</strong>:</li></ol><pre>export AWS_SECRET_ACCESS_KEY=&quot;your_secret_access_key&quot;</pre><ol><li><strong>AWS Region</strong>:</li></ol><pre>export AWS_DEFAULT_REGION=&quot;your_preferred_region&quot;</pre><p>These commands will set the necessary environment variables for Terraform to authenticate and interact with your AWS resources. Make sure to replace &quot;your_access_key_id&quot;, &quot;your_secret_access_key&quot;, and &quot;your_preferred_region&quot; with your actual AWS credentials and preferred region.</p><p><strong>Below is the main.tf file used:</strong></p><pre>resource &quot;aws_instance&quot; &quot;jenkins&quot; {<br>  ami           = &quot;ami-0453ec754f44f9a4a&quot; # Amazon Linux 2 AMI<br>  instance_type = &quot;t2.micro&quot;<br>  key_name      = var.key_name<br><br>  user_data = file(&quot;bootstrap.sh&quot;)<br><br>  security_groups = [aws_security_group.jenkins.name]<br><br>  tags = {<br>    Name = &quot;Jenkins-Server&quot;<br>  }<br>}<br><br>resource &quot;aws_security_group&quot; &quot;jenkins&quot; {<br>  name        = &quot;jenkins-sg&quot;<br>  description = &quot;Security group for Jenkins&quot;<br><br>  ingress {<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;107.196.50.76/32&quot;] # Your IP for SSH access<br>  }<br><br>  ingress {<br>    from_port   = 8080<br>    to_port     = 8080<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;] # Open to the world on port 8080<br>  }<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;] # Allow all outbound traffic<br>  }<br>}<br><br>resource &quot;aws_s3_bucket&quot; &quot;jenkins_artifacts&quot; {<br>  bucket = &quot;jenkins-artifacts-${random_id.bucket_id.hex}&quot;<br><br>  tags = {<br>    Name        = &quot;Jenkins-Artifacts&quot;<br>    Environment = &quot;Dev&quot;<br>  }<br>}<br><br>resource &quot;random_id&quot; &quot;bucket_id&quot; {<br>  byte_length = 8<br>}<br><br><br>resource &quot;aws_s3_bucket_acl&quot; &quot;s3_bucket_acl&quot; {<br>  bucket = aws_s3_bucket.jenkins_artifacts.id<br>  acl    = &quot;private&quot;<br>  depends_on = [aws_s3_bucket_ownership_controls.s3_bucket_acl_ownership]<br>}<br><br># Resource to avoid error &quot;AccessControlListNotSupported: The bucket does not allow ACLs&quot;<br>resource &quot;aws_s3_bucket_ownership_controls&quot; &quot;s3_bucket_acl_ownership&quot; {<br>  bucket = aws_s3_bucket.jenkins_artifacts.id<br>  rule {<br>    object_ownership = &quot;ObjectWriter&quot;<br>  }<br>}</pre><h4>Initialize Terraform</h4><p>Open the terminal, navigate to the project folder, and run:</p><pre>terraform init</pre><h4>Preview the Resources</h4><p>Run this command to preview what Terraform will create:</p><pre>terraform plan</pre><h4>Deploy Your Resources</h4><ul><li>Apply the changes to build your Jenkins server and S3 bucket:</li></ul><pre>terraform plan</pre><p>Type yes when prompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*7JMe47szS_gTtbf1jWj07A.png" /></figure><p>In the AWS Console these are the steps:</p><p>Next, I created an EC2 instance in the default VPC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKOmGOtqF0A6aU1vLPPJSg.png" /></figure><p>Then Configured a Security Group to allow traffic on ports 22 and 8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IejzKOcaLz-n-EqOVXVYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lYoGqqUJft9H-blaC-aPQ.png" /></figure><p>The next step is to Create an S3 bucket for Jenkins artifacts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*mmU_WznXUdlZO9Fe3gTm3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L9qWTSCV4HXzYDv5yJTPGQ.png" /></figure><p>Once you have deployed Jenkins using Terraform, you can test the setup by accessing Jenkins in your browser as show below in the screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*CzDey1BXJsfAV2QVuo-sPQ.png" /></figure><p>Lastly, Push your code GitHub.</p><p>Create a public GitHub repository and name it. Now you can push your Terraform configuration files to this repository for version control and easy access.</p><p>Here’s how I pushed my main.tf file to GitHub:</p><p><strong>Initialize the Local Repository</strong>:</p><p>Navigate to your project directory where main.tf is located.</p><p>Initialize a new Git repository:</p><pre>git init</pre><p><strong>Add Remote Repository</strong>:</p><p>Add your GitHub repository as a remote:</p><pre>git remote add origin https://github.com/your-username/Terraform.git</pre><p><strong>Add Files to Staging Area</strong>:</p><p>Add your main.tf file and any other relevant files to the staging area:</p><pre>git add main.tf</pre><ol><li><strong>Commit the Changes</strong>:</li></ol><p>Commit your changes with a meaningful message:</p><pre>git commit -m &quot;Initial commit of Terraform configuration&quot;</pre><p><strong>Push to GitHub</strong>:</p><p>Push your commits to the remote repository:</p><pre>git push -u origin master</pre><p>After following these steps, your main.tf file will be available in your GitHub repository. This ensures that your Terraform configuration is version-controlled and accessible for future reference or collaboration. You’ve created a public GitHub repository. Now you can push your Terraform configuration files to this repository for version control and easy access.</p><p>Check out my GitHub here:</p><p><a href="https://github.com/MLittlescp/TerraformJenkins">GitHub - MLittlescp/TerraformJenkins: Terraform Project1</a></p><p><strong>Takeaways:</strong></p><p>As part of our foundational DevOps journey, we automated the deployment of a Jenkins server using Terraform to streamline CI/CD pipeline creation. This project leveraged Infrastructure as Code (IaC) to define resources, ensuring consistency and tracking changes across environments.</p><p>We deployed an EC2 instance within AWS’s default VPC, configured it with a bootstrap script to install and start Jenkins, and secured it using a custom Security Group to allow controlled access on ports 22 and 8080. To store Jenkins artifacts securely, we created an S3 bucket with strict private permissions.</p><p>The entire project was structured in a monolithic main.tf file, making it simple yet effective for foundational learning. After verifying Jenkins&#39; accessibility via port 8080 and documenting the login screen, all code was pushed to GitHub for collaboration and version control.</p><p>This project not only highlights the power of Terraform in automating infrastructure but also lays the groundwork for implementing DevOps practices. Moving forward, this infrastructure will serve as a scalable solution for deploying CI/CD pipelines across various environments.</p><p>Take Care Techies until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51cbbcbb14d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Containerized Web Application Deployment]]></title>
            <link>https://medium.com/@markeeta.d.little/containers-2a19cbf59cab?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a19cbf59cab</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 05:23:00 GMT</pubDate>
            <atom:updated>2024-12-04T09:28:41.992Z</atom:updated>
            <content:encoded><![CDATA[<p>Level Up Solutions is a dynamic technology company that offers innovative web solutions to its clients. As part of their software development process, they have decided to adopt containerization using Docker to streamline their web application deployment. Docker provides Level Up Solutions with a flexible and efficient way to package, distribute, and run their applications in isolated containers, ensuring consistency and portability across different environments.</p><p>Level Up Solutions can harness the benefits of Docker containers, including consistency, portability, isolation, reproducibility, version control, scalability, streamlined deployment, and improved collaboration. These advantages contribute to more efficient and reliable web application deployments, enhancing the overall development and deployment processes for the company.</p><p>1. <strong>Consistency and Portability</strong>: By utilizing Docker containers, the company ensures consistency in the deployment process. Docker allows the application and its dependencies to be packaged together in a container, ensuring that the application runs consistently across different environments. This consistency makes it easier to move the application between development, testing, and production environments, enhancing portability and reducing potential deployment issues.</p><p>2. <strong>Isolation and Resource Management</strong>: Docker containers provide isolation, allowing the web application to run independently without interfering with the host system or other containers. This isolation ensures that the application’s resources, such as CPU, memory, and disk space, are effectively managed. By encapsulating the web application within a container, Level Up Solutions can avoid conflicts with other applications or services running on the same host.</p><p>3. <strong>Reproducibility</strong>: Docker allows Level Up Solutions to create a reproducible deployment environment. By specifying the exact packages and configurations needed for the web</p><p>application within the Dockerfile, the company can ensure that the deployment environment is consistent and reproducible across different stages of the software development lifecycle. This reproducibility simplifies troubleshooting and debugging processes by eliminating environmental discrepancies.</p><p>4. <strong>Version Control</strong>: Docker enables Level Up Solutions to version control their application deployments. By building Docker images from specific versions of the web application, the company can easily track and manage different versions of the software. This version control facilitates rollback to previous versions if needed and provides a clear history of changes made to the application.</p><p>5. <strong>Scalability</strong>: Docker containers offer scalability advantages. Level Up Solutions can scale their web application horizontally by running multiple instances of the containerized application, either on a single host or across multiple hosts. This scalability allows the company to handle increased user traffic and distribute the workload effectively.</p><p>6. <strong>Streamlined Deploymen</strong>t: Docker simplifies the deployment process for Level Up Solutions. With Docker containers, the company can package the web application along with its dependencies, libraries, and configurations into a single deployable unit. This packaged unit can be easily deployed on different servers or cloud platforms, reducing the time and effort required for manual installation and configuration.</p><p>7. <strong>Collaboration and DevOps Practices</strong>: Docker facilitates collaboration among development and operations teams. With Docker, Level Up Solutions can define the application’s infrastructure as code, making it easier to share and collaborate on deployment configurations. This aligns with DevOps practices, enabling faster and more efficient collaboration between teams, streamlining the development and deployment workflows.</p><p>Level Up Solutions can leverage Docker Hub for scalability, image sharing, and version control.. These advantages enable the company to streamline their development processes, foster collaboration, ensure reliable software releases, and adapt quickly to changing requirements.</p><p>1. Scalability: By pushing the Docker image of the web application to Docker Hub, Level Up Solutions gains the ability to scale their deployments efficiently. Docker Hub serves as a centralized repository for Docker images, allowing the company to easily distribute the web application image to multiple servers or cloud platforms. This scalability enables them to handle increased user demand and deploy the application across a cluster of servers.</p><p>2. Image Sharing and Collaboration: Docker Hub facilitates image sharing and collaboration within the company and with external stakeholders. By pushing the Docker image to Docker Hub, Level Up Solutions can provide access to the image for their development, testing, and operations teams. This simplifies the sharing of the web application image across different environments and enables seamless collaboration among team members. Additionally, external partners or clients can access the image from Docker Hub, fostering collaboration and streamlined deployment processes.</p><p>3. Version Control and Rollbacks: By leveraging Docker Hub, Level Up Solutions gains version control capabilities for their web application deployments. Each pushed image to Docker Hub represents a specific version of the application. This allows the company to track and manage different versions of the application, making it easier to roll back to previous versions if necessary. Version control ensures that the application deployment history is well-documented and facilitates reliable and controlled software releases.</p><h4>Requirements:</h4><p>1. Run a Docker Ubuntu container running detached and on port 80</p><p>a. Note: keep in mind that there are different Ubuntu images. Depending on the one you use, you may have to install some tools that come standard in other images.</p><p>2. Using BASH shell update all packages within the container .</p><p>3. Using BASH install Apache2 on the Ubuntu container.</p><p>4. Add a custom webpage.</p><p>5. Verify you can reach the webserver from your browser.</p><ul><li>Running AWS Linux EC2 instance</li><li>Visual Studio Code installed with the following extensions:</li></ul><blockquote>This guide outlines the steps for Level Up Solutions to adopt Docker containerization for efficient web application deployment. The goal is to create a Dockerized Ubuntu container, configure it to run Apache2, add a custom webpage, and verify its accessibility.</blockquote><h3>Step-by-Step Guide: Deploying a Dockerized Web Application with Ubuntu and Apache2</h3><p>This guide outlines the steps for Level Up Solutions to adopt Docker containerization for efficient web application deployment. The goal is to create a Dockerized Ubuntu container, configure it to run Apache2, add a custom webpage, and verify its accessibility.</p><h4>Prerequisites</h4><ol><li>Install Docker on your local machine or server. Refer to the <a href="https://docs.docker.com/get-docker/">Docker installation guide</a> for your operating system.</li><li>Basic understanding of Docker commands and Linux shell scripting (BASH).</li></ol><h3>Phase 1: Create and Run the Ubuntu Container</h3><ol><li><strong>Pull the Ubuntu Docker Image</strong></li></ol><pre>docker pull ubuntu:latest</pre><ul><li>This pulls the latest official Ubuntu image from Docker Hub.</li></ul><p><strong>2. Run the Ubuntu Container</strong></p><pre>docker run -d -p 80:80 --name ubuntu-web ubuntu:latest</pre><ul><li>-d: Run the container in detached mode.</li><li>-p 80:80: Map port 80 on the container to port 80 on the host.</li><li>--name: Assign a name to the container.</li></ul><h3>Phase 2: Update Packages Within the Container</h3><ol><li><strong>Access the Running Container</strong></li></ol><pre>docker exec -it ubuntu-web bash</pre><ul><li>Opens an interactive shell session inside the container.</li></ul><p><strong>2. Update All Packages</strong></p><p>Inside the container, run:</p><pre>apt-get update &amp;&amp; apt-get upgrade -y</pre><pre>apt-get update: Updates the package list</pre><pre>apt-get upgrade -y</pre><ul><li>Installs the latest versions of all packages.</li></ul><h4>Phase 3: Install Apache2 Web Server</h4><ol><li><strong>Install Apache2</strong><br> Inside the container, execute:</li></ol><pre>apt-get install apache2 -y</pre><ol><li><strong>Start Apache2 Service</strong></li></ol><pre>service apache2 start</pre><pre>Verify Apache2 Installation</pre><pre>service apache2 start</pre><ul><li>If successful, this command will return the default Apache2 welcome page.</li></ul><h4>Phase 4: Add a Custom Webpage</h4><ol><li><strong>Create a Custom HTML File</strong><br> Inside the container, create a new HTML file:</li></ol><pre>service apache2 start</pre><ol><li><strong>Restart Apache2 to Load Changes</strong></li></ol><pre>service apache2 restart</pre><ul><li>Phase 5: Verify Webserver Accessibility</li></ul><ol><li><strong>Find the Host IP Address</strong><br> On your host machine, run:</li></ol><pre>docker inspect -f &#39;{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}&#39; ubuntu-web</pre><ul><li>This retrieves the IP address of the container.</li></ul><ol><li><strong>Access the Webpage in a Browser</strong><br> Open your web browser and navigate to http://&lt;container-IP&gt;.<br> You should see the custom &quot;Welcome to Level Up Solutions!&quot; page.</li><li><strong>Verify Accessibility from Host</strong><br> Navigate to http://localhost (or your server&#39;s IP if running on a remote machine).</li></ol><h3>Phase 6: Push the Docker Image to Docker Hub</h3><ol><li><strong>Log in to Docker Hub</strong></li></ol><pre>docker inspect -f &#39;{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}&#39; ubuntu-web</pre><ol><li><strong>Commit Changes to Create a New Image</strong></li></ol><pre>docker commit ubuntu-web levelupsolutions/ubuntu-web:1.0</pre><ol><li><strong>Push the Image to Docker Hub</strong></li></ol><pre>docker push levelupsolutions/ubuntu-web:1.0</pre><ul><li>docker push levelupsolutions/ubuntu-web:1.0</li></ul><h3>Phase 7: Scale the Application</h3><ol><li><strong>Run Multiple Instances</strong></li></ol><pre>docker run -d -p 8080:80 --name ubuntu-web-instance2 levelupsolutions/ubuntu-web:1.0 docker run -d -p 8081:80 --name ubuntu-web-instance3 levelupsolutions/ubuntu-web:1.0</pre><ul><li>docker run -d -p 8080:80 --name ubuntu-web-instance2 levelupsolutions/ubuntu-web:1.0 docker run -d -p 8081:80 --name ubuntu-web-instance3 levelupsolutions/ubuntu-web:1.0</li></ul><ol><li><strong>Use a Load Balancer (Optional)</strong><br> Implement a load balancer like Nginx or an AWS Elastic Load Balancer to distribute traffic among instances.</li></ol><h3>Phase 8: Enable Continuous Deployment</h3><ol><li><strong>Integrate Docker Hub with CI/CD Pipelines</strong><br> Use CI/CD tools like Jenkins, GitLab CI/CD, or GitHub Actions to automate the building and pushing of updated Docker images.</li><li><strong>Monitor and Update Containers</strong><br> Regularly check container performance and update the base image or configurations as needed.</li></ol><p>By following this step-by-step guide, Level Up Solutions can harness Docker’s full potential, ensuring streamlined deployments, scalability, and efficient collaboration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a19cbf59cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Customer Experience with AI-Powered Image Recognition and Sentiment Analysis]]></title>
            <link>https://medium.com/@markeeta.d.little/enhancing-customer-experience-with-ai-powered-image-recognition-and-sentiment-analysis-e050d603efe8?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/e050d603efe8</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Tue, 26 Nov 2024 08:54:24 GMT</pubDate>
            <atom:updated>2024-11-26T08:54:24.108Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AW0wUj5pU4_vWC94LScGsA.png" /></figure><h3>Business Problem</h3><p>Level Up Llama Tech, a tech accessories company, faces challenges in managing customer feedback and product reviews efficiently. The company needs a solution to automatically analyze customer reviews, identify product images, and provide actionable insights to improve customer satisfaction and product quality.</p><h3>Proposed Solution</h3><p>Implement an AI-powered system that leverages Azure AI services to analyze customer reviews and identify product images. The system will use image recognition to classify product images and sentiment analysis to gauge customer satisfaction levels. By integrating these insights into the company’s customer relationship management (CRM) system, Level Up Llama Tech can quickly respond to customer needs and enhance product offerings.</p><h3>Benefits of the Solution</h3><ul><li>Improved Customer Satisfaction: Quickly identifying and addressing customer issues enhances the overall customer experience.</li><li>Efficient Review Management: Automating the review analysis process saves time and resources.</li><li>Enhanced Product Quality: Insights from sentiment analysis can guide product improvements and innovations.</li><li>Competitive Advantage: Leveraging AI technologies positions Level Up Llama Tech as a forward-thinking and customer-centric company.</li></ul><h4>Requirements</h4><h4>Foundational Solution</h4><ul><li>Azure Services: Azure Cognitive Services (Computer Vision, Text Analytics)</li><li>Description: Use Azure Cognitive Services to process a set of pre-collected customer reviews and images.</li></ul><blockquote>Here’s a step-by-step guide to help a cloud engineer explain how they would approach implementing an AI-powered solution for customer experience enhancement, tailored for a technical interview.</blockquote><p>In this project, I’ll outline an AI solution using Azure Cognitive Services to help Level Up Llama Tech automate the analysis of customer feedback. This will allow the company to efficiently process customer reviews and product images, drawing insights to enhance customer satisfaction and product quality.</p><h4>Project Overview</h4><p>Step 1: Set Up Azure Cognitive Services</p><p>To build this AI-powered solution, I’ll begin by setting up the necessary Azure Cognitive Services.</p><p>1. Create a Resource Group:<br> — In the Azure portal, navigate to Resource Groups and create a new one specifically for this project to keep resources organized.<br> <br>2. Set Up AI Services:<br> — Computer Vision: This will handle the image recognition tasks.<br> — In the Azure portal, search for Computer Vision and create a computer vision resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVpQnOV_LU0C0QodarK0Tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qakWCvs22gsGwJ1BTblfGw.png" /></figure><p>— Text Analytics: This service will be used for sentiment analysis of customer reviews.<br> — Search for Text Analytics in the portal and create a new resource for text processing tasks.</p><p>This setup will enable the application to analyze images and interpret review sentiments efficiently.</p><p>follow these steps below:</p><p><strong>-Subscription: Select your Azure subscription.</strong></p><p><strong>-Resource group: Select the resource group previously created</strong></p><p><strong>-Region: Select a region.</strong></p><p><strong>-Name: Name the Computer Vision resource</strong></p><p><strong>-Pricing tier: click on free tier</strong></p><p><strong>-Check the box to agree to the Responsible AI Notice terms</strong></p><p><strong>-Select Review + Create, then select Create</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ukqT560_QXc5_yu6Xg4s-w.png" /></figure><p>Step 2: Store Customer Data in Azure Storage</p><p>For easy access and processing, I’ll store customer images and review text data in Azure Blob Storage.</p><ol><li>Create a Storage Account:<br> — Go to Storage Accounts in the Azure portal, create a new storage account, and configure it to store both images and text data securely</li></ol><p>Follow the steps below:</p><p><strong>-Click on Storage accounts on the left side, then create on the storage accounts page</strong></p><p><strong>Enter in the details below in the Basics fields:</strong></p><p><strong>-Subscription: Select the subscription you wish to associate with this storage account</strong></p><p><strong>-Resource group: Attach an existing resource group or create a new one in this project I will be using my existing resource group</strong></p><p><strong>-Storage account name: type in a name for your account</strong></p><p><strong>-Region: Select the region of your choice</strong></p><p><strong>-Performance: Choose Standard</strong></p><p><strong>-Redundancy: Locally-redundant storage (LRS).</strong></p><ul><li><strong>Select Review + create, then select Create.</strong></li></ul><p><strong>Follow the steps below:</strong></p><p><strong>-Go to the storage account</strong></p><p><strong>-Click on Containers in the Data storage on the left hand side</strong></p><p><strong>-Click on + Container button</strong></p><p><strong>-Give the container a name</strong></p><p><strong>-Anonymous access level: Private (no anonymous access).</strong></p><p><strong>-Select Create.</strong></p><p><strong>Now you will see the new storage container listed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sj3N8-cUfUEZ2oxa4gD0GQ.png" /></figure><p>2. Upload Sample Data:<br> — In the storage account, create a Blob Container to hold the dataset.<br> — Upload sample product images and customer reviews for testing.</p><p>With this setup, the data is centrally stored and accessible for analysis.</p><p><strong>Follow the steps below:</strong></p><p><strong>-Select that was container that was just created</strong></p><p><strong>-Note that the container is empty select Upload to add the files</strong></p><p><strong>-Click browse for files then click the file to be upload click on upload</strong></p><ul><li><strong>All reviews and images have been uploaded</strong></li></ul><p>*please note that the images have to be saved as a JPEG for a successful upload*</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owqTmWrItPItBqF9u9bBJg.png" /></figure><p>Step 3: Image Analysis Using Azure Computer Vision</p><p>Now that the images are stored, I’ll configure the image recognition tool to identify product images using Azure’s Computer Vision.</p><p>1. Use the Analyze Image API:<br> — In the Computer Vision resource, access the *Analyze Image API*.<br> — Run the API on each uploaded image to categorize product images, identify objects, and capture tags related to specific product attributes.</p><p>This step enables the company to gain insights from images, like identifying specific product models and spotting quality issues.</p><ul><li><strong>Steps to create a Computer Vision resource follow the steps below:</strong></li></ul><blockquote>*Please note to make sure you are signed into the correct account or you will run into issues trying to complete this section.</blockquote><p><strong>-Click Create resource in the Azure portal</strong></p><p><strong>-Under Categories click AI Machine Learning</strong></p><p><strong>-Click on create under computer vision</strong></p><p><strong>-Go to the computer vision resource previously created then click go to vision studio</strong></p><p><strong>-The Get started with vision dashboard will pop up</strong></p><p><strong>-Click on Try it out under the detect common objects in images section</strong></p><p><strong>-Check the acknowledgment box under try it out and then click browse and click on all the images to analyze</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBqgXhC0ijuYYe2hC1NJcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzqW-dr_HuvA523giqPX0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvaJ_eibfOS22-v7JSYZGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9-AnzS4JAa1z7223nQWaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97H6ikx8qfBPXQo430xqzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GOTdSnRikoVek7PTlbdpw.png" /></figure><p>Step 4: Sentiment Analysis of Customer Reviews</p><p>Next, I’ll perform sentiment analysis on customer reviews to assess the general tone of customer feedback.</p><p>1. Access the Sentiment Analysis API:<br> — Within the Text Analytics service, use the Sentiment Analysis API to analyze review content.<br> — Process each review to determine the sentiment (positive, neutral, or negative) and assign a score representing customer satisfaction levels.</p><p>This sentiment analysis will enable Level Up Llama Tech to monitor customer feedback trends and respond proactively to issues</p><p>Search Sentiment Analysis resource that was created and select Get started with Language Studio.</p><p>Make sure to log in with your credentials to confirm you have the necessary authorization, just as you did previously.</p><p>A pop-up box will appear where you must select the correct Azure directory, subscription, resource type (Language), and the name of the sentiment analysis resource you previously set up.</p><p>Navigate to the <strong>Classify Text</strong> tab, then click on <strong>Try it out</strong> under the <strong>Analyze Sentiment and Mine Opinions</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rH2xzjox-PdN3sQqMtWTMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9GFXTcq8CJLUmmh5gLEoRQ.png" /></figure><p>On the following screen, you’ll have the option to either upload a .txt file with customer reviews or manually enter text into the designated box. The <strong>Enable opinion mining</strong> setting is automatically activated. For this process, I chose to upload a .txt file containing 20 customer reviews. Once ready, tick the acknowledgment checkbox and press <strong>Run</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYivxAOKQlAigwZP43FxlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlLzkrGuNIZGCdUWoWoPLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uQ00sbbXrTQuwaZuRtQuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBi8kGlMy4nMjWV8K22n1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YaDZZaw7Up6N-Q5NerqkPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-sMp_4Dfl6lNtXtCkRqBg.png" /></figure><p>Step 5: Summarize and Integrate Findings</p><p>Finally, I’ll summarize the findings from both image recognition and sentiment analysis to help the company act on the insights.</p><p>1. Review Analysis Results:<br> — Collect and document the results of the image and sentiment analyses.<br> — Highlight recurring issues or trends, like product defects identified in images or common complaints in reviews.</p><p>2. Integrate with CRM:<br> — Connect these insights to the CRM system to ensure customer service teams can quickly respond to identified issues and improve product quality.</p><p>Project Benefits</p><p>Artificial Intelligence shows great promise as we move forward to the way of the future, though it still has some limitations. In my testing, the Analyze Image API correctly identified 13 out of 16 images. However, it struggled with certain items, such as failing to recognize a many of the security camera images. When analyzing an image containing security cameras, it incorrectly focused on objects in the background when the main focus was the actual security camera. This pattern occurred with other images, indicating that the API’s accuracy which has vast room for improvement.</p><p>In contrast, the <strong>Analyze Sentiment and Mine Opinions</strong> tool in Language Studio was much more effective. It accurately interpreted customer reviews, this feature was especially impressive, as it effectively distinguished between positive and negative sentiments and provided reliable confidence scores for positive feedback.</p><p>Exploring these AI capabilities in the Azure Portal offered an engaging look into how these technologies operate. It’s exciting to see the potential applications of AI, and while there’s room for improvement, the progress so far is impressive.</p><p>Implementing this AI-powered solution will provide several advantages:<br>- Improved Customer Satisfaction: The team can address issues promptly, enhancing customer experience.<br>- Efficiency Gains: Automating review analysis will save time and allow customer service to focus on addressing specific concerns.<br>- Product Quality Enhancements: The insights gathered from customer sentiment and image recognition can guide product improvements.<br>- Competitive Edge: Leveraging AI demonstrates Level Up Llama Tech’s commitment to innovation and customer focus.</p><p>By following these steps, this AI solution will allow Level Up Llama Tech to efficiently manage customer feedback, improve product offerings, and strengthen its market position.</p><p>I thoroughly enjoyed this project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e050d603efe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Remote Administration and Troubleshooting of Azure VMs with Auto Scaling and Load Balancing]]></title>
            <link>https://medium.com/@markeeta.d.little/secure-remote-administration-and-troubleshooting-of-azure-vms-with-auto-scaling-and-load-balancing-5ff653c47b3b?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff653c47b3b</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 07:17:58 GMT</pubDate>
            <atom:updated>2024-11-06T03:20:11.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JqbZ2X7z-ohgriAnZjglBw.png" /></figure><blockquote>In this project, I’ll tackle the challenge of securely administering and troubleshooting over 100 Azure VMs for Level Up Corporation. To ensure high availability, scalability, and security, I’ll set up auto-scaling, load balancing, and secure remote access via Azure Bastion. This solution will boost productivity and minimize security risks.</blockquote><h3>Project Overview</h3><p><strong>Business Problem</strong><br>Level Up Corporation hosts critical Linux and Windows applications on more than 100 Azure VMs. IT teams, distributed globally, need a solution that provides:</p><ul><li>Secure, reliable remote access for troubleshooting and administration.</li><li>Scalable infrastructure to handle fluctuations in demand.</li><li>High availability to prevent service interruptions.</li></ul><p><strong>Solution Objectives</strong></p><ol><li><strong>Scalable Auto Scaling Groups</strong> to adjust VM instances as demand changes.</li><li><strong>Load Balancer</strong> for reliable traffic distribution across VMs.</li><li><strong>Secure Remote Access</strong> with SSH for Linux and RDP for Windows VMs, enhanced by Azure Bastion for secure portal-based management.</li><li><strong>Virtual Network Configuration</strong> with Network Security Groups (NSGs), routing rules, and VPN (optional) for secure internal and external communication.</li></ol><h3>Step 1: Deploy a Linux Azure VM with SSH Access</h3><p>First, I’ll deploy a Linux VM on Azure, configuring it to allow secure SSH access. This VM will serve as a test environment for setting up foundational components of the remote administration solution.</p><ol><li><strong>Create a Linux VM in Azure</strong>:</li></ol><ul><li>In the Azure portal, I go to the <strong>Virtual Machines</strong> section, select <strong>Create</strong>, and choose <strong>Linux</strong> as the operating system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*frd78F6DHKyKaaRhDaz12g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*jUG7gIYpr5k41u7PnD6Wkg.png" /></figure><ul><li>I generate a new key pair for secure SSH access, ensuring only authorized users can access the VM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*OIHhz2PCWPiTDWuZZ71dIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*bh3T4AUvbUVKGI8I_kuQ_A.png" /></figure><p><strong>Configure Network Security Group (NSG)</strong>:</p><ul><li>I create an NSG to control network traffic and limit SSH access to specific IP ranges.</li><li>I add an <strong>Inbound Security Rule</strong> to allow SSH access (port 22) from a trusted IP range only, reducing potential security risks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HF3JHL8DuKvlNHDYLB2ivQ.png" /></figure><ul><li>I add an <strong>Inbound Security Rule</strong> to allow SSH access (port 22) from a trusted IP range only, reducing potential security risks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLTIPA1xJCJ0_JwSf3mWIQ.png" /><figcaption>Inbound Rules Successful</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RW2pTamOYmaGtu0MXnqN5A.png" /></figure><h3>Step: Connect to Your VM</h3><p>Once your VM is deployed, follow these steps:</p><ol><li><strong>Locate the Public IP Address of Your VM</strong>:</li></ol><ul><li>Go to the <strong>Virtual Machines</strong> section in the Azure Portal.</li><li>Choose your VM and take note of the Public IP address displayed. You’ll use this to establish an SSH connection from your local machine.</li></ul><ol><li><strong>Establish an SSH Connection</strong>:</li></ol><ul><li>Open your terminal (or an SSH client if you’re using Windows).</li><li>Run the following command to initiate a connection using SSH:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*NhPJLgIbrUy5RelfHnC9rQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpSuGaIpgRs_lDtcxGfkDg.png" /><figcaption>Successfully SSH’d</figcaption></figure><h3>Step 2: Set Up Auto Scaling for VMs</h3><p>To ensure the infrastructure can handle traffic spikes, I’ll set up auto-scaling to dynamically adjust the number of VM instances.</p><ol><li><strong>Create a Virtual Machine Scale Set</strong>:</li></ol><ul><li>In the Azure portal, I select <strong>Virtual Machine Scale Sets</strong> and configure it to use the Linux VM image.</li></ul><h3>Step:3. Basic Configuration for Scale Set</h3><p>1. Select Subscription and Resource Group: Choose your subscription and create or select a resource group.<br>2. Name and Region: Enter a name for the scale set and choose the deployment region.<br>3. Image and Size: Select the OS image (Linux/Windows) and VM size.<br>4. Authentication: For Linux, select SSH key; for Windows, use a password.<br>5. Set Initial Instance Count and Scaling Rules:<br> — Initial count: 1 instance.<br> — Scale-out at 80% CPU usage; scale-in at 20% CPU.</p><p>Save settings and deploy. Once complete, navigate to Resource to review and enable Autoscale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*iZ2u2biJRTEGOgwd6NTM9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*11oO3RZPOzVveoNsqcXAqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*R_eVAiLXofSexICj9cuR0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*EfF3dfrKWNEIQjrTUfAe3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mITFs_4atFZ_BZCpIeLu_g.png" /></figure><h3>Benefits of This Solution</h3><p>This setup delivers the following key benefits:</p><ul><li><strong>Productivity &amp; Efficiency</strong>: The IT team can securely access VMs for troubleshooting without downtime.</li><li><strong>Security</strong>: Using Azure Bastion and NSGs, all connections are encrypted and minimize the risk of data breaches.</li><li><strong>Scalability &amp; High Availability</strong>: Auto-scaling and load balancing support growth and consistent uptime, enhancing user experience.</li><li><strong>Cost Efficiency</strong>: Optimized infrastructure helps reduce downtime and operational costs.</li></ul><h3>Summary</h3><p>By implementing auto-scaling, load balancing, and secure remote administration, Level Up Corporation’s infrastructure will be highly available, scalable, and secure. This setup ensures that the IT team can efficiently manage VMs without compromising security, enabling a flexible and resilient environment capable of supporting future growth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff653c47b3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Website Deployment with AWS S3 and CodePipeline]]></title>
            <link>https://medium.com/@markeeta.d.little/automating-website-deployment-with-aws-s3-and-codepipeline-cb737563bd53?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb737563bd53</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 04:51:39 GMT</pubDate>
            <atom:updated>2024-11-02T04:51:39.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeuMqgqmNRvWVFtfl-WkTg.png" /></figure><blockquote>Here’s a step-by-step blog post for a cloud engineer, like you, to explain to a recruiter how you’d automate the deployment of a website for a development team, making the update process seamless and efficient.</blockquote><p>In this project, I’ll walk through the process of automating the deployment of a static website using AWS services. Currently, developers are manually testing each code update, but by the end of this project, I’ll have created an automated CI/CD pipeline that triggers deployment every time code is pushed to a Git repository.</p><p><strong>Project Goals</strong><br>The primary objectives are:<br>1. Host a static website in an S3 bucket.<br>2. Set up a CI/CD pipeline to automatically deploy any code updates.<br>3. Verify that the deployment process works by making a change in the code.</p><p>— -</p><p><strong>Step 1:</strong> Set Up a Repository<br>First, I need a repository for the website files.</p><ol><li>Create a Repository: I can use GitHub or AWS CodeCommit for version control. For this example, I’m using GitHub.<br>2. Add Code: Load the HTML code into the repository by creating a new file or uploading existing HTML files.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*g98BoWhKLdAxZgM0UMa6AQ.png" /><figcaption>The html has been uploaded shown here</figcaption></figure><p>This Git repository will serve as the source for the pipeline.</p><p>Next open up a new browser to verify that the code is working correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvZM6zyupUACmJWcN7VkGA.png" /><figcaption>website has been verified</figcaption></figure><p><strong>Step 2:</strong> Configure an S3 Bucket for Static Website Hosting<br>Now I’ll set up an S3 bucket to host the static website.</p><ol><li>Create a New S3 Bucket: In the AWS Console, I navigated to S3, then create a new bucket, and name it (codepipelinebluebucket).<br>2. Enable Static Website Hosting: <br> — In the Properties tab, I enable the bucket for static website hosting.<br> — I specify an index document (website.html)</li><li>3. Set Permissions: Since it’s a public website, I modify the bucket policy to allow public access to the bucket contents.</li></ol><p>The bucket is now ready to host the site. I’ll use it as the destination for my CodePipeline deployment.</p><p><strong>Step 3:</strong> Set Up an AWS CodePipeline<br>With the website files in a Git repository and an S3 bucket ready, it’s time to set up the CI/CD pipeline. AWS CodePipeline will automate the deployment process by watching the repository for updates.</p><ol><li>Create a Pipeline: In the AWS Console, I go to CodePipeline and create a new pipeline.<br>2. Choose the Source Provider:<br> — For the source stage, I select GitHub and connect it to the repository where my website code is stored.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*rRLOrLZ8Cs-EUjjzH5YNfw.png" /><figcaption>Installing GitHub</figcaption></figure><p>— I configure the pipeline to trigger automatically on every new commit.<br>3. Add a Deploy Stage:<br> — In the Deploy stage, I set S3 as the deployment provider.<br> — I select my S3 bucket as the target for deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*QyYOxnY0ygDEw6gA_crZGA.png" /></figure><p>This completes the setup of my pipeline, which will now automate the deployment process.</p><p><strong>Step 4: </strong>Deploy and Test the Pipeline<br>With everything configured, I deploy the pipeline to see it in action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SX3cSLklUk2UDj_u_ktPDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*QwTfCB4PHGP5yiwNYPnuOw.png" /></figure><ol><li>Start the Pipeline: I start the pipeline manually to deploy the initial version of the website to S3.<br>2. Access the Static Website: I obtain the website URL from the S3 bucket’s static website hosting configuration and verify that I can view the site.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7HXEpTTkpYLNKFMr94YSw.png" /></figure><p>The deployment pipeline is now set up, and the initial code should be live on the static website.</p><p><strong>Step 5: </strong>Verify the CI/CD Pipeline with a Code Update<br>To confirm that the pipeline works correctly, I’ll make a small code change in the repository.</p><ol><li>Update the Code: I go to the Git repository, edit the HTML file (by adding a new line that says My Cloudprenures), and commit the update.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*HETPQxPd72GYV_LTQT9AJA.png" /></figure><p>2. Watch the Pipeline: AWS CodePipeline detects the change and automatically redeploys the updated site to the S3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zrpF_NlXvzhFbvDUjb47rQ.png" /></figure><p>3. Verify the Change: I refresh the static site URL to confirm that the updated content is now live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqwFShzMIVtntQgKb1Rx-A.png" /></figure><blockquote>Project Summary<br>By the end of this project, I’ve successfully set up an automated pipeline that saves developers time and effort. Each code update in the Git repository now triggers a deployment to the S3-hosted website, allowing the team to focus on development without manually managing deployment.</blockquote><p>Thanks for reading and stay consistent Techies we are on our way to Cloudprenures! See you on the other side!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb737563bd53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From On-Premises to the Cloud: Migrating Your Website to Azure Static Storage]]></title>
            <link>https://medium.com/@markeeta.d.little/from-on-premises-to-the-cloud-migrating-your-website-to-azure-static-storage-a2a7e0d9fcd1?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2a7e0d9fcd1</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Wed, 30 Oct 2024 04:13:27 GMT</pubDate>
            <atom:updated>2024-10-30T04:13:27.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-T8-86CvyfnUpCTu2kIzlg.png" /></figure><blockquote>Level Up Bank is a fictitious fintech startup that offers digital banking services to customers. The company’s website is a crucial tool for acquiring new customers and providing information about the services offered. Currently, the website is hosted on an on-premises server, leading to additional costs and complexity. To address these challenges, Level Up Bank has decided to move its website to Azure Blob Storage. Here’s how it can benefit from this decision:</blockquote><blockquote><strong>Cost Savings:</strong> Hosting a static website on Azure Blob Storage can be more cost-effective than using a dedicated server or virtual machine. You pay only for the storage you use and the operations performed, without needing to worry about the overhead of a running server.</blockquote><blockquote><strong>Improved Scalability</strong>: Azure Blob Storage automatically scales to meet demand, ensuring the website can handle increased traffic without manual intervention or downtime.</blockquote><blockquote><strong>High Availability</strong>: Azure Blob Storage is designed for high availability and redundancy across multiple regions, ensuring that the website is accessible to users at all times.</blockquote><blockquote><strong>Reduced Management Overhead</strong>: Azure Blob Storage is a fully managed service, reducing the burden on the IT team and allowing them to focus on more strategic tasks.</blockquote><p><strong><em>Requirements</em></strong></p><p><strong>Foundational:</strong></p><ul><li>Create an Azure Storage account and a Blob container.</li><li>Upload the provided index.html file to the Blob container.</li><li>Configure the Azure Blob container to host a static website. This involves setting the appropriate public access level and specifying the default document.</li><li>Verify internet access by navigating to the provided Azure Blob Storage endpoint in a private or incognito browser.</li></ul><blockquote>Let’s break the steps down for the Cloudpreneur’s trying to land their first role in cloud role!</blockquote><p>To move Level Up Bank’s website to Azure Blob Storage and meet the requirements, follow these steps:</p><h3>Create an Azure Storage Account and a Blob Container</h3><p>Prerequisites:</p><ol><li><strong>Log in to the Azure Portal:</strong> Go to the <a href="https://portal.azure.com/">Azure Portal</a> and sign in with your Azure account.</li><li><strong>Create a Storage Account:</strong></li></ol><ul><li>In the Azure Portal, click on “Create a resource.”</li><li>Select “Storage” and then “Storage account.”</li><li>Fill in the required details:</li><li>Subscription: Select your subscription.</li><li>Resource group: Create a new resource group or select an existing one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gibs0enTnvvOczdHgRPCxA.png" /></figure><ul><li>Storage account name: Choose a unique name for your storage account.</li><li>Region: Select the region closest to your users.</li><li>Performance: Standard.</li><li>Redundancy: Choose the redundancy option that meets your needs. I used (Locally-redundant storage (LRS).</li><li>Click “Review + create” and then “Create” after validation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*peyAQ05FAbLcfjzHnvXnwg.png" /></figure><p><strong>3. Create a Blob Container:</strong></p><ul><li>Once the storage account is created, navigate to it.</li><li>In the left-hand menu, under “Data storage,” select “Containers.”</li><li>Click “+ Container” to create a new container.</li><li>In the search bar go back to storage access, then to setting on the left drop down menu, in settings go, then configuration, then click Enable to Allow Blob anonymous access, click save.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmfOz9pLLhEjy1wChYvVog.png" /></figure><ul><li>Go back to Containers, select +Container to create a New Container</li></ul><p>Name the container and set the public access level to &quot;Container (anonymous read access for containers and blobs).&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzOVFbqZL8UsixprF0X9Hg.png" /></figure><h3>Upload the index.html File to the Blob Container</h3><ol><li><strong>Upload the File:</strong></li></ol><ul><li>In the storage account, go to the newly created container.</li><li>Click “Upload.”</li><li>Select the index.html file from your local machine and click &quot;Upload.&quot;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YMK-ZfVGzFoQPIO4CPKQJg.png" /></figure><h3>Configure the Blob Container to Host a Static Website</h3><ol><li><strong>Enable Static Website Hosting:</strong></li></ol><ul><li>In the storage account, select “Static website” under “Settings” in the left-hand menu.</li><li>Click “Enabled” to turn on static website hosting.</li><li>For the “Index document name,” enter index(4).html</li><li>Click “Save.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YQmHMYnNHPmweyiKiGQCw.png" /></figure><ol><li><strong>Get the Endpoint URL:</strong></li></ol><ul><li>After enabling static website hosting, you will see the primary endpoint URL. This URL is where your static website will be accessible.</li></ul><h3>Verify Internet Access</h3><ol><li><strong>Open a Private or Incognito Browser:</strong></li></ol><ul><li>Open a new private or incognito browser window.</li></ul><ol><li><strong>Navigate to the Endpoint:</strong></li></ol><ul><li>Enter the primary endpoint URL in the browser&#39;s address bar.</li><li>Verify that the index.html file loads correctly and the website is accessible.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*rl19nR5e3_IpgT-mQ3r65A.png" /></figure><h3>Benefits Summary:</h3><ul><li><strong>Cost Savings:</strong> Pay only for the storage used and operations performed, avoiding the costs of a dedicated server.</li><li><strong>Improved Scalability:</strong> Automatic scaling to meet demand.</li><li><strong>High Availability:</strong> Designed for redundancy across multiple regions.</li><li><strong>Reduced Management Overhead:</strong> Fully managed service allows the IT team to focus on strategic tasks.</li></ul><p>By following these steps, Level Up Bank can successfully transition its website to Azure Blob Storage, benefiting from cost savings, improved scalability, high availability, and reduced management overhead.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2a7e0d9fcd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Secure User Management and Access Control in Linux: A Step-by-Step Guide for Growing…]]></title>
            <link>https://medium.com/@markeeta.d.little/implementing-secure-user-management-and-access-control-in-linux-a-step-by-step-guide-for-growing-76825b5cd0c4?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/76825b5cd0c4</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 06:50:17 GMT</pubDate>
            <atom:updated>2024-09-17T06:50:17.288Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implementing Secure User Management and Access Control in Linux: A Step-by-Step Guide for Growing Organizations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxDo7xRq8Ht0P88ikPz1Ig.png" /></figure><p><strong>Secure and Efficient Infrastructure Management at LevelUp Bank</strong></p><p>In the current competitive banking environment, Level Up Bank recognizes the need to constantly evolve its IT infrastructure to meet the demands of its internal operations and customer services. With a rapidly growing team across various departments such as Development, Operations, and Analytics, a secure and efficient user management system is paramount. This system should not only facilitate seamless data accessibility and interdepartmental operations but also uphold our high standards for data privacy and security.</p><p>At the heart of this goal is the requirement to manage the various IT resources effectively and securely. This includes segregating data and system access according to the specific roles and responsibilities of each department. Each user must have access to their relevant data and systems but not to the others, thus ensuring a clean division of responsibilities, enhancing data security, and minimizing potential data breaches. This maps to the tasks in the foundational tier, highlighting the importance of directory and user group management in a real-world business context.</p><p>As we expand our team, ensuring the privacy and security of individual user profiles becomes crucial. At Level Up Bank, we respect the privacy of our employees and ensure that their individual profiles and associated data are not exposed to unauthorized viewing or editing. This is a critical aspect of data privacy and compliance regulations. Thus, the skills practiced in the advanced tier tasks are essential for managing user-level access and maintaining privacy in real-world corporate scenarios.</p><p>Moreover, considering the expanding scale of operations, it’s important to incorporate automation to manage repetitive administrative tasks efficiently. This is where the complex tier tasks come in. By creating scripts that automate user and access management tasks, we can save time, improve accuracy, and ultimately scale our processes as our team grows. This mirrors the real-world needs of large-scale organizations to automate their IT administrative tasks.</p><h3>Step-by-Step Guide</h3><h4>Prerequisite: Setup EC2 and SSH</h4><p>Before starting, ensure you have set up your AWS EC2 instance and are connected to the terminal using SSH. Here’s how I did it:</p><ul><li>First, I navigated to the folder containing my Key Pair in the terminal.</li><li>Then, I SSHed into the instance to connect to my <strong>Ubuntu</strong> environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*WW86kVVOjFRtO7fiNRu72w.png" /></figure><p>Once inside, I elevated my privileges to root by entering:</p><pre>sudo su</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*yBshqYG493Rw0gaVNAiBeg.png" /></figure><h4>Create Directories for Each Department</h4><ul><li>As the root user, create directories for <strong>Development</strong>, <strong>Operations</strong>, and <strong>Analytics</strong> using the mkdir command:</li></ul><pre>sudo mkdir /Development /Operations /Analytics</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*PWitH_4RDQiLrhSgYn1LdA.png" /></figure><p>After creating the directories, add several blank dummy files to each one using the touch command:</p><pre>sudo touch /Development/file1.txt /Development/file2.txt<br>sudo touch /Operations/file1.txt /Operations/file2.txt<br>sudo touch /Analytics/file1.txt /Analytics/file2.txt</pre><p>Add several blank dummy files to each directory using the appropriate commands. Do not use a text editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*qgrbBVArcO-ESBt1WPEviw.png" /></figure><p>then go back to use cd ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*SV-HHKbTkup3px-aVDi2Yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*WNyYCDVB2LUWfTpa4ruQAQ.png" /></figure><h4>Create 3 Groups in Linux: Developers, Operations, Data Analysts</h4><p>Use the groupadd command to create the necessary groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*W6F2xTTc3VqrRJLurpNexQ.png" /></figure><ol><li>Each group should only have view and access to their respective directory.</li><li>Use the chown command to change the owner of each directory to their respective group.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*uo3TO2lE568REMrZW2CP3A.png" /></figure><p>Use the chmod command to modify the permissions to the directory so that only the owner of the group can read, write and execute. Users should not be able to access the directory if they are not in the correct group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*E-UhJS2pFP6nRD8EWUTbmA.png" /></figure><h4><strong>Create the following users with the associated information</strong></h4><ol><li>Jess Waller, username= jwaller, email=jwaller@‌levelupbank.com, group= Developers</li><li>Blake Dorsey, username= bdorsey, email=bdorsey@‌levelupbank.com, group= Operations</li><li>Joey Ewart, username= jewart, email=jewart@levelupbank.com, group= Data Analysts</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*fUchQz5MPUexMd_CYupNUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*cElFseST9DNmFsxKc2wJmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*hQ8PsbTyIPC9XX2BoXRQaA.png" /></figure><h4>Switch to each newly created user and verify they are only able to see the directories associated with their Group and that they are able to view and open the files in the directory.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*_YYmek0iJ8hffeyZj5LlHw.png" /></figure><h4>Adjusting Permissions</h4><p>To modify the permissions on a file or directory, we use the command</p><pre>sudo chmod 700</pre><p>This command ensures that only the directory owner has full access to execute, read, and write, while other users, including group members, will have no permissions unless explicitly granted.</p><h4>Execute the following command to apply these permissions:</h4><pre>sudo chmod 700 /Development /Analytics /Operations</pre><p>By running this command, we have successfully restricted access. The owners of the directories now have full control, while other users do not have any access by default.</p><h4>Creating User Accounts</h4><p>LevelUp Bank needs specific users to have access to designated data. We can create these user accounts by using the “adduser” command, which allows us to add users to the system and specify their details.</p><p>Create the users by running:</p><pre>sudo adduser jwaller<br>sudo adduser bdorsey<br>sudo adduser jewart</pre><p>Repeat this process for each user to ensure they are successfully added to the system.</p><h4>Assigning Users to Groups</h4><p>Next, we need to add these users to their respective groups.</p><p>The “usermod -aG” command allows us to append users to groups without altering other group memberships.</p><p>For example, to add Jess Waller to the **Developers** group, run:</p><pre>sudo usermod -aG Developers jwaller</pre><p>Repeat this for the other users:</p><pre>sudo usermod -aG Operations bdorsey<br>sudo usermod -aG DataAnalysts jewart</pre><h4>Verifying User Access</h4><p>To ensure everything is set up correctly, switch to each user and verify that they can access their respective directories. Use the `su` command to switch users, like so:</p><pre>su - jwaller</pre><p>Once logged in as the user, navigate to the appropriate directory:</p><pre>cd /home<br>ls<br>cd Development/<br>ls</pre><p>This will confirm that the user has access to the correct files and directories within their group. Repeat the same steps for the other users to verify access.</p><h4>Conclusion</h4><p>By completing this project, we have gained hands-on experience in managing user permissions and directory access in a Linux environment. We learned how to securely organize departmental data by creating groups and directories and restricting access to only authorized users. Additionally, we used commands like chmod, chown, and usermod to enforce permissions and control access, ensuring that sensitive information remains protected.</p><p>This project highlights the importance of role-based access control (RBAC) in real-world scenarios, especially within a growing organization like LevelUp Bank. We reinforced the concepts of data privacy and security by allowing each user access only to their relevant data, thus minimizing the risk of unauthorized access or data breaches. Furthermore, we practiced efficient system administration techniques, which are crucial for managing larger teams and infrastructure as organizations scale.</p><p>Overall, this exercise provided valuable skills in Linux system administration, user management, and security practices that can be applied to various IT roles in the industry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76825b5cd0c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Serverless Website Deployment via CI/CD Pipeline]]></title>
            <link>https://medium.com/@markeeta.d.little/automating-serverless-website-deployment-via-ci-cd-pipeline-b9f5f636623c?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f5f636623c</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Sun, 08 Sep 2024 19:31:06 GMT</pubDate>
            <atom:updated>2024-09-08T19:31:06.841Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A Step-by-Step Guide to Deploying a Serverless Website with CodePipeline and AWS Lambda</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IX33kxkZaqafZizb.png" /><figcaption>Image credit: Damion Raymond</figcaption></figure><p><strong>Scenario</strong></p><p>Vitality Sphere is a health and wellness company dedicated to improving its clients’ well-being through various services and products. The company’s online presence has grown significantly, with a website hosted on an AWS EC2 instance. As the company expands, it seeks to modernize its infrastructure to improve performance, reduce costs, and gain better insights into user interactions.</p><p><strong>Project Overview</strong></p><p>The cloud engineers for Vitality Sphere are tasked with implementing a series of updates and improvements to the company’s website and deployment processes. These updates will ensure that Vitality Sphere maintains a high level of service and stays competitive in the market. The company wants to migrate its website to a more cost-effective and scalable solution, implement user interaction tracking, and streamline its deployment process.</p><blockquote>Let’s get started!!!</blockquote><h4>Task 1: Migrate the Website to a Static S3 Hosted Website</h4><p><strong>Objectives:</strong></p><ul><li><strong>Migrate Content:</strong> Move the website content (HTML, CSS, JavaScript, images) from the current EC2 instance to an S3 bucket configured for static website hosting.</li><li><strong>Set Up CloudFront:</strong> Configure CloudFront to serve the static website, ensuring reduced latency and improved load times for users worldwide.</li><li><strong>Update DNS:</strong> Use Route 53 to point the company’s domain to the CloudFront distribution.</li></ul><h4>Migrating Content</h4><blockquote>contributor (<a href="https://medium.com/@mrskeetonthe1">Jessica Ross</a>)</blockquote><p>Content migrating is the process of transferring files from one AWS service to another. In this scenario, Vitality Sphere, a health and wellness company, hosted a website on AWS EC2 but as the company’s online presence grew, so did the need to upgrade to a more secure, modernized infrastructure to improve performance, reduce costs, and gain better insights into user interactions.</p><p>AWS S3 is a way to store files in a more secure fashion that allows you to host a static website, and layer other services to implement scalability, reliability, performance, and track metrics on user insights.</p><p><strong>Objective:</strong> Move files from AWS EC2 to a S3 bucket.</p><p><strong>Migration Steps:</strong></p><ol><li>Connect to the EC2 instance via Sessions Manager.</li><li>Update the AWS packages so the terminal can communicate using AWS commands.</li></ol><pre>Sudo apt-get install s3cmd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*_1itR_FtkQVKPIzi" /><figcaption>Sudo apt-get install s3cmd</figcaption></figure><p>3. Locate the files within the instance.</p><pre>ls</pre><p>4. Know the path to get to the files.</p><pre>/var/www/html</pre><p>With the files located, migrating the files can happen in one of two ways:</p><ol><li>One at a time, which can be time-consuming depending on how many files you have.</li><li>Moving whole directories.</li></ol><p>I started by moving each file individually using the following command:</p><pre>Sudo aws s3 cp /var/www/html/about.html s3://pod1.dev.vitality.luitprojects.com/about.html</pre><p>This code allows elevated privileges to the user (sudo) on AWS S3 to copy (cp) from the location of the files in the EC2 instance (/var/www/html) file named (about.html) to the S3 bucket (s3://pod1.dev.vitality.luitprojects.com) with the file name at the end (about.html).</p><p>I quickly realized there was a faster way of moving files, by moving whole directories with the following command:</p><pre>Sudo  aws s3 cp /var/www/html/ s3://pod1.dev.vitality.luitprojects.com/ – -recursive</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*XzNLSiJoTaqbQQ1K" /><figcaption>Output</figcaption></figure><p>I repeated the process of copying the same files into the 2nd s3 bucket named:</p><ul><li>pod1.vitality.luitprojects.com</li></ul><h4>Hosting the Static Website on S3</h4><blockquote>contributors (<a href="https://medium.com/@hadianoor16">Hadia Noor</a>, <a href="https://medium.com/@mrskeetonthe1">Jessica Ross</a>)</blockquote><p>A static website is a basic type of website that contains web pages with fixed content.</p><p><strong>Objective:</strong> Create a static website</p><p><strong>Steps:</strong></p><ol><li>Locate the S3 bucket that has the objects you added to it.</li></ol><ul><li>pod1.dev.vitality.luitprojects.com</li><li>pod1.vitality.luitprojects.com</li></ul><p>2. Click on the highlighted bucket and the properties tab. Scroll to the bottom of the page and edit Static Web Hosting.</p><p>3. Toggle ‘Enable static web hosting and host a static website’. Enter index.html under index document and save changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*MPgZTUa1ZBKMxTF3" /><figcaption>Static Website Hosting</figcaption></figure><p>Repeat the process for the second bucket. There should be two static websites hosted, one for each bucket. The bucket policies will be different to reflect what is allowed and how each bucket interacts with users. Be mindful of who and what you allow in each bucket. That is very important to keep the buckets safe and secure.</p><h4>Hosted Zones</h4><p>AWS Route 53 hosted zones are like a well-organized container for DNS records, and they play a crucial role in managing how traffic flows for a specific domain.</p><p><strong>Objective:</strong> Create a hosted zone for pod1.dev.vitality.luitprojects.com</p><ol><li>Search Route 53 in AWS and select Hosted Zones from the dashboard. Click<strong> Create record</strong>.</li></ol><ul><li>Give it a domain name</li><li>Set the type to <strong>Public hosted zone</strong></li><li>Click <strong>Create hosted zone</strong></li></ul><p>2. Once the hosted zone is created, edit the record.</p><ul><li>Leave the record name as default</li><li>Record type will be ‘A-Routes traffic to a IPv4 address and some AWS resources</li><li>Toggle Alias</li><li>Route traffic to ‘Alias to S3 website endpoint</li><li>Locate the region the S3 was created in</li><li>Enter S3 endpoint (name of the record)</li><li>Simple routing policy</li><li>Toggle evaluate health targets to ‘yes’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*zMZo8AECmwlhZeXO" /><figcaption>Route 53 Hosted Zone Setup</figcaption></figure><h3>Deploy Amazon CloudFront Distribution for Production Website</h3><blockquote>contributor (<a href="https://medium.com/@hadianoor16">Hadia Noor</a>)</blockquote><p>Amazon CloudFront is a web service that speeds up the distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations. When a user requests content that you’re serving with CloudFront, the request is routed to the edge location that provides the lowest latency (time delay), so that content is delivered with the best possible performance.</p><p>In this task, we will integrate the S3 bucket to CloudFront to achieve seamless performance for our website content delivery.</p><h4>Steps:</h4><ol><li>Go to CloudFront and click Create Distribution. Choose prod S3 bucket as Origin domain from dropdown.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*YAU0vb7AG-ltsG3B" /><figcaption>Create distribution</figcaption></figure><p>2. For Origin access, choose Origin Access Control setting (OAC) instead of Public. It makes sure that your bucket is not accessible publicly by everyone and is only accessible via CloudFront. (Create new OAC, leave the defaults, and click Create).</p><blockquote>Notice that you must update your bucket policy at the end that CloudFront provides you.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6Soufj-PUQUo-QJn" /><figcaption>Origin access control settings</figcaption></figure><p>3. For Default cache behavior choose Redirect HTTP to HTTPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*cGKm8w36Bc52pWtA" /><figcaption>Default cache behavior settings</figcaption></figure><p>4. Keep Cache key and origin requests as Recommended settings.</p><p><strong>Note:</strong> You can also change the policy to ‘Caching Disabled’ if you are testing some changes on the webpage to see if CloudFront is serving the right content as Cache invalidations will cost you some money and you don’t want to wait for TTL to expire. This setting can also be changed later once the distribution is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*N0Tr9uWOjTo-lAp3" /><figcaption>Caching Optimized</figcaption></figure><p>5. Scroll down to Web Application Firewall (WAF). Keep the WAF to “Do not enable security protections” for now.</p><p>6. Scroll down to Settings, and choose “Use all edge locations (best performance)”.</p><ul><li>Click ‘Add item’ copy your registered domain name in this field and choose the custom SSL certificate you requested from AWS. Please refer to this document to request an SSL certificate for your domain.</li></ul><p><a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html">https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*5dnw4NFlBlxhan7R" /></figure><p><strong><em>Why alternate domain name:</em></strong></p><p>When you create a distribution, CloudFront provides a domain name for it, such as d111111abcdef8.cloudfront.net. Instead of using this provided domain name, you can use an alternate domain name (also known as a CNAME).</p><p><strong><em>Why we need an SSL certificate:</em></strong></p><p>To add an alternate domain name (CNAME) to a CloudFront distribution, you must attach to your distribution a trusted, valid SSL/TLS certificate that covers the alternate domain name. This ensures that only people with access to your domain’s certificate can associate with CloudFront a CNAME related to your domain.</p><p>You can add other domain names as well but that should be covered by your SSL certificate. For example, the certificate requested as *.example.com can cover domains like marketing.example.com, web.example.com, support.example.com, etc. However, you can’t add alternate domain names that are at levels higher or lower than the wildcard. For example, you can’t add the alternate domain names example.com or marketing.product.example.com.</p><p>This is detailed documentation from AWS about using alternate domain names:</p><p><a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html">https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html</a></p><p>7. Use index.html for ‘Default root object’. This ensures that index.html is returned by default when the user requests the root URL (/) instead of a specific object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*LC25Jz4NlDuEFTBc" /></figure><p>Click ‘Create distribution’. It will take some time as CloudFront is Deploying. When it’s ready, copy the distribution domain name and you will see your webpage is now being served by CloudFront.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6h9Nn-6LuZbbHIdA" /><figcaption>Website served by CloudFront</figcaption></figure><p>Also, notice that the webpage loaded faster compared to when it was served from the former EC2 instance or S3 bucket. CloudFront speeds up content delivery by leveraging its global network of data centers, known as edge locations, to reduce delivery time by caching your content close to your end users.</p><h4>DNS Configuration</h4><blockquote>contributor (<a href="https://medium.com/@labossiere01">John Labossiere</a>)</blockquote><p>A <strong>DNS (Domain Name System)</strong> record is critical for mapping URLs to IP addresses and directing internet traffic to the correct endpoints. An <strong>A Record (Address Record)</strong> maps a domain name to an IPv4 address.</p><p><strong>Amazon Route 53</strong> is a DNS web service by AWS that helps route user requests to applications hosted on AWS or elsewhere. It offers domain registration, DNS routing, and ensures traffic to endpoints. With multiple routing options and smooth integration with AWS services like CloudFront and S3, Route 53 makes managing web applications easier.</p><p><strong>Objective:</strong></p><ol><li>Direct the production domain to the CloudFront distribution, ensuring the S3 bucket is accessible only through CloudFront as per security requirements.</li><li>Modify the Route 53 DNS record to direct the development domain to the dev static S3 website.</li></ol><p><strong>Update Production DNS Record to Point to CloudFront Implementation steps:</strong></p><ol><li>Navigate to Route 53 management console.</li><li>Click on ‘Hosted zones’.</li><li>Click on ‘<strong>pod1.vitality.luitprojects.com</strong>’<strong>.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*XEV77PECZQ8FCQ4K" /></figure><p>4. Create a new record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*_PzmazUdnyN4E6om" /><figcaption>New record creation</figcaption></figure><p>5. Select ‘<strong>A record</strong>’ for Record Type.</p><p>6. Ensure the ‘<strong>Alias</strong>’ option is set to ‘<strong>Yes</strong>’.</p><p>7. For ‘Route traffic’ select ‘<strong>Alias to CloudFront distribution</strong>’.</p><p>8. Choose the CloudFront distribution domain ‘<strong>d34e450snuwv6b.cloudfront.net</strong>’.</p><p>9. Save the new DNS record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LKB83KVgusPXPT2V" /><figcaption>Record configuration</figcaption></figure><p>10. Test the setup by searching the URL and using the ‘<strong>nslookup</strong>’ command to verify the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*Yc6CPvQXbjrLfovX" /><figcaption>Test URL with ‘nslookup’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*mir14eKFus_-1o8B" /><figcaption>Website URL displaying correctly</figcaption></figure><p><strong>Update Development DNS Record Implementation steps:</strong></p><ol><li>Select the existing <strong>A record</strong> for ‘<strong>pod1.dev.vitality.luitprojects.com</strong>’ in the Route 53 management console</li></ol><p>2. Confirm that it is an <strong>A record</strong> and points to the S3 website endpoint ‘<strong>s3-website-us-east-1.amazonaws.com</strong>’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*q3waP7-i0fFevm2z" /><figcaption>Confirm A record endpoint</figcaption></figure><p>3. Since the Dev DNS record of ‘<strong>pod1.dev.vitality.luitprojects.com</strong>’ is already correctly set up and pointing to the S3 website endpoint, there is no need for further action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*4HJQRUNJGUoFyHH0" /><figcaption>DNS Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ue4LYjJpgtpsE_w-" /><figcaption>DNS Record settings</figcaption></figure><p>4. Verify the configuration by searching the URL and running the ‘<strong>nslookup’</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/0*EDgD3n7tgY8TW0wH" /><figcaption>nslookup output</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*I9UTTdiTCkLd6FSa" /><figcaption>Website displaying correctly</figcaption></figure><h4>Task 2: Create an API for User Interaction Tracking</h4><blockquote>contributors (<a href="https://medium.com/@naperry2011">Nicholas Perry</a>, <a href="https://medium.com/@aparker735">Aynda Parker</a>, <a href="https://medium.com/@markeeta.d.little">Dionne Little</a>)</blockquote><p><strong>Objectives:</strong></p><ul><li><strong>Set Up DynamoDB for Efficient Data Storage:</strong><br>Dependency: None, but needs to be set up before Lambda functions utilize it.</li><li><strong>API Development:</strong> Develop an API that triggers a Lambda function to record the time a user visits a page.</li><li><strong>Data Storage:</strong> Store the recorded data (timestamp and page URL) in a DynamoDB table.</li></ul><p><strong>Amazon DynamoDB</strong> is a fully managed NoSQL database service provided by AWS. It offers fast and predictable performance with seamless scalability. DynamoDB is designed to handle high throughput of read and write operations and can scale horizontally by adding more partitions. It supports both document and key-value store models and is optimized for low latency and high performance.</p><h4>Establish a DynamoDB Table</h4><p><strong>Steps:</strong></p><ol><li><strong>Open the DynamoDB Console</strong>:</li></ol><ul><li>Go to the<a href="https://aws.amazon.com/console/"> AWS Management Console</a>.</li><li>Navigate to the DynamoDB service.</li></ul><p><strong>Create a New Table</strong>:</p><ul><li>Click on “Create table”.</li><li><strong>Table name</strong>: TeamBlue_DynamoDB</li><li><strong>Partition key</strong>: Timestamp (String)</li><li><strong>Sort key</strong>: Page (String)</li></ul><p><strong>Set Table Settings</strong>:</p><ul><li>For this example, you can use the default settings. Optionally, adjust the read and write capacity modes based on your expected load (e.g., use on-demand capacity mode for automatic scaling).</li></ul><p><strong>Create the Table</strong>:</p><ul><li>Click on “Create” to establish the table.</li></ul><h4>Creation of Lambda Function and Setup of API Gateway</h4><p>Lambda functions, part of AWS Lambda service, offer several benefits that make them highly advantageous for building serverless applications and executing backend tasks efficiently:</p><ul><li>No Server Management</li><li>Automatic Scaling</li><li>Flexibility in Programming Languages</li><li>Event-Driven Model and so much more</li></ul><p><strong>Lambda Function Creation</strong></p><p><strong>Steps:</strong></p><ol><li><strong>Click on “Create function”</strong>:</li></ol><ul><li>On the Lambda dashboard, click on the orange “Create function” button.</li></ul><p>2.<strong> Select “Author from scratch” to create a new function.</strong></p><p>3. <strong>Basic Information</strong>:</p><ul><li><strong>Function Name</strong>: (team_blue)</li><li><strong>Runtime</strong>: Choose the runtime environment (Python 3.11)</li><li><strong>Role</strong>: This was given (LambdaToDynamoDB)</li></ul><p>4. <strong>Configure Triggers</strong></p><ul><li>Add Trigger (API Gateway)</li><li>Configure Trigger (POST Method)</li></ul><p>We have to add our script under the code section. This code was given and we had to tweak the code just a bit.</p><p>An example of our code is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*lKVAdeKjZg2SlBd3" /><figcaption>Code</figcaption></figure><blockquote>Our code was tested and deployed for future usage.</blockquote><h4>Create a New API</h4><blockquote>contributor @<a href="https://medium.com/@markeeta.d.little">dionnelittle</a></blockquote><p>Creating an API Gateway for Vitality Sphere serves to enhance scalability by efficiently handling increased web traffic and dynamic scaling, reducing costs through a serverless architecture with pay-per-use pricing, and improving performance using caching and edge-optimized endpoints. It also facilitates user interaction tracking for better insights and real-time analytics, streamlines deployment with versioning, staging, and CI/CD integration, and ensures robust security with access control and protection against web threats. These improvements will make Vitality Sphere’s infrastructure more scalable, cost-effective, and performant, providing better user insights and a streamlined deployment process.</p><p><strong>Steps:</strong></p><ol><li>Click on <strong>Create API</strong>.</li><li>Choose the type of API you want to create. You can select between:</li></ol><ul><li><strong>HTTP API</strong>: For creating HTTP-based APIs.</li><li>Click <strong>Build</strong> under the chosen API type.</li></ul><h4>Configure API Settings</h4><ol><li><strong>API Name</strong>: Enter a name for your API our name is TeamBlue_API.</li><li><strong>Description</strong>: (Optional) Enter a description for your API.</li></ol><h4>Create Resources and Methods</h4><ol><li>In the API Gateway console, select your API from the list. TeamBlue_API.</li><li>Under the <strong>Resources</strong> section, click <strong>Create Resource</strong>.</li><li>Enter a resource name and path, then click <strong>Create Resource</strong>.</li><li>To create a method, select the newly created resource.</li><li>Click on <strong>Actions</strong> and select <strong>Create Method</strong>.</li><li>Choose an HTTP method ( POST) and click the checkmark.</li><li>Configure the method settings, such as integration type (Lambda Function, HTTP) and the corresponding configurations.</li></ol><h4>Deploy the API</h4><ol><li>After creating the resources and methods, click on <strong>Actions</strong> and select <strong>Deploy API</strong>.</li><li>Create a new stage TeamBlue_API.</li><li>Enter a stage name and click <strong>Deploy</strong>.</li></ol><h4>Test the API</h4><ol><li>Once deployed, go to the <strong>Stages</strong> section and select your stage. TeamBlue_API.</li><li>You will see the Invoke URL for your API. Use this URL to test your API using Postman.</li></ol><h4>Additional Configuration</h4><ul><li><strong>Enable CORS</strong>: If you need to enable Cross-Origin Resource Sharing (CORS), go to the method settings, click on <strong>Enable CORS</strong>, and follow the prompts.</li><li><strong>Custom Domain Names</strong>: Set up a custom domain name for your API if needed.</li><li><strong>API Keys and Usage Plans</strong>: Configure API keys and usage plans for better management and security.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*fxtXJlnU-FOa3_aO" /><figcaption>CORS configuration</figcaption></figure><h4>Integrate Website with API Gateway</h4><p><em>contributor: </em><a href="https://medium.com/u/ed0b00de872a"><em>Nicholas Perry</em></a></p><h4>Description</h4><p>Update the static website code to include interaction with the newly configured API Gateway. This involves adding or modifying JavaScript in script.js to send data to the backend via API calls.</p><p>We need to update the website by going to CodeCommit, add the API URL to the script.js file and commit that file to update.</p><p>Grab the API URL from the API Gate→Team_BlueAPI→Stages: <a href="https://2djcuxzy4g.execute-api.us-east-1.amazonaws.com/metrics">https://2djcuxzy4g.execute-api.us-east-1.amazonaws.com/metrics</a></p><p>Once you have the URL got to code commit and follow the following steps<br><strong>Steps</strong></p><h4>Navigate to AWS CodeCommit</h4><ol><li>Sign in to the AWS Management Console.</li><li>Open the <strong>CodeCommit</strong> console at<a href="https://console.aws.amazon.com/codecommit"> https://console.aws.amazon.com/codecommit</a>.</li></ol><h4>Open Your Repository</h4><ol><li>In the navigation pane, choose <strong>Repositories</strong>.</li><li>Select the repository you want to update.</li></ol><h4>Navigate to the script.js File</h4><ol><li>In the repository, navigate through the directory structure to find the script.js file.</li><li>Click on script.js to open it.</li><li>Edit the script.js File</li></ol><h4>Commit the Changes</h4><ol><li>After making your changes, scroll down to the <strong>Commit message</strong> section.</li><li>Enter a commit message that describes the changes you made, for example, “Updated script.js to include API Gateway interaction”.</li><li>Click the <strong>Commit changes</strong> button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*-oFrbvG0z-ECOcri" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ylcAhmOpFPobcqY3" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*J4bL2JGt_h0vNg-d" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bEtzaXs_EFXU38YH" /></figure><blockquote>The changes may take a minute to take hold of but once they do, you are all set. If the changes are correct the lambda function we created will trigger each time a user visits the site and posts the time in DynamoDB.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*TAtenTbNPPohm61X" /></figure><h4>Task 3: Implement a CI/CD Pipeline</h4><p><strong>Objectives:</strong></p><ul><li><strong>Source Code Management:</strong> Use CodeCommit to manage the website’s source code.</li><li><strong>Continuous Integration</strong> <strong>and Deployment:</strong> Use CodeBuild and CodeDeploy to automate the build and deployment process.</li><li><strong>Approval Process:</strong> Implement a manual</li><li>approval step before deploying to production.</li></ul><h3>Source Code Management</h3><blockquote><em>contributor (</em><a href="https://medium.com/@kennethbarnesjr.2"><em>Kenneth Barnes</em></a><em>)</em></blockquote><h3>Version Control and Repository Setup</h3><ul><li><strong>AWS CodeCommit</strong> is a <strong>version control service</strong> hosted by Amazon Web Services (AWS). It will allow us to privately store and manage assets such as documents, source code, and binary files in the cloud for the Vitality Sphere Website.</li><li><strong>Cloud9 </strong>is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code within a browser.</li></ul><p><strong>Objective:</strong><br>To create a central repository in CodeCommit for the Vitality Sphere website files.</p><p><strong>Steps:</strong></p><ol><li>Head to the <strong>CodeCommit</strong> service.</li><li>Click on the <strong>Repositories</strong> tab, then click “Create repository” and fill out your information as needed.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VPcMN9ikaZADQv7K" /><figcaption>CodeCommit Repository Creation</figcaption></figure><h4>Setting up Cloud9 Instance to manually push files</h4><p><strong>Steps:</strong></p><ol><li>Now head to the <strong>Cloud9</strong> service and start the process of creating an environment.</li><li>I used most of the default<strong> </strong>settings to create this environment.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*yzOwo5M546Rv_DND" /><figcaption>IAM roles are created to allow me to remote into the instance using the SSM service.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*KoEWLxkzPSpPnfmr" /></figure><p>3. Copy the git line that’s under step 3 to clone the CodeCommit repository and paste it within the Cloud9 instance. Then use ( cd &lt; Repository Name &gt; ) to be within the repository to push the Vitality Sphere website files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*h3upMCz300CCTyR1" /><figcaption>The steps are within the image above</figcaption></figure><h3>Continuous Integration and Deployment</h3><blockquote><em>contributor (</em><a href="https://medium.com/@kennethbarnesjr.2"><em>Kenneth Barnes</em></a><em>)</em></blockquote><p><strong>Continuous Integration and Deployment </strong>is huge within Cloud DevOps, it ensures fast releases and provides efficiency when deploying.</p><p><strong>CodeBuild </strong>is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy.</p><p><strong>CodePipeline </strong>is a continuous delivery service that automates the build, test, and deploy phases of your release process every time there is a code change, based on the release model that is defined.</p><p><strong>Objective:</strong></p><ol><li>Configuring AWS CodeBuild to compile and test code from our repository, ensuring code integrity before deployment.</li><li>Implement an AWS CodePipeline to automate the continuous integration and delivery process for the serverless environment. We will also configure the pipeline to AWS CodeCommit repository within the Vitality Sphere account, and ensure that updates to the repository will trigger the deployment process appropriately.</li><li>Establish an initial deployment stage in AWS CodePipeline to deploy artifacts to the development S3 bucket and test changes in a live environment.</li></ol><h4>Integrate AWS CodeBuild for Code Compilation and Testing</h4><p><strong>Steps:</strong></p><ol><li>Navigate to<strong> CodeBuild </strong>then on the left-hand side click on the “<em>Build projects</em>” tab and click Orange “<em>Create project</em>” to start the process of the Build Environment. The Source is from the <strong>CodeCommit</strong> repository that I have created earlier.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*mssB4YWMsUgvqcKu" /><figcaption>Note: Within CodeBuild I used an existing role of CodeBuildRole. This role will allow the CodeBuild project to have AWSCodeBuildAdminAccess and Customer Managed policies to complete the following tasks in the project.</figcaption></figure><blockquote><em>Within this Project I used a </em><strong>buildspec.yaml</strong><em> file to define what</em><strong><em> CodeBuild</em></strong><em> should do during the build phase — This is very important!</em></blockquote><p>2. Now head to <strong>Cloud9 </strong>to push the website files into the <strong>CodeCommit </strong>repository using the following commands:</p><ul><li><strong>git add </strong>( # This command gets the next commit command ready for any modifications that have occurred in the working directory.)</li><li><strong>git commit -m “first commit”</strong> ( # This command makes a snapshot of the changes that were made when the <strong>git add</strong> command was used. The -m option lets you leave a commit message and my message was the “first commit”.)</li><li><strong>git push </strong>( # This command allows us to push the files that we saved within the working directory into the CodeCommit repository.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HrnXuE0LNv8cfbi7" /><figcaption>Note: Make sure to save the files that you’re working on, because if you don’t save the file or files you will get a warning message, also make sure you’re in the correct directory that you want to work in.</figcaption></figure><blockquote>Then I ran a test within CodeBuild and it was able to succeed In doing certain checks before the deployment stage.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*pLrSzxdocnnt8NmU" /></figure><h4>Configure AWS CodePipeline with AWS CodeCommit Repository &amp; Automate Deployment to Development Environment</h4><p><strong>Steps:</strong></p><ol><li>Navigate to<strong> CodePipeline </strong>then on the left-hand side click on the “<em>Pipelines</em>” tab and click Orange “<em>Create pipeline</em>” to start the process of the CICD Pipeline.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*PGKv1YnqUSvZaxgF" /><figcaption>Within CodePipeline I used an existing role of CodepipelineRole. This role will allow the CodePipeline service to have AWSCodePipeline_FullAccess and Customer Managed policies to complete the following tasks in the project.</figcaption></figure><p>2. When finishing the <strong>CodePipeline</strong> I went back to the <strong>Cloud9 </strong>instance to make a test file and push that file to the<strong> CodeCommit</strong> repository to see if the <strong>CodePipeline </strong>is functioning correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*KXfaBhbf79UkbvId" /><figcaption>Cloud9 test file push to CodeCommit</figcaption></figure><p>3. Once I pushed the code to the <strong>CodeCommit</strong> repository, as seen in the image above, a CloudWatchEvent was triggered to let CodePipeline know to start the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*U0FLBM30tSxN7XfL" /><figcaption>In the image above, the CodePipeline went through the pipeline workflow and succeeded.</figcaption></figure><p>4. Then I went ahead and created a Deployment Stage within the <strong>CodePipeline</strong> that will output the information that is within the <strong>CodeCommit</strong> repository into the Dev S3 bucket that we have within this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*E4bYVjYrjSkODzzo" /><figcaption>In the image above I went to the Dev S3 Bucket to create a folder for the output of the deployment stage when the CodePipeline is triggered. Update: For this project it’s incorrect, so I just clicked the “Extract file before deploy” and that section above is optional. So I just left it blank and the code will go straight to the bucket and not the folder that is within the bucket.</figcaption></figure><h4>Implement a manual approval step before deploying to production</h4><blockquote><em>contributor (</em><a href="https://medium.com/@hadianoor16"><em>Hadia Noor</em></a><em>)</em></blockquote><p>Once code changes have been deployed to the Dev bucket successfully, the next task will be to deploy to the Prod bucket. Since this is crucial to directly deploy to the Prod bucket, we can add a manual approval stage in our CodePipeline so changes are approved first before sending them out to end users.</p><p>Manual approval can be added later in the Pipeline so go to your pipeline and edit. Right after the Deploy stage to the Dev S3 bucket, click ‘Add Stage’ and name this stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9rouRIJjMpDR8LOq" /><figcaption>Add stage</figcaption></figure><p>Once the stage is created, click ‘Add Action Group’ and select ‘Manual Approval’ for Action Provider.</p><p>URL for review is optional but it’s a good practice to review the Dev bucket once before we give the go-ahead to deploy those changes in Prod. Hence, I used the Dev bucket URL.</p><p><a href="https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html">https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html</a></p><p><a href="https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html">https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*dSIv_FrDDc7TuN2G" /></figure><p>Now ‘<strong>Add Action Group</strong>’ again for the Manual-Approval-Production stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*NPsH7cLcubixVfcT" /></figure><p>Now for ‘<strong>Action Provider</strong>’ choose S3 bucket and select your Prod bucket from dropdown. Choose ‘<strong>Extract file before deploy</strong>’ and click <strong>Done</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*B3CoiT0IqimPSzS5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*27BAhUqQaksOb1QB" /><figcaption>Manual Approval to Production</figcaption></figure><p>Scroll up and <strong>Save pipeline</strong>.</p><p>Now time to test the changes, trigger the pipeline by making some code changes in CodeCommit Repo and the pipeline will be triggered. The changes are deployed to the Dev bucket right away, but the pipeline will stop at the Manual-Approval-Production step to be approved by developers before it continues execution to the Prod bucket. If you are subscribed to the SNS topic, you will receive an email notification like below. Follow the link to approve/reject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*0NSbN-9-S_q6HYiI" /></figure><h4>Testing the CI/CD</h4><p>I changed the title in the index.html page in CodeCommit that triggered the Pipeline. It executed the deployment stage. The dev bucket shows the changes made to the webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*FfvQdduLThTc7Uzr" /></figure><p>Now, the Approval stage is in the Pending state. Click Review and “Approve” to proceed to prod.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/0*YywTI0ME4ZQbcaZK" /></figure><p>Once it’s approved, the pipeline continues its operation and performs the next step which is to deploy the changes to the Prod environment.</p><p>When the deployment to the Production bucket shows succeeded, head out to the Prod S3 bucket to see if the changes are reflected.</p><p>Also, remember that our prod S3 bucket is being served by CloudFront, and Route 53 points to the company’s domain to the CloudFront distribution.</p><p>Copy the CloudFront Distribution domain name and see the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6f9_nlbumHYMx3OS" /></figure><p>Copy the company’s domain name <em>pod1.vitality.luitprojects.com</em> and paste it into the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*is3LUdLDmc4AEXXW" /></figure><p>Hence our end users are being served with the updated content via CloudFront.</p><p>You must remember that since CloudFront caches the object in the local cache till TTL expires, the user might still see the old content. For testing purposes, I kept the caching Disabled.</p><h4>Security and Compliance</h4><p><strong>Security Best Practices: </strong><em>contributors (</em><a href="https://medium.com/@naperry2011"><em>Nicholas Perry</em></a><em>)</em></p><ul><li>Apply appropriate bucket policies to secure the S3 buckets.</li><li>Use IAM roles and policies to grant the necessary permissions to Lambda, API Gateway, and other AWS services.</li></ul><p><strong>Compliance:</strong></p><ul><li>Follow the provided naming standards for all AWS resources.</li></ul><h4>IAM Roles and Permissions</h4><p><strong>Objective:</strong> Ensure IAM roles and permissions adhere to the principle of least privilege and are properly configured.</p><p><strong>Steps:</strong></p><p><strong>Review IAM Policies</strong></p><ul><li>Analyze each IAM role and attached policies.</li><li>Ensure roles have the minimum necessary permissions.</li></ul><h3>Roles and Attached Policies</h3><h4><strong>AWSCloud9SSMInstanceProfile</strong></h4><ul><li><strong>Permissions: </strong>Ensure the role has the necessary permissions for AWS Cloud9 instances, but no more.</li></ul><p><strong>AdministratorAccess</strong></p><ul><li><strong>Permissions: </strong>Ensure this role is limited to administrators and used sparingly.</li></ul><p><strong>ReadOnlyAccess</strong></p><ul><li><strong>Permissions: </strong>Confirm this role has only read-only access.</li></ul><p><strong>PowerUserIAMPolicy</strong></p><ul><li><strong>Permissions: </strong>Ensure this role provides necessary access without administrative privileges.</li></ul><p><strong>APIGatewayServiceRolePolicy</strong></p><ul><li><strong>Permissions: </strong>Verify the role has permissions for managing API Gateway resources.</li></ul><p><strong>AWSApplicationAutoscalingDynamoDBTablePolicy</strong></p><ul><li><strong>Permissions: </strong>Ensure the role has the necessary permissions for autoscaling DynamoDB tables.</li></ul><p><strong>AWSCloud9ServiceRolePolicy</strong></p><ul><li><strong>Permissions: </strong>Verify the role has permissions required for AWS Cloud9.</li></ul><p><strong>AWSOrganizationsServiceTrustPolicy</strong></p><ul><li><strong>Permissions: </strong>Confirm the role has the appropriate permissions for AWS Organizations.</li></ul><p><strong>AWSSSOServiceRolePolicy</strong></p><ul><li><strong>Permissions: </strong>Ensure the role has the necessary permissions for AWS SSO.</li></ul><p><strong>AWSSupportServiceRolePolicy</strong></p><ul><li><strong>Permissions: </strong>Verify the role has permissions for AWS Support.</li></ul><p><strong>Cloud9Role</strong></p><ul><li><strong>Permissions: AmazonS3FullAccess</strong></li><li>Confirm this access is necessary and limit it to specific buckets if possible.</li></ul><p><strong>AWSCodeCommitFullAccess</strong></p><ul><li>Ensure this is required for the role’s purpose.</li></ul><p><strong>CodeBuildRole</strong></p><ul><li><strong>Permissions: AWSCodeBuildAdminAccess</strong></li><li>Confirm administrative access is necessary.</li></ul><p><strong>CodeBuildBasePolicy-CodeBuildRole-us-east-1</strong></p><ul><li>Verify base policy permissions.</li></ul><p><strong>AWSCodeDeployRole</strong></p><ul><li><strong>Permissions: </strong>Ensure it has the necessary permissions for CodeDeploy and nothing more.</li></ul><p><strong>CodePipelineRole</strong></p><ul><li><strong>Permissions: AWSCodePipeline_FullAccess</strong></li><li>Verify full access is required.</li></ul><p><strong>CodePipelinePolicy</strong></p><ul><li>Review and confirm necessary permissions.</li></ul><p><strong>cwe-role-us-east-1-test</strong></p><ul><li><strong>Permissions: start-pipeline-execution-us-east-1-test</strong></li><li>Ensure it only has permissions to start pipeline execution.</li></ul><p><strong>cwe-role-us-east-1-VitalitySphere-Streamline</strong></p><ul><li><strong>Permissions: codepipeline</strong></li><li>Confirm this role has the minimal necessary permissions.</li></ul><p><strong>cwe-role-us-east-1-VitalitySphere-Dev-Pipeline-001-CI-CD</strong></p><ul><li><strong>Permissions: codepipeline</strong></li><li>Ensure it only has permissions to start pipeline execution.</li></ul><h4>Decommission Old EC2 Server After Successful Migration</h4><blockquote><em>contributor (</em><a href="https://medium.com/@hadianoor16"><em>Hadia Noor</em></a><em>)</em></blockquote><p>As Vitality Sphere achieved a more scalable, cost-effective, and efficient infrastructure for their website by migrating their website to S3 bucket and CloudFront, their next task is to decommission the old EC2 instances while making sure no other services get interrupted and there is no downtime for the users.</p><p>However, before shutting down the EC2 instances, cloud engineers need to make sure that 100% of the traffic is directed to the new production environment and that there are no reported issues for the specified period.</p><p>Once this is confirmed, go to EC2 instances, and click on your running instance -&gt; Instance State -&gt; Terminate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*DqbUHskCbFvcr43h" /><figcaption>Terminate old EC2 instance</figcaption></figure><h4>Summary</h4><p>By completing these tasks, Vitality Sphere will achieve a more scalable, cost-effective, and efficient infrastructure for its website, along with valuable insights into user interactions and a streamlined deployment process.</p><h4>Final Deliverables</h4><ol><li><strong>Migrated Website:</strong></li></ol><ul><li>A static website hosted on S3, served through CloudFront, with DNS pointed by Route 53.</li></ul><p><strong>2. User Interaction API:</strong></p><ul><li>An API that triggers a Lambda function to record user interactions in DynamoDB.</li></ul><p><strong>3. CI/CD Pipeline:</strong></p><ul><li>A fully functioning CI/CD pipeline with automated build and deployment processes, including a manual approval step.</li></ul><p>This project could not have been possible without the amazing effort put forth by all my teammates at Level-Up-In-Tech: (<a href="https://medium.com/@naperry2011">Nicholas Perry</a>, <a href="https://medium.com/@hadianoor16">Hadia Noor</a>, <a href="https://medium.com/@kennethbarnesjr.2">Kenneth Barnes</a>, <a href="https://medium.com/@aparker735">Aynda Parker</a>, <a href="https://medium.com/@markeeta.d.little">Dionne Little</a>, <a href="https://medium.com/@mrskeetonthe1">Jessica Ross</a>, and <a href="https://medium.com/@labossiere01">John Labossiere</a>). Stay tuned for more cloud tips!!!</p><p><strong>References</strong>:</p><p><a href="https://blog.logrocket.com/product-management/fibonacci-sequence-story-points-agile/">Agile estimation: Using the Fibonacci sequence for story points — LogRocket Blog</a></p><p><a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/integrations-action-type.html#w2aac12b9c13b7">Integrations with CodePipeline action types — AWS CodePipeline (amazon.com)</a></p><p><a href="https://www.youtube.com/watch?v=e90rz62rk-8">https://www.youtube.com/watch?v=e90rz62rk-8</a></p><p><a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-s3deploy.html">https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-s3deploy.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f5f636623c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Cloud Engineer Can Securely Manage Media Data with AWS DynamoDB]]></title>
            <link>https://medium.com/@markeeta.d.little/how-a-cloud-engineer-can-securely-manage-media-data-with-aws-dynamodb-35ece400e497?source=rss-87752101d336------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ece400e497</guid>
            <dc:creator><![CDATA[Dionne Little]]></dc:creator>
            <pubDate>Wed, 17 Jul 2024 05:04:14 GMT</pubDate>
            <atom:updated>2024-07-17T05:04:14.682Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>We’re back with another Cloud Engineer know how to land you your dream job!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gxl65QnTq3uo4fVAIWR2CQ.png" /></figure><h3>Introduction</h3><p>In the fast-paced world of media production and distribution, managing and tracking information about movies, TV shows, and other entertainment content is crucial for business success. Let’s Go! Media Inc., a leading media company, faces this challenge as they strive to organize their extensive catalog of media content. By leveraging AWS DynamoDB, Let’s Go! Media Inc. ensures efficient data management, secure access, and seamless operations. This blog post will guide you aspiring cloud engineers through the process of setting up and securing a DynamoDB table for media content management.</p><h3>Setting the Stage: The Use Case</h3><p>Let’s Go! Media Inc. creates and distributes movies, TV shows, and other entertainment content to consumers worldwide. The company needs to manage metadata, ratings, and other relevant details about their media content. To address this need, Let’s Go! Media Inc. decides to use AWS DynamoDB to store and manage their media content data.</p><blockquote>Here are the steps to accomplish your tasks:</blockquote><p><strong>1. Create a DynamoDB table for latest Movie releases:</strong></p><ul><li>Sign in to the AWS Management Console and open the DynamoDB console.</li><li>Choose Create table.</li><li>In the table namescreen, enter LatestMovieReleases for the Table name.</li><li>For Partition key, enter movie id and choose String for the type</li><li>Choose Create.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*9BPvXtPXvRQs0KA-6N-63A.png" /></figure><p><strong>2. Add 10 latest movie releases to the table:</strong></p><ul><li>Choose the Explore Items tab and then choose pick the name of the table Create item.</li><li>Choose Add new Attributes</li><li>Choose String</li><li>Create Item</li><li>Choose Save and Close and continue then repeat this process for the 9 remaining titles.</li></ul><ol><li><strong>Title</strong>: <strong>Eclipse of the Titans</strong></li></ol><ul><li><strong>Genre</strong>: Sci-Fi/Action</li><li><strong>Rating</strong>: PG-13</li><li><strong>Release Date</strong>: July 15, 2023</li></ul><p><strong>2. Title</strong>: <strong>Whispers in the Pines</strong></p><ul><li><strong>Genre</strong>: Horror/Thriller</li><li><strong>Rating</strong>: R</li><li><strong>Release Date</strong>: October 31, 2024</li></ul><p><strong>3. Title</strong>: <strong>Melodies of Tomorrow</strong></p><ul><li><strong>Genre</strong>: Drama/Romance</li><li><strong>Rating</strong>: PG</li><li><strong>Release Date</strong>: February 14, 2025</li></ul><p><strong>4. Title</strong>: <strong>The Quantum Detective</strong></p><ul><li><strong>Genre</strong>: Mystery/Sci-Fi</li><li><strong>Rating</strong>: PG-13</li><li><strong>Release Date</strong>: May 10, 2025</li></ul><p><strong>5. Title</strong>: <strong>Underwater Empire</strong></p><ul><li><strong>Genre</strong>: Adventure/Fantasy</li><li><strong>Rating</strong>: PG</li><li><strong>Release Date</strong>: December 22, 2024</li></ul><p><strong>6. Title</strong>: <strong>Retrograde Shadows</strong></p><ul><li><strong>Genre</strong>: Sci-Fi/Thriller</li><li><strong>Rating</strong>: R</li><li><strong>Release Date</strong>: August 18, 2024</li></ul><p><strong>7. Title</strong>: <strong>Love in the Digital Age</strong></p><ul><li><strong>Genre</strong>: Romantic Comedy</li><li><strong>Rating</strong>: PG-13</li><li><strong>Release Date</strong>: March 8, 2025</li></ul><p><strong>8. Title</strong>: <strong>The Last Frontier</strong></p><ul><li><strong>Genre</strong>: Western/Drama</li><li><strong>Rating</strong>: PG-13</li><li><strong>Release Date</strong>: September 26, 2024</li></ul><p><strong>9. Title</strong>: <strong>Silent Harmony</strong></p><ul><li><strong>Genre</strong>: Musical/Drama</li><li><strong>Rating</strong>: PG</li><li><strong>Release Date</strong>: November 16, 2024</li></ul><p><strong>10. Title</strong>: <strong>Chronicles of the Forgotten Realm</strong></p><ul><li><strong>Genre</strong>: Fantasy/Adventure</li><li><strong>Rating</strong>: PG-13</li><li><strong>Release Date</strong>: June 21, 2025</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*tdZ4aMVqWbfUqE2VL9roTA.png" /></figure><blockquote>C<em>lick the Explore Items Tab to view all movie titles in the table.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*Pael0SCz_7U1aFX-G1OeUA.png" /></figure><p><strong>3. Create a t2.micro EC2 instance:</strong></p><ul><li>Open the Amazon EC2 console.</li><li>Choose Launch Instance.</li><li>In Step 1: Choose an Amazon Machine Image (AMI), find an AMI you want to use. I used Amazon Linux</li><li>In Step 2: Choose an Instance Type, choose t2.micro.</li><li>Allow SHH and add a key pair.</li><li>Choose Review and Launch, then Launch.</li></ul><p><strong>4. Grant the EC2 instance read access to DynamoDB using an IAM role:</strong></p><ul><li>Open the IAM console.</li><li>Choose Roles, then Create role.</li><li>For Select type of trusted entity, choose AWS service, then EC2.</li><li>For Attach permissions policies, search for AmazonDynamoDBReadOnlyAccess.</li><li>Review the role and give it a name, then choose Create role.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pzl9JTOpsyujYHPn-MUo0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pb7msIgZXwYVkkNTbIzgmg.png" /></figure><ul><li>Go back to the EC2 console, select your instance, choose Actions, then Security, Modify IAM role.</li><li>Select the IAM role you just created and choose Save.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*8PcmMTdZLyKnnwoyKYPjPg.png" /><figcaption>However in this step, I couldn’t find my IAM role I had to create a new IAM profile then choose the role I created named Ticketmaster.</figcaption></figure><p><strong>5. Use the AWS CLI in the EC2 instance to scan the DynamoDB table:</strong></p><p><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.CLI.html">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.CLI.html</a> use the AWS documentation if clarity is needed to use CLI</p><ul><li>SSH into your EC2 instance in the terminal before the CLI is ran</li><li>Run the following command:</li></ul><pre>aws dynamodb scan -table-name Movies<br></pre><p>aws dynamodb scan — table-name LatestMovieReleases</p><ul><li>The table of 10 movies will populate into the terminal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Jzc_zoq0znMJz14UhLzIdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*cMfE63LxH_Z6fjWktNP9eA.png" /></figure><p><strong>6. Validate you cannot write an item to the DynamoDB table:</strong></p><ul><li>Try to put an item into the table by running the following command:</li><li>Please replace &quot;Movie Title&quot;, &quot;Movie Genre&quot;, &quot;Release Date&quot;, and &quot;Movie Rating&quot; with actual values. Also, replace &quot;Test Title&quot;, &quot;Test Genre&quot;, &quot;Test Date&quot;, and &quot;Test Rating&quot; with test values. Remember to install and configure AWS CLI on your EC2 instance before running AWS CLI commands.</li><li><strong>aws dynamodb put-item — table-name YourTableName — item ‘{“YourPartitionKey”: {“S”: “NameofYourItem”}}’ — region your-region</strong></li></ul><p>aws dynamodb put-item — table-name —LatestMovieReleases item ‘{“Title”: {“S”: “Men In Black”}}’ — us-east-1</p><ul><li>You should receive an AccessDeniedException error, indicating that you do not have write access to the table.</li></ul><p>Please replace &quot;Movie Title&quot;, &quot;Movie Genre&quot;, &quot;Release Date&quot;, and &quot;Movie Rating&quot; with actual values. Also, replace &quot;Test Title&quot;, &quot;Test Genre&quot;, &quot;Test Date&quot;, and &quot;Test Rating&quot; with test values. Remember to install and configure AWS CLI on your EC2 instance before running AWS CLI commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jjPnQs8-36OvNc7ffty8w.png" /></figure><h3>Conclusion</h3><p>By following these steps, Let’s Go! Media Inc. can efficiently manage their media content data while ensuring secure access and maintaining data integrity. AWS DynamoDB, combined with IAM roles, provides a robust solution for managing media metadata and ratings, empowering the company to make data-driven decisions and enhance their content distribution strategies. For cloud engineers, this use case highlights the importance of securing data access and implementing best practices in cloud infrastructure management.</p><p><strong><em>Follow for more if you liked this one and don’t forget to TAP THE CLAP!</em></strong></p><p><em>You can also find me on LinkedIn let’s connect drop by to just say hi and tell me what you have been up to!</em></p><p><a href="http://www.linkedin.com/in/dionnelittle"><em>www.linkedin.com/in/dionnelittle</em></a></p><blockquote>Til Next Time Techies →You can catch → Dionne In The Cloud</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35ece400e497" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>