The Pipeline Challenge

Hands-on Challenge Day Project

Atul Saxena
4 min readJul 12, 2023

Scenario, imaging that you’re working for the Professional Services division at AWS, and you’ve been engaged in a meeting with a Steakhouse company. You’re told that their developers are still learning about Cloud and DevOps practices.

During the meeting, the developers disclose that they are hosting the company’s static website on an EC2 instance, deploying changes manually, and not using any source control repository for these processes.

They ask you if there is a better solution for their current practices. After evaluating their situation, you come up with an innovative approach to assist them. Your proposal includes a serverless website, AWS code Commit, and Code Pipelines Starting now, implementing this solution will be our mission.

Detail Study

The customer is currently facing an unorganized; and suboptimal situation. They are hosting a static website on an EC2 instance and running an Apache web server within it. However, managing the EC2 instance for such a simple website workload has become cumbersome and inefficient. Additionally, all developers will deploy their changes directly to the production environment without utilizing any source control repository. This manual process involves packing the code; and deploying it, even for minor changes. It’s safe to say that the current setup is chaotic, considering our expertise in the cloud and DevOps.

Proposed solution

To solve the above issues, we proposed an innovative solution: transitioning to a Serverless website. By eliminating the need for EC2 instances, the customer can run their simple static website using a Serverless architecture. Specifically, we suggested leveraging the Amazon S3 service to host their static website. Furthermore, to address the lacking a code repository, we recommended using Amazon CodeCommit, which provides a Git repository for hosting their code.

Lastly, we proposed automating the application deployment process by creating a new code pipeline. This solution ensures that the deployment of application changes becomes fully automated. By integrating this automated pipeline, the customer can streamline their development workflow and eliminate the need for manual deployment procedures. This comprehensive approach will significantly enhance their website management and development processes.

Hands-on Challenge

After pushing all the files to s3 bucket and click the object. Go to the Static website hosting section, copy the website URL.

Now I have deployed the website on s3 bucket. Paste the above URL in your browser as shown below:

Here is newly created PipeLine

Open index.html on Cloud9 and modify line # 924 from ‘We are Food Masters!’ to ‘We are Food Heroes’. Use the following git commands

  1. git add .
  2. git commit -m “Changed in index.html to We are Food Heroes”
  3. git push as shown below

Review the CodePipeLine

In the CodeCommit, click to open the highlighted record shown below

It shows that what all changes I made in my last commit.

Go to the web browser and refresh it. You will see all the changes visually.

Hope you enjoyed reading my hands-on project. Please claps for me, provide feedback and follow me.

--

--

Atul Saxena
Atul Saxena

Written by Atul Saxena

The latest technologies with the truth | Formerly worked at Fortune 500 companies

No responses yet