Skip to content

Commit 78c1702

Browse files
authored
docs: Add examples for open issue questions (#188)
1 parent 7899144 commit 78c1702

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.88.1
3+
rev: v1.88.4
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each
@@ -25,7 +25,7 @@ repos:
2525
- '--args=--only=terraform_unused_required_providers'
2626
- id: terraform_validate
2727
- repo: https://github.com/pre-commit/pre-commit-hooks
28-
rev: v4.5.0
28+
rev: v4.6.0
2929
hooks:
3030
- id: check-merge-conflict
3131
- id: end-of-file-fixer

examples/fargate/main.tf

+15-4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ module "ecs_service" {
121121
}
122122
}
123123

124+
# Not required for fluent-bit, just an example
125+
volumes_from = [{
126+
sourceContainer = "fluent-bit"
127+
readOnly = false
128+
}]
129+
124130
memory_reservation = 100
125131
}
126132
}
@@ -179,15 +185,19 @@ module "ecs_task_definition" {
179185
source = "../../modules/service"
180186

181187
# Service
182-
name = "${local.name}-standalone"
183-
cluster_arn = module.ecs_cluster.arn
184-
create_service = false
188+
name = "${local.name}-standalone"
189+
cluster_arn = module.ecs_cluster.arn
185190

186191
# Task Definition
187192
volume = {
188193
ex-vol = {}
189194
}
190195

196+
runtime_platform = {
197+
cpu_architecture = "ARM64"
198+
operating_system_family = "LINUX"
199+
}
200+
191201
# Container definition(s)
192202
container_definitions = {
193203
al2023 = {
@@ -200,7 +210,8 @@ module "ecs_task_definition" {
200210
}
201211
]
202212

203-
command = ["/usr/bin/cat", "/etc/os-release"]
213+
command = ["echo hello world"]
214+
entrypoint = ["/usr/bin/sh", "-c"]
204215
}
205216
}
206217

0 commit comments

Comments
 (0)