Sha256: a69b352d074ab6fb4ca5ab8aff07c0e486ca18759b87517a7515295de119c083

Contents?: true

Size: 1018 Bytes

Versions: 6

Compression:

Stored size: 1018 Bytes

Contents

{
  "family": "<%= @family %>",
  "containerDefinitions": [
    {
      "name": "<%= @name %>",
      "image": "<%= @image %>",
      "cpu": <%= @cpu %>,
      <% if @memory %>
      "memory": <%= @memory %>,
      <% end %>
      <% if @memory_reservation %>
      "memoryReservation": <%= @memory_reservation %>,
      <% end %>
      <% if @container_port %>
      "portMappings": [
        {
          "containerPort": "<%= @container_port %>",
          "protocol": "tcp"
        }
      ],
      <% end %>
      "command": <%= @command.to_json %>,
      <% if @environment %>
      "environment": <%= @environment.to_json %>,
      <% end %>
      <% 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

6 entries across 6 versions & 1 rubygems

Version Path
ufo-3.4.3 lib/template/.ufo/templates/main.json.erb
ufo-3.4.2 lib/template/.ufo/templates/main.json.erb
ufo-3.4.1 lib/template/.ufo/templates/main.json.erb
ufo-3.4.0 lib/template/.ufo/templates/main.json.erb
ufo-3.3.2 lib/template/.ufo/templates/main.json.erb
ufo-3.3.1 lib/template/.ufo/templates/main.json.erb