Sha256: 3cbacf05323eb1918d2f9930a8af6ffa2c17ff2baf847983dba34e03428f1695

Contents?: true

Size: 990 Bytes

Versions: 4

Compression:

Stored size: 990 Bytes

Contents

{
  "family": "<%= @family %>",
  "requiresCompatibilities": ["FARGATE"],
  "networkMode": "awsvpc",
  "executionRoleArn": "<%= @execution_role_arn %>",
  "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 @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

4 entries across 4 versions & 1 rubygems

Version Path
ufo-3.4.3 lib/template/.ufo/templates/fargate.json.erb
ufo-3.4.2 lib/template/.ufo/templates/fargate.json.erb
ufo-3.4.1 lib/template/.ufo/templates/fargate.json.erb
ufo-3.4.0 lib/template/.ufo/templates/fargate.json.erb