1terraform {
 2  backend "s3" {
 3    bucket = "charm-terraform-state"
 4    key    = "smoothie-development"
 5    region = "us-east-1"
 6  }
 7}
 8
 9variable "environment" {
10  default = "development"
11}
12
13variable "aws_region" {
14  default = "us-east-1"
15}
16
17variable "app_image" {
18  default = "ghcr.io/charmbracelet/smoothie:snapshot"
19}
20
21variable "force_new_deployment" {
22  default = false
23}
24
25module "smoothie" {
26  # source = "../terraform-aws-smoothie"
27  source  = "app.terraform.io/charm/smoothie/aws"
28  version = "0.1.2"
29
30  environment                  = var.environment
31  aws_region                   = var.aws_region
32  ecs_task_execution_role_name = "smoothieEcsTaskExecutionRole-${var.environment}"
33  app_image                    = var.app_image
34  app_count                    = 2
35  app_ssh_port                 = 23231
36  fargate_cpu                  = "1024"
37  fargate_memory               = "2048"
38  force_new_deployment         = var.force_new_deployment
39}