Giter Club home page Giter Club logo

terraform-ecs-fargate's Introduction

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.

Show your support

Give a ⭐ if this project was helpful in any way!

terraform-ecs-fargate's People

Contributors

borgified avatar bradford-hamilton avatar brandonhilkert avatar fullammo avatar perrybranch-galvanize avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-ecs-fargate's Issues

Next.js app keeps on refreshing after browser tab click

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?

Suggest to Create Role by Terraform, Got: ClientException: Role is not valid

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.

Reference to undeclared resource

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.