Sha256: b87c7e41fb631ade9b1970dd4836b6cb479dac8ecbe6f6c5aa6061779117890e

Contents?: true

Size: 1.02 KB

Versions: 15

Compression:

Stored size: 1.02 KB

Contents

{
  "family": "<%= @family %>",
<%#  "networkMode": "awsvpc", %>
  "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

15 entries across 15 versions & 1 rubygems

Version Path
ufo-4.2.0 lib/template/.ufo/templates/main.json.erb
ufo-4.1.10 lib/template/.ufo/templates/main.json.erb
ufo-4.1.9 lib/template/.ufo/templates/main.json.erb
ufo-4.1.8 lib/template/.ufo/templates/main.json.erb
ufo-4.1.7 lib/template/.ufo/templates/main.json.erb
ufo-4.1.6 lib/template/.ufo/templates/main.json.erb
ufo-4.1.5 lib/template/.ufo/templates/main.json.erb
ufo-4.1.4 lib/template/.ufo/templates/main.json.erb
ufo-4.1.2 lib/template/.ufo/templates/main.json.erb
ufo-4.1.1 lib/template/.ufo/templates/main.json.erb
ufo-4.1.0 lib/template/.ufo/templates/main.json.erb
ufo-4.0.3 lib/template/.ufo/templates/main.json.erb
ufo-4.0.2 lib/template/.ufo/templates/main.json.erb
ufo-4.0.1 lib/template/.ufo/templates/main.json.erb
ufo-4.0.0 lib/template/.ufo/templates/main.json.erb