Skip to content

container_definitions should allow name overrides #81

@slpsys

Description

@slpsys

In configured_container_definition, the name is always set to the family.

I was poking around in #37 earlier this morning--and I think this is actually already possible if you've already got an ELB set up--BUT the biggest issue is that you need the container name inside your task definition and the container_name inside the load_balancers portion of the service definition to match . This is knowable, currently, because the container_name is derived, and is just "#{application}_#{target}", but this is both subject to potential change and also, frankly, annoying. I'd rather be able to override it like:

web: {
      service_config: {
        role: 'ecsServiceRole',
        load_balancers: [
          {
            container_name: 'my-app',
            container_port: 5000,
            ...
          }
        ]
      },
      task_definition_config: {
        container_definitions: [
          {
            name: 'my-app',

Right now, i'd have to set the web.service_config.load_balancers.container_name to be my-app_web.

Opening as an issue because this is up for debate; not hard to do (merge then reverse_merge?), but it's policy, not code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions