Skip to content

MTB90/terraform-aws-ecs

Repository files navigation

Simple web site on AWS.

Build Status codecov.io License: MIT

List of used AWS components:

  • VPC, Subnets, Internet gateway
  • Bastion, Nat-Instance
  • Security groups
  • EC2, ALB
  • ROUTE53 zone
  • ECS cluster, ECS service, ECS task definition, ECR
  • App autoscaling target/policy (ECS task)
  • Autoscaling group/policy (EC2)
  • COGNITO
  • Cloudwatch (logs EC2/Task)
  • Dynamodb

AWS infrastructure:

Run locally unit-tests:

$ make test

Manual deployment:

  • Update file envfile with your variables
  • Push image:
# Update ECS Service
$ make aws-push-image
$ make aws-udpate-service

# Update AWS lambda
$ make aws-update-lambda