You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The service_registries variable has 4 parameters, and all 4 required from this module. In the underlying module that this calls, the only required parameter is registry_arn, they rest are listed as optional. When we try to add this functionality on an existing module, we have to specify all 4 parameters, or the module will fail validations. However, on existing ECS services, we do not need the port and container_port, because they are optional and dealt with by the ECS config JSON.
I think a way to fix this would to tweaking the variable structure so that it can accept those parameters not being there, and then main to set them if they are there, or null if not
To Reproduce
Steps to reproduce the behavior:
Create a service without the service_registries section defined
Update with adding that parameter
You will either get an error because parameters are not set, or because they are and you don't need them
Expected behavior
The parameters are optional instead of required
The text was updated successfully, but these errors were encountered:
Describe the bug
The
service_registries
variable has 4 parameters, and all 4 required from this module. In the underlying module that this calls, the only required parameter isregistry_arn
, they rest are listed as optional. When we try to add this functionality on an existing module, we have to specify all 4 parameters, or the module will fail validations. However, on existing ECS services, we do not need theport
andcontainer_port
, because they are optional and dealt with by the ECS config JSON.I think a way to fix this would to tweaking the variable structure so that it can accept those parameters not being there, and then main to set them if they are there, or null if not
To Reproduce
Steps to reproduce the behavior:
service_registries
section definedExpected behavior
The parameters are optional instead of required
The text was updated successfully, but these errors were encountered: