mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 20:35:42 +03:00
* func: make paths relative * func: make paths relative to the module inside the e2e terraform folder * fix: add license files to gitignore * func: move /etc and update all paths * Uncomment forgotten code * fix: update the path to the tls certificates to be local to the instance
29 lines
798 B
HCL
29 lines
798 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
# Nomad ECS Remote Task Driver E2E
|
|
resource "aws_ecs_cluster" "nomad_rtd_e2e" {
|
|
name = "nomad-rtd-e2e"
|
|
}
|
|
|
|
resource "aws_ecs_task_definition" "nomad_rtd_e2e" {
|
|
family = "nomad-rtd-e2e"
|
|
container_definitions = file("${path.module}/ecs-task.json")
|
|
|
|
# Don't need a network for e2e tests
|
|
network_mode = "awsvpc"
|
|
|
|
requires_compatibilities = ["FARGATE"]
|
|
cpu = 256
|
|
memory = 512
|
|
}
|
|
|
|
resource "local_file" "ecs_vars_hcl" {
|
|
content = templatefile("${path.module}/ecs.tftpl", {
|
|
sg_id = aws_security_group.clients.id,
|
|
subnet_id = data.aws_subnet.default.id,
|
|
})
|
|
filename = "${path.module}/../remotetasks/input/ecs.vars"
|
|
file_permission = "0664"
|
|
}
|