Sha256: 76bf20bd00d022f3d713cb0d2213f3bf61cbdc0e72afc7d4d9ed60812fc07fee

Contents?: true

Size: 1018 Bytes

Versions: 7

Compression:

Stored size: 1018 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.6 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.5 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.4 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.3 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.2 lib/template/.ufo/templates/fargate.json.erb
ufo-5.0.1 lib/template/.ufo/templates/fargate.json.erb