mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 19:02:07 +03:00
remove template_file provider
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
# app
|
||||
|
||||
data "template_file" "myapp-task-definition-template" {
|
||||
template = file("templates/app.json.tpl")
|
||||
vars = {
|
||||
REPOSITORY_URL = replace(aws_ecr_repository.myapp.repository_url, "https://", "")
|
||||
APP_VERSION = var.MYAPP_VERSION
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_ecs_task_definition" "myapp-task-definition" {
|
||||
family = "myapp"
|
||||
container_definitions = data.template_file.myapp-task-definition-template.rendered
|
||||
container_definitions = templatefile("templates/app.json.tpl", {
|
||||
REPOSITORY_URL = replace(aws_ecr_repository.myapp.repository_url, "https://", "")
|
||||
APP_VERSION = var.MYAPP_VERSION
|
||||
})
|
||||
}
|
||||
|
||||
resource "aws_ecs_service" "myapp-service" {
|
||||
|
||||
Reference in New Issue
Block a user