ecs-container-definition

bryan-rhm/ecs-container-definition/aws

Terraform Module HCL AWS

Terraform module for ECS container definitions

Install
module "ecs-container-definition" {
source = "bryan-rhm/ecs-container-definition/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-bryan-rhm-ecs-container-definition-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform ECS Container Definitions Inspired from (cloudpose module)[https://github.com/cloudposse/terraform-aws-ecs-container-definition] Requirements | Name | Version | |------|---------| | terraform | >= 1.0.0 | | aws | >=3.0 | | local | >= 1.2 | Providers No providers. Modules No modules. Resources No resources. Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | command | The command that is passed to the container | list(string) | null | no | | container\_cpu | The number of cpu units to reserve for the container. This is optional for tasks using Fargate launch type and the total amount of container\_cpu of all containers in a task will need to be lower than the task-level cpu value | number | 0 | no | | container\_definition

Inputs (42)
NameTypeDescriptionDefault
docker_security_optionslist(string)A list of strings to provide custom labels for SELinux and AppArmor multi-level required
linux_parametersobject({ capabilities = obLinux-specific modifications that are applied to the container, such as Linux ke required
dns_search_domainslist(string)Container DNS search domains. A list of DNS search domains that are presented to required
docker_labelsmap(string)The configuration options to send to the `docker_labels` required
hostnamestringThe hostname to use for your container. required
interactiveboolWhen this parameter is true, this allows you to deploy containerized application required
linkslist(string)List of container names this container can communicate with without port mapping required
container_memorynumberThe amount of memory (in MiB) to allow the container to use. This is a hard limi required
entrypointlist(string)The entry point that is passed to the container required
map_secretsmap(string)The secrets variables to pass to the container. This is a map of string: {key: v required
dns_serverslist(string)Container DNS servers. This is a list of strings specifying the IP addresses of 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
privilegedboolWhen this variable is `true`, the container is given elevated privileges on the required
container_memory_reservationnumberThe amount of memory (in MiB) to reserve for the container. If container needs t required
firelens_configurationobject({ type = string The FireLens configuration for the container. This is used to specify and config required
ulimitslist(object({ name = Container ulimit settings. This is a list of maps, where each map should contain required
container_namestringThe name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allow required
container_depends_onlist(object({ containerNamThe dependencies defined for container startup and shutdown. A container can con required
system_controlslist(map(string))A list of namespaced kernel parameters to set in the container, mapping to the - required
readonly_root_filesystemboolDetermines whether a container is given read-only access to its root filesystem.false
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[]
volumes_fromlist(object({ sourceContaiA list of VolumesFrom maps which contain "sourceContainer" (name of the containe[]
mount_pointslist(object({ containerPatContainer mount points. This is a list of maps, where each map should contain `c[]
environmentlist(object({ name = striThe environment variables to pass to the container. This is a list of maps. map_[]
container_cpunumberThe number of cpu units to reserve for the container. This is optional for tasks0
secretslist(object({ name = The secrets to pass to the container. This is a list of maps[]
container_definitionmap(any)Container definition overrides which allows for extra keys or overriding existin{}
… and 2 more inputs
Outputs (1)
json_map_encoded — JSON string encoded container definitions for use with other terraform resources such as aws_ecs_tas
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars0
Forks0
Total downloads4.5k
Inputs42
Outputs1
Examples6
LicenseApache-2.0
Namespacebryan-rhm
Updated