Skip to content

Commit

Permalink
docs: Add examples for open issue questions (terraform-aws-modules#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Apr 9, 2024
1 parent 7899144 commit 78c1702
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.88.1
rev: v1.88.4
hooks:
- id: terraform_fmt
- id: terraform_wrapper_module_for_each
Expand All @@ -25,7 +25,7 @@ repos:
- '--args=--only=terraform_unused_required_providers'
- id: terraform_validate
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
Expand Down
19 changes: 15 additions & 4 deletions examples/fargate/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ module "ecs_service" {
}
}

# Not required for fluent-bit, just an example
volumes_from = [{
sourceContainer = "fluent-bit"
readOnly = false
}]

memory_reservation = 100
}
}
Expand Down Expand Up @@ -179,15 +185,19 @@ module "ecs_task_definition" {
source = "../../modules/service"

# Service
name = "${local.name}-standalone"
cluster_arn = module.ecs_cluster.arn
create_service = false
name = "${local.name}-standalone"
cluster_arn = module.ecs_cluster.arn

# Task Definition
volume = {
ex-vol = {}
}

runtime_platform = {
cpu_architecture = "ARM64"
operating_system_family = "LINUX"
}

# Container definition(s)
container_definitions = {
al2023 = {
Expand All @@ -200,7 +210,8 @@ module "ecs_task_definition" {
}
]

command = ["/usr/bin/cat", "/etc/os-release"]
command = ["echo hello world"]
entrypoint = ["/usr/bin/sh", "-c"]
}
}

Expand Down

0 comments on commit 78c1702

Please sign in to comment.