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

APACHE-2.0 License

Stars
339
Committers
52

Bot releases are hidden (Show)

terraform-aws-ecs-container-definition -

Published by nitrocode almost 4 years ago

terraform-aws-ecs-container-definition - 0.43.0: Additional keys

Published by nitrocode almost 4 years ago

terraform-aws-ecs-container-definition - 0.42.0 0.12 supports null comparison

Published by aknysh about 4 years ago

what

  • remove the null_value code

why

  • Terraform 0.12 supports conditional operations with null value

references

terraform-aws-ecs-container-definition - 0.41.0: var.log_configuration type to any

Published by nitrocode about 4 years ago

terraform-aws-ecs-container-definition -

Published by Gowiem about 4 years ago

terraform-aws-ecs-container-definition -

Published by Gowiem about 4 years ago

terraform-aws-ecs-container-definition -

Published by nitrocode about 4 years ago

terraform-aws-ecs-container-definition - 0.37.0: Set user to null to use default in Docker

Published by nitrocode over 4 years ago

what

  • ECS default behavior is to have this left unset.
  • This allows the container to run with the build-specificed USER in the Dockerfile (if set, root by default)

why

  • The default behavior is to use the container's USER runtime.
  • Defaulting the runtime is a security gap as it can cause containers that were built to run as other users to suddenly start running as root when deployed with this module.

Note, this could break existing container environments running in the wild if they were inadvertently taking advantage of the root access.

terraform-aws-ecs-container-definition - 0.36.0: Add support for `map_environment` variable

Published by Gowiem over 4 years ago

What

  • Adds the map_environment variable to support an additional way to pass environment variables

Why

  • Provides an asked for interface for passing environment variables.

References

  • #61
  • #63
terraform-aws-ecs-container-definition - 0.35.0: Make secretOptions optional

Published by nitrocode over 4 years ago

what

  • Make secretOptions optional so the same technique for mount_points is used for log_configuration

why

  • Currently the log_configuration has to be set to null otherwise upon an apply, you will see

references

terraform-aws-ecs-container-definition - 0.34.0: Add support for DNS Search Domains

Published by nitrocode over 4 years ago

what

  • Add DNS Search Domain as an option

why

  • Missing option in current module

references

terraform-aws-ecs-container-definition - 0.33.0: Uses appropriate defaults for `user` and `environment`

Published by Gowiem over 4 years ago

what

Use the same defaults of user and environment as the AWS API defaults

why

Noticed on subsequent applies that user goes from 0 to null and environment goes from [] to null

references

https://github.com/cloudposse/terraform-aws-ecs-container-definition/pull/65

terraform-aws-ecs-container-definition - 0.32.0: Fixes not using local.container_definition_without_null when merging

Published by Gowiem over 4 years ago

what

Previous PR https://github.com/cloudposse/terraform-aws-ecs-container-definition/pull/81 forgot to use local.container_definition_without_null when merging

why

  • null is still showing up in the diff

references

terraform-aws-ecs-container-definition - 0.31.0: Extra Parameters

Published by nitrocode over 4 years ago

what

  • Support a new parameter named var.container_definition which is an object.

why

  • This would allow absolutely any parameter to be passed to the module, or to override the behavior of the module on any property
terraform-aws-ecs-container-definition - 0.30.0: Reduce diff spam and unset defaults #65

Published by nitrocode over 4 years ago

what

  • Reduce diff spam and unset defaults

why

  • To reduce noise in the terraform plan
terraform-aws-ecs-container-definition - 0.29.0: Make log_configuration's secretOptions optional #76

Published by nitrocode over 4 years ago

what

  • Make log_configuration's secretOptions optional

why

  • So secretOptions won't need to be set to use the log_configuration
terraform-aws-ecs-container-definition - 0.28.0: Add support for extra_hosts option #62

Published by Gowiem over 4 years ago

what

  • Adds extra_hosts variable

why

  • Adds the ability to add hostnames and IP address mappings to the /etc/hosts file on the container.
terraform-aws-ecs-container-definition -

Published by osterman over 4 years ago

terraform-aws-ecs-container-definition - 0.26.0 Remove default port mapping as it is optional

Published by nitrocode over 4 years ago

what

  • Remove default port mapping as it is optional

why

  • The default port mapping is optional so maintaining a default port 80 mapping didn't make sense.
terraform-aws-ecs-container-definition - 0.25.0 Change variable "privileged" type to bool

Published by aknysh over 4 years ago

what

  • Change variable "privileged" type to bool

why

  • The variable "privileged" is currently type string, which is a holdover from Terraform v0.11/HCL v1. This variable is broken in TF 0.12; it causes an error because the AWS provider was expected a bool true but got a string "true" instead