forked from strvcom/terraform-aws-fargate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
36 lines (29 loc) · 921 Bytes
/
main.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
29
30
31
32
33
34
35
36
terraform {
required_version = "~> 0.11.11"
}
provider "aws" {
version = "~> 1.54.0"
region = "us-east-1"
profile = "playground"
}
module "fargate" {
source = "../../"
name = "basic-example"
services = {
api = {
task_definition = "api.json"
container_port = 3000
cpu = "256"
memory = "512"
replicas = 3
registry_retention_count = 15 # Optional. 20 by default
logs_retention_days = 14 # Optional. 30 by default
health_check_interval = 100 # Optional. In seconds. 30 by default
health_check_path = "/health-check" # Optional. "/" by default
}
}
# If you want to set up a SNS topic receiving CodePipeline current status
# SNS's ARN could be use by getting the output of the module eg =>
# arn = "${module.fargate.codepipeline_events_sns_arn}"
codepipeline_events_enabled = true
}