forked from Capgemini/terraform-amazon-ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.tf
28 lines (23 loc) · 820 Bytes
/
templates.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* template files for registry and ecs role policies */
resource "template_file" "registry_policy" {
template = "${file("policies/registry.json")}"
vars {
s3_bucket_name = "${var.s3_bucket_name}"
}
}
resource "template_file" "ecs_service_role_policy" {
template = "${file("policies/ecs-service-role-policy.json")}"
vars {
s3_bucket_name = "${var.s3_bucket_name}"
}
}
resource "template_file" "registry_task" {
template = "${file("task-definitions/registry.json")}"
vars {
s3_bucket_name = "${aws_s3_bucket.registry.id}"
s3_bucket_region = "${aws_s3_bucket.registry.region}"
s3_bucket_access_key = "${aws_iam_access_key.registry.id}"
s3_bucket_secret_key = "${aws_iam_access_key.registry.secret}"
registry_docker_image = "${var.registry_docker_image}"
}
}