Skip to content

Output container_definitions is not a list if register_task_definition is set to false #22

@akikoskinen

Description

@akikoskinen

According to container_definitions output variable documentation:

A list of container definitions in JSON format that describe the different containers that make up your task

But if one sets the register_task_definition input variable to "false" (in order to use this module only as a container definitions JSON generator), the container_definitions output is not a list, but a JSON object, representing a single container definition. I think it's a bug to change the output variables type based on a seemingly unrelated input variable.

The place where this happens in the code is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions