Building  and Deploying a simple Cloud-Native Web App - Part 1

Building and Deploying a simple Cloud-Native Web App - Part 1

In the dynamic realm of software development, the integration of DevOps practices has become crucial for creating efficient, reliable, and scalable applications. Here is a simple capstone project that outlines how DevOps enhances the development and deployment lifecycle.

Developing and deploying web applications often present challenges related to collaboration, testing, and efficiency deployment. The motivation behind the project is to showcase how such challenges are tackled head-on through the implementation of DevOps strategies.

Project Requirements:

  • AWS Account

  • AWS CLI

  • Python3 installed

  • Docker

  • Code editor(your choice)

  • Kubernetes

Phase 1 - Setting up programmatic access on your AWS account and dev env.

This grants us the ability to interact with and retrieve data from a web application using code rather than a traditional user interface, and this has its own benefits; such as custom integration, data retrieval, automation etc.

  • Create an IAM user in your AWS account and assign programmatic access to that user.

  • Create a new access key for the user account, and ensure to save a copy of the key.

  • On your code editor run and enter the access key information

  •         aws configure
    

NB: If you run into aws command not found:

  • Download and run the aws CLI installer for your PC OS, version.

  • To confirm aws cli is installed close and re-open vs code, then type the command

  •         aws --verion
    
  • Ensure to set your config file for Windows properly, the format is shown below:

        [default]
        aws_access_key_id = AK***********MV
        aws_secret_access_key = HGc3s******************T
    
        [admin]
        # This key identifies your AWS account.
        aws_access_key_id = AKI*************MV
        aws_secret_access_key = HGc3s******************T
    
  • Now check to see that your connection to your aws account is set: using the

    "aws iam list-users" command. Your result should look like this:

  •       $ aws iam list-users
          Users:
          - Arn: arn:aws:iam::22*******94:user/nelson_ops
            CreateDate: '2023-08-26T03:21:12+00:00'
            PasswordLastUsed: '2023-08-26T03:37:30+00:00'
            Path: /
            UserId: AI**********CA3V7X
            UserName: nelson_ops
    

Now check for the Python version installed: run the command "python --version"

$ python --version
Python 3.10.10

Finally, ensure that you have docker and kubectl installed as well. Read up on documentation if you need  guidance.