This repo includes a complete AWS - ECS fargate Infrastructure stack that enables a PaaS workflow with GitOps / ChatOps features and supports ECS, Fargate, Aurora, SQS, Redis, and Autoscaling via CDK.
- Overview
- A local NodeJS programming environment and Workflow CLI installed on your machine
- An AWS Personal Access key and Secret Key, which you can create via the AWS Console
- Docker, AWS CDK, and AWS CLI installed on your machine.
- NVM Installed
You can run and deploy the AWS-ECS-Fargate Workflow directly on our Platform, kindly follow the steps below to get started 🚀
The AWS - ECS Fargate Workflow is running on the latest version.
git clone https://github.com/workflows-sh/aws-ecs-fargate
cd aws-ecs-fargate
Before you can deploy this Workflow, you need to Setup your account on CTO.ai
Secrets are encrypted environment variables that CTO.ai utilizes within your workflow to build and run your application and deployments. Follow this guide to create secrets from settings., and also generate your Github token
You need to build and run your Sample-app. Your sample App can be a Node.js HTTP server with a Dockerfile and ops.yml
file.
Follow the following steps below to configure and deploy your AWS - ECS Fargate Workflow using the Ops CLI commands.
In your application, build your Docker image, from your Dockerfile, and your ops.yml
file located in the specified path you created in your source directory using the ops build .
command.
Next, create the running containers from the image, and start it using ops run .
Next, set up your AWS infrastructure to build, and run your AWS-ECS-Fargate workflow using the ops run -b .
the command will provision your AWS ECS and Fargate stack using CloudFormation.
After building pipelines and setting up your infrastructure, you can enable service previews on your application by building your services using ops build .
Next, publish your service workflow using ops publish .
to run your microservice web application over HTTP.
When you are done building and publishing your Pipelines and Services, you can trigger them using GitHub Event Triggers. Trigger your pipelines and services using event triggers like pull_request_merged
create.tag
CTO.ai AWS-ECS-Fargate Workflow is an open-source project and is supported by the community. You can buy a supported version of CTO AWS-ECS Fargate at CTO.ai
Learn more about CTO.ai community support channels here
- Slack: https://cto.ai/community
Feel free to submit PRs or to fill issues. Every kind of help is appreciated.
Kindly check our Contributing guide on how to propose bugfixes and improvements, and submitting pull requests to the project.
- View issues related to this image in our GitHub repository issues tracker
- Read the manual on our Docs
Check out our FAQ, send us an email, or open an issue with your question. We'd love to hear from you!
© CTO.ai, Inc., 2023
Distributed under MIT License (The MIT License
).
See LICENSE for more information.