cloudposse / terraform-aws-ecs-container-definition

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
https://cloudposse.com/accelerate
Apache License 2.0
339 stars 244 forks source link

Force user to "0" when firelens is set #97

Closed dekimsey closed 3 years ago

dekimsey commented 3 years ago

what

Firelens tasks must only be configured with user="0"

why

If one submits a firelens-enabled task definition with user=null, AWS replaces the value with "0". This causes Terraform to repeatedly try to fix the discrepancy.

              ~ user                   = "0" -> null

Additionally, attempting to set the user to any value other than "0" (or null) is an error:

              ~ user                   = "0" -> "root"
...
Error: ClientException: If 'user' field is specified on firelens container, then 'UID' has to be '0'.
osterman commented 3 years ago

/test all

nitrocode commented 3 years ago

/terraform-fmt

nitrocode commented 3 years ago

/test all

nitrocode commented 3 years ago

/rebuild-readme

nitrocode commented 3 years ago

/test all