Sha256: df9cba387d8cbeae550c2c424ec7e356555aeee89edd640dbb54f8b1ea4524ca

Contents?: true

Size: 987 Bytes

Versions: 34

Compression:

Stored size: 987 Bytes

Contents

---
family: <%= @family %>
# "bridge" is default because "awsvpc" requires specific instance types and
# ECS tasks to run on private subnets.
# Note: However, bridge mode requires user to open up EC2 instances ports: 49153-65535
networkMode: bridge
containerDefinitions:
- name: <%= @name %>
  image: <%= @image %>
  cpu: <%= @cpu %>
  memory: <%= @memory %>
  memoryReservation: <%= @memory_reservation %>
<% if @container_port -%>
  portMappings:
  - containerPort: <%= @container_port %>
    protocol: tcp
<% end -%>
  command: <%= @command.to_json %>
  linuxParameters:
    initProcessEnabled: true
  environment: <%= @environment.to_json if @environment %>
  secrets: <%= @secrets.to_json if @secrets %>
<% if @awslogs_group -%>
  logConfiguration:
    logDriver: awslogs
    options:
      awslogs-group: "<%= @awslogs_group %>"
      awslogs-region: "<%= @awslogs_region || 'us-east-1' %>"
      awslogs-stream-prefix: "<%= @awslogs_stream_prefix %>"
<% end -%>
  essential: true

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.12 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.11 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.10 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.9 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.8 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.7 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.6 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.5 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.4 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.3 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.2 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.1 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.3.0 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.5 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.4 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.3 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.2 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.1 lib/templates/init/.ufo/resources/task_definitions/web.yml
ufo-6.2.0 lib/templates/init/.ufo/resources/task_definitions/web.yml