File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ = Terraform module to setup Datadog ECS daemon service
2
+
3
+ This module helps you create Datadog ECS daemon service and the related task role, assuming that:
4
+
5
+ * you have created a ECS cluster
6
+ * and of course, your AWS account provides you access to all these resources necessary.
7
+
8
+ == Sample Usage
9
+
10
+ You can literally copy and paste the following example, change the following attributes, and you're ready to go:
11
+
12
+ * `datadog-api-key`: set it to Datadog API Key
13
+ * `datadog-extra-config` set to a shell script to run when starting the Datadog container
14
+ * `env` set to the name of environment name (e.g., `test`)
15
+ * `identifier` set to the identifier (e.g., `datadog`)
16
+ * `ecs-cluster-id` set to the arn of an ECS cluster
17
+
18
+ [source,hcl]
19
+ ----
20
+ # include this module and enter the values of input variables
21
+ module "ecs-datadog" {
22
+ source = "github.com/riboseinc/terraform-aws-ecs-datadog"
23
+
24
+ datadog-api-key = "${var.datadog-api-key}"
25
+ datadog-extra-config = "${var.datadog-extra-config}"
26
+ env = "${var.env}"
27
+ identifier = "${var.identifier}"
28
+ ecs-cluster-id = "${var.ecs-cluster-id}"
29
+ }
30
+
31
+ variable "datadog-api-key" {
32
+ default = "XXXXXX"
33
+ }
34
+
35
+ variable "datadog-extra-config" {
36
+ default = "do_something.sh; ./init"
37
+ }
38
+
39
+ variable "env" {
40
+ default = "test"
41
+ }
42
+
43
+ variable "identifier" {
44
+ default = "mydatadog"
45
+ }
46
+
47
+ variable "ecs-cluster-id" {
48
+ default = "ecs-cluster-arn"
49
+ }
50
+ ----
You can’t perform that action at this time.
0 commit comments