Skip to content

Commit 74a8821

Browse files
committed
Add README
1 parent 290ed20 commit 74a8821

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

README.adoc

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
----

0 commit comments

Comments
 (0)