We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f9537 commit d9c91f4Copy full SHA for d9c91f4
examples/templates/ecs-container/main.tf
@@ -15,6 +15,13 @@ variable "ecs-cluster" {
15
description = "Input the ECS cluster ARN to host the workspace"
16
default = ""
17
}
18
+variable "cpu" {
19
+ default = "1024"
20
+}
21
+
22
+variable "memory" {
23
+ default = "2048"
24
25
26
# configure AWS provider with creds present on Coder server host
27
provider "aws" {
@@ -27,8 +34,8 @@ resource "aws_ecs_task_definition" "workspace" {
34
family = "coder"
28
35
29
36
requires_compatibilities = ["EC2"]
30
- cpu = 1024
31
- memory = 2048
37
+ cpu = var.cpu
38
+ memory = var.memory
32
39
container_definitions = jsonencode([
33
40
{
41
name = "coder-workspace-${data.coder_workspace.me.id}"
0 commit comments