ecs-refarch-cloudformation
Our great sponsors
ecs-refarch-cloudformation | pulumi-component-provider-ts-boilerplate | |
---|---|---|
5 | 1 | |
1,675 | 24 | |
- | - | |
0.0 | 6.4 | |
9 months ago | 8 days ago | |
Makefile | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ecs-refarch-cloudformation
-
My Infrastructure as Code Rosetta Stone - Deploying the same web application on AWS ECS Fargate with CDK, Terraform and Pulumi
I first started out with IaC following this project aws-samples/ecs-refarch-cloudformation (which is pretty old at this point) and wrote a lot of CloudFormation by hand. The pain of doing that lead me to explore the CDK with Python. I learned TypeScript by rewriting the Python CDK code I wrote in TypeScript. I later worked with a team that was more experienced in Terraform and learned how to use that. I feel like Pulumi takes the best of the two tools and has a really great developer experience. There is a little bit of a learning curve with Pulumi, and you give up some of the simplicity of Terraform.
-
Daisy-chaining CloudFormation templates together
Yes, deploy them as nested stacks inside a parent template. You can reference outputs via !GetAtt NestedStackX.Outputs.OutputName. see this repo for an example https://github.com/aws-samples/ecs-refarch-cloudformation
-
My approach to building ad hoc developer environments using AWS ECS, Terraform and GitHub Actions (article link and diagram description in comments)
Sure. My IaC journey actually started out with CloudFormation, and I learned a lot from this reference project: aws-samples/ecs-refarch-cloudformation. Then I picked up CDK when that became available and migrated a project from CloudFormation to CDK. It sounded like a nicer way to handle stacks in a familiar language with lots great one-liners and utility functions and constructs, and it definitely is. I have a similar project written in CDK that is an application/framework-first (Django) approach to learning and doing IaC that you can find here: https://github.com/briancaffey/django-cdk. This implements both ECS and EKS, but my attempts at learning EKS sort of fizzled out for now as I don't have the need to use it, and for the task at hand (running a monolithic Django application on AWS) I think ECS makes a LOT more sense.
-
Docker Hosting
I'm mostly using just EC2 instances running Docker Engine and Docker Compose (with configs and Compose projects in Git), but I'm starting to use CloudFormation and ECS more. I've taken a lot of inspiration from https://github.com/aws-samples/aws-refarch-shibboleth, https://github.com/awslabs/ecs-refarch-continuous-deployment, and https://github.com/aws-samples/ecs-refarch-cloudformation. At some point in the future, I plan to refactor my CloudFormation/ECS deployments into something more cloud agnostic using Terraform/Kubernetes.
-
Best way to deploy docker compose to AWS ECS?
If you need more options that is provided the Docker/ECS tool listed above you can roll your own using CloudFormation (the AWS deployment scripting tool). There's a good starter here.
pulumi-component-provider-ts-boilerplate
-
My Infrastructure as Code Rosetta Stone - Deploying the same web application on AWS ECS Fargate with CDK, Terraform and Pulumi
My Pulumi library is written in TypeScript and is published to NPM. For now it can only be used in JavaScript and TypeScript projects. There is a way in Pulumi to write in any language and then publish to any other major language, but I haven't done this yet. See this GitHub repo for more information on this.
What are some alternatives?
django-step-by-step - A Django + Vue reference project that focuses on developer tooling and CI/CD + IaC
pulumi-aws-django - A Pulumi package for deploying Django applications to AWS using ECS Fargate and other managed services
aws-refarch-shibboleth - Containerized version of the Shibboleth IdP running on AWS with AWS Secrets Manager and AWS CodePipeline integrations. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
cdk-django - A CDK library that provides high-level constructs for hosting Django applications on AWS
projen - Rapidly build modern applications with advanced configuration management
ecs-refarch-continuous-deployment - ECS Reference Architecture for creating a flexible and scalable deployment pipeline to Amazon ECS using AWS CodePipeline
aws-tags-example - An example of enforcing AWS tagging policies, as well as auto-tagging