Source code for a tutorial on Medium I recently published.
Terraform config for deploying docker containers to ECS using Fargate launch type. Currently set up for my Crystal Blockchain Application.
Give a ⭐ if this project was helpful in any way!
Source code for a tutorial on Medium I published - "Deploying Containers on Amazon’s ECS using Fargate and Terraform: Part 2"
License: MIT License
Source code for a tutorial on Medium I recently published.
Terraform config for deploying docker containers to ECS using Fargate launch type. Currently set up for my Crystal Blockchain Application.
Give a ⭐ if this project was helpful in any way!
I deployed the Next.js app using the terraform code in ECS/Fargate. However, the web app keeps on refreshing. I suspect
that it could be the CloudWatch health check doing it.
Have anyone encountered this issue before?
I want to deploy https://github.com/sameersbn/docker-gitlab on my ECS. They use docker-compose script to build multiple docker services, and use docker volume. Now, if I use ECS with Fargate launch type, how to adjust this docker-compose script to it?
Hi! Thanks a lot for putting this together and for writing an awesome blog post about it.
I noticed that your repo doesn't have a LICENSE file, meaning others may not be able to reuse the code.
Would you consider adding an MIT License file to it? https://help.github.com/en/articles/adding-a-license-to-a-repository
I got the error below when run your code
Error: ClientException: Role is not valid
status code: 400, request id: dd60557f-6d91-4c15-8ab9-6d71b20f4609
on ecs.tf line 19, in resource "aws_ecs_task_definition" "app":
19: resource "aws_ecs_task_definition" "app" {
I suspect it because you hardcoded the aws_ecs_task_definition Role, I suggest to creat thr Role by terraform.
terraform-ecs-fargate/terraform/alb.tf
Line 28 in 776be1a
Now it doesn't support a way to configure the environment variables for the docker, would you mind supporting this?
Hi Brandford, thanks for this work, I am not able to make it run when app_port = 80, but it works when app_port = 3000.
Thanks!
Request to add a fixed dns name for the Cluster in Route53. Thanks!
A "terraform apply" attaches a custom role to the service BUT
AWS will replace the custom role with a service-linked role (AWSServiceRoleForApplicationAutoScaling_ECSService).
This will keep happening every time "terraform apply" is executed.
see: https://forums.aws.amazon.com/thread.jspa?threadID=270113
Getting Reference to undeclared resource
error.
Please check below:
$ terraform plan
Error: Reference to undeclared resource
on ecs.tf line 19, in resource "aws_ecs_task_definition" "app":
19: execution_role_arn = aws_iam_role.ecs_task_execution_role.arn
A managed resource "aws_iam_role" "ecs_task_execution_role" has not been
declared in the root module.
Error: Reference to undeclared resource
on outputs.tf line 2, in output "alb_hostname":
2: value = aws_alb.main.dns_name
A managed resource "aws_alb" "main" has not been declared in the root module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.