fluentbit

AdRoll/fluentbit/container

Terraform Module HCL CONTAINER

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource for fluentbit

Install
module "fluentbit" {
source = "AdRoll/fluentbit/container"
version = "0.2.0"
}
plain text: /constructs/tfmod-adroll-fluentbit-container/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-container-fluentbit Terraform module to generate well-formed JSON documents that are passed to the aws_ecs_task_definition Terraform resource as container definitions. --- Usage IMPORTANT: The main branch is used in source just as an example. In your code, do not pin to main because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our latest releases. This module is meant to be used as output only, meaning it will be used to create outputs which are consumed as a parameter by Terraform resources or other modules. For complete examples, see - complete For a complete example with automated tests, see examples/complete with bats and Terratest for the example test. ``hcl module "fluentbit_container" { # this can and shoul

Inputs (35)
NameTypeDescriptionDefault
dns_search_domainslist(string)Container DNS search domains. A list of DNS search domains that are presented to required
start_timeoutnumberTime duration (in seconds) to wait before giving up on resolving dependencies fo required
working_directorystringThe working directory to run commands inside the container required
linux_parametersobject({ capabilities = obLinux-specific modifications that are applied to the container, such as Linux ke required
stop_timeoutnumberTime duration (in seconds) to wait before the container is forcefully killed if required
entrypointlist(string)The entry point that is passed to the container required
dns_serverslist(string)Container DNS servers. This is a list of strings specifying the IP addresses of required
system_controlslist(map(string))A list of namespaced kernel parameters to set in the container, mapping to the - required
container_memory_reservationnumberThe amount of memory (in MiB) to reserve for the container. If container needs t required
commandlist(string)The command that is passed to the container required
repository_credentialsmap(string)Container repository credentials; required when using a private repo. This map required
userstringThe user to run as inside the container. Can be any of these formats: user, user required
secretslist(object({ name = The secrets to pass to the container. This is a list of maps required
container_depends_onlist(object({ containerNamThe dependencies defined for container startup and shutdown. A container can con required
docker_labelsmap(string)The configuration options to send to the `docker_labels` required
extra_hostslist(object({ ipAddress = A list of hostnames and IP address mappings to append to the /etc/hosts file on required
log_configurationstringLog configuration options to send to a custom log driver for the container. For required
ulimitslist(object({ name = Container ulimit settings. This is a list of maps, where each map should contain required
linkslist(string)List of container names this container can communicate with without port mapping required
environment_fileslist(object({ value = striOne or more files containing the environment variables to pass to the container. required
container_memorynumberThe amount of memory (in MiB) to allow the container to use. This is a hard limi64
essentialboolDetermines whether all other containers in a task are stopped, if this containertrue
port_mappingslist(object({ containerPorThe port mappings to configure for the container. This is a list of maps. Each m[]
healthcheckobject({ command = lisA map containing command (string), timeout, interval (duration in seconds), retr{ "command": [ "CMD-SHELL", "[
container_imagestringThe image used to start the container. Images in the Docker Hub registry availab""
container_cpunumberThe number of cpu units to reserve for the container. This is optional for tasks64
volumes_fromlist(object({ sourceContaiA list of VolumesFrom maps which contain "sourceContainer" (name of the containe[]
container_namestringThe name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allow"log_router"
map_environmentmap(string)The environment variables to pass to the container. This is a map of string: {ke{}
logging_group_namestringIf logging to cloudwatch, this will be the cloudwatch log group name""
readonly_root_filesystemboolDetermines whether a container is given read-only access to its root filesystem.false
container_definitionmapContainer definition overrides which allows for extra keys or overriding existin{}
mount_pointslistContainer mount points. This is a list of maps, where each map should contain a []
firelens_configurationobject({ type = string The FireLens configuration for the container. This is used to specify and config{ "options": { "config-file-type":
Outputs (2)
json_map — Map type of container definition
json — String type of container definition
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud CONTAINER
★ Stars1
Forks2
Total downloads783
Inputs35
Outputs2
Examples1
LicenseMIT
NamespaceAdRoll
Updated