Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
The portMapping
parameter had a duplicate name
field occurrence
Failure in creating services in the new release v0.61.0
I was waiting for the previous PR to get merged since I use this module in my project for a while. Saw CI checks didn't pass so I made a new fix PR.
log_configuration
, repository_credentials
, system_controls
, container_definition
jsonencode
/jsondecode
cycleoptional
obviates lookup(..., null)
calls for objectslookup(o, k)
without a default
is deprecated in favor of o[k]
or direct attr access (o.k
)log_configuration
, repository_credentials
, and system_controls
had needlessly opaque any
types which hinder DX and make subtle bugs more likely (e.g. in the types of log_configuration.options
values)container_definition
are now typed there's no reason not to type it as welllog_configuration
appropriately obviates explicit tostring
& null
handling; resolves #151for
-expressions iterate over maps & objects by key in lexicographic orderjsonencode
-ing the final container definition only to jsondecode
for json_map_object
is redundantSync github from the template
environment = null
which amazon translates to environment = []
environment = [] ~> null
Change all references to git.io/build-harness
into cloudposse.tools/build-harness
, since git.io
redirects will stop working on April 29th, 2022.
source
arguments use relative paths instead of the registry source.null
was specified should now be false
per AWS default
optional
function within the variable, but this feature is only available in TF15
examples/complete
is creating an aws_ecs_task_definition
and test the task definition in the automated testing.examples/multiple_definitions
0.13.0
examples/complete
to ensure aws_ecs_task_definition
has tags.aws_ecs_task_definition
and produces an identical result to the resource container_definitions
output.0.13.0
as the minimum supported version ensures this module is easier to maintain down the road.