JacobGrisham / Finance-Full-Stack-Web-App-using-Flask-and-SQL

Monolithic model-view-controller full-stack web application built with Python, Flask, SQL Alchemy, MySQL, Jinja, and Bootstrap. Application Server hosted on AWS EC2 with Ubuntu, Gunicorn, and Nginx. MySQL Database on AWS RDS. Redis hosted on AWS Elasticache. CI/CD with Jenkins and AWS CodeDeploy
http://wallstreettrader.app
15 stars 28 forks source link

Create EC2 AMI for Deploying #19

Open JacobGrisham opened 2 years ago

JacobGrisham commented 2 years ago
MADHUMITHASIVAKUMARR commented 1 month ago

Creating an Amazon EC2 AMI (Amazon Machine Image) for deploying your application involves several steps. Here’s a guide to help you create an AMI, which you can use to launch new EC2 instances with the same configuration.

Steps to Create an EC2 AMI

  1. Log in to AWS Management Console:

  2. Navigate to EC2 Dashboard:

    • In the AWS Management Console, find and select “EC2” under the “Services” menu.
  3. Select the Instance:

    • In the EC2 Dashboard, click on “Instances” in the left sidebar.
    • Find and select the instance you want to create an AMI from.
  4. Create the AMI:

    • With the instance selected, click on the “Actions” dropdown menu.
    • Hover over “Image and templates” and select “Create image.”
  5. Configure Image Settings:

    • Image name: Provide a unique name for your AMI.
    • Description: Optionally, add a description.
    • No reboot: By default, the instance will be rebooted to ensure a clean snapshot. You can check “No reboot” if you want to avoid downtime, but this may lead to a corrupted image if the instance is in use.
    • Additional options: Configure any additional settings as needed.
  6. Create the AMI:

    • Click the “Create image” button. This will start the process of creating the AMI. You can monitor the progress in the “AMIs” section of the EC2 dashboard.
  7. Launch Instances from the AMI:

    • Once the AMI is created, you can launch new instances from it by selecting the AMI in the “AMIs” section, clicking on “Launch instance,” and following the prompts.
  8. Permissions (Optional):

    • If you want to share your AMI with other AWS accounts or make it public, modify the permissions in the “Permissions” tab of the AMI settings.

Considerations

Additional Steps for Deploying Your App