Dev env for Quasar and Laravel app on AWS ECS
App on AWS ECS Faregate
Construction Site Inventory is a cutting-edge application designed to revolutionize inventory tracking for large construction sites. With its user-friendly interface and powerful features, this application simplifies the complex task of managing inventory in construction projects. Leveraging the Quasar framework (version 2.6.0) for the frontend and the Laravel framework for the backend, Construction Site Inventory offers a robust and scalable solution for construction professionals.
To ensure seamless deployment and efficient operations, we have implemented the application on AWS.
Here’s a quick guide on how to get started with the project in AWS:
Create a GitHub repository and upload all the necessary project files to it.
In AWS, create a new IAM user with the appropriate permissions for building the required infrastructure.
Establish an SES Verified Identity for the email address used to send emails through Amazon SES.
Create an IAM user for SMTP authentication with Amazon SES.
Set up all the required GitHub Secrets for the Actions.
Generate Incoming Webhooks for Slack notifications.
Utilize the CloudFormation template to create static resources.
Execute the GitHub Action to build the Docker image and copy the CloudFormation templates to the designated S3 bucket.
Run the GitHub Action to copy Frontend files to S3, facilitating their usage with CloudFront.
Configure Automated Actions to start and end the entire environment at specific times.
Initiate the AWS Infrastructure for the environment using the CloudFormation template.
Create an ECS Service for the MySQL container, utilizing EFS for persistent storage, using the Github action to run the ECS service.
Establish an ECS Service for the App container, integrated with a LoadBalancer and Route53.
Cease all ECS Services related to the application when required.
Delete the AWS Infrastructure at the end of the day to optimize resources.
Additionally, we have implemented automated Actions that trigger whenever files change within the “backend” and “frontend” directories. These Actions ensure efficient updates and maintenance of the application.
Infrastructure
Here you can see the two different pipelines for production and development, and all the services that are going to be used in each environment.
GitHub Actions
Here you can observe actions that are needed for deploying infrastructure into AWS with help from GitHub actions.
AWS Resources
This is a visual presentation of the resources that are created for this project in AWS.
CloudFormation template for Static resources needed for creating the resto of the infrastructure.
CloudFormation template for running ECS Fargate containers running the backend and database.
CloudFormation template for CloudFront distribution for the Frontend S3 bucket.
Comments powered by Disqus.