Skip to content

Run nextjs in AWS with Fargage, ECS and App load balancer.

Notifications You must be signed in to change notification settings

chrispsheehan/fargate-nextjs-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fargate-nextjs-webapps

New image pushed to ecr upon changes detected in /src and subsequently deployed to ecs.

terraform

Required deployment iam privileges.

[
    "dynamodb:*", 
    "s3:*", 
    "ecr:*", 
    "iam:*", 
    "ecs:*",
    "ec2:*", 
    "elasticloadbalancing:*"
]

ci

Commits to main will kick off a deployment.

Required github action variables.

  • AWS_ACCOUNT_ID
  • AWS_REGION
  • AWS_ROLE role with deployment privileges
  • AWS_ROLE_VALIDATE_ONLY role with readonly privileges (can be same as AWS_ROLE)