terraform-aws-ecs-container-definition icon indicating copy to clipboard operation
terraform-aws-ecs-container-definition copied to clipboard

linux_parameters variable value should allow filling only the needed options

Open walid-farhani opened this issue 2 years ago • 1 comments
trafficstars

Describe the Bug

When declaring the linux_parameters input variable, I cannot populate values for only the specific parameters that I need. In the official documentation, none of the Linux-specific options are marked as required. However, in the module implementation, it is mandatory to populate all the Linux-specific options in order to set even one parameter.

Expected Behavior

When declaring the linux_parameters input variable with only the specific parameters that I want to set, the module should accept the input and set the provided parameters without requiring all the Linux-specific options to be populated.

Steps to Reproduce

  1. Declare the linux_parameters input variable with a partial set of parameters in the capabilities object.
  2. Apply the Terraform module that uses the linux_parameters input variable.
  3. Observe that the module fails with an error message that indicates that all the Linux-specific options must be populated, even though only a partial set of parameters were provided.
  4. Attempt to declare the linux_parameters input variable with only the specific parameters that you want to set again.
  5. Observe that it is not possible to set only specific parameters, and that all Linux-specific options must be populated in order to set any parameters.

Screenshots

image

Environment

No response

Additional Context

No response

walid-farhani avatar Apr 21 '23 03:04 walid-farhani

There's a temporary solution here: https://github.com/cloudposse/terraform-aws-ecs-container-definition/issues/143#issuecomment-896049039

hpaolini avatar May 16 '23 09:05 hpaolini