Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Created April 20, 2020 13:41
Show Gist options
  • Save PrashantBhatasana/dbcfe74d8de77922a7eed8ef381feb11 to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/dbcfe74d8de77922a7eed8ef381feb11 to your computer and use it in GitHub Desktop.
data "template_file" "test_def" {
template = "${file("${path.module}/testdefination/containerdef.json")}"
vars = {
JICOFO_COMPONENT_SECRET = "${var.JICOFO_COMPONENT_SECRET}"
JICOFO_AUTH_PASSWORD = "${var.JICOFO_AUTH_PASSWORD}"
JVB_AUTH_PASSWORD = "${var.JVB_AUTH_PASSWORD}"
JIGASI_XMPP_PASSWORD = "${var.JIGASI_XMPP_PASSWORD}"
JIBRI_RECORDER_PASSWORD = "${var.JIBRI_RECORDER_PASSWORD}"
JIBRI_XMPP_PASSWORD = "${var.JIBRI_XMPP_PASSWORD}"
}
}
resource "aws_ecs_task_definition" "this" {
family = "${var.environment}"
execution_role_arn = "${aws_iam_role.execution_role.arn}"
task_role_arn = "${aws_iam_role.task_role.arn}"
network_mode = "bridge"
requires_compatibilities = ["EC2"]
container_definitions = "${data.template_file.test_def.rendered}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment