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-internal:snapshot"
19}
20
21variable "force_new_deployment" {
22 default = false
23}
24
25variable "authorization_keys" {
26 default = ""
27}
28
29module "smoothie" {
30 /* source = "../terraform-aws-smoothie" */
31 source = "app.terraform.io/charm/smoothie/aws"
32 version = "0.2.0"
33
34 environment = var.environment
35 aws_region = var.aws_region
36 ecs_task_execution_role_name = "smoothieEcsTaskExecutionRole-${var.environment}"
37 app_image = var.app_image
38 app_count = 2
39 app_ssh_port = 23231
40 fargate_cpu = "1024"
41 fargate_memory = "2048"
42 force_new_deployment = var.force_new_deployment
43 app_use_default_ssh_port = true
44 authorization_keys = var.authorization_keys
45}