All pages
Powered by GitBook
1 of 2

Loading...

Loading...

ECS Setup

Enable Elastic Container Service (ECS) for AWS when creating a DuploCloud Infrastructure

Setting up an Infrastructure that uses ECS is similar to creating an Infrastructure that uses EKS, except that during creation, instead of selecting Enable EKS, you select Enable ECS Cluster.

Add Infrastructure page with Enable ECS Cluster selected

For more information about ECS Services, see the Containers and Services documentation.

Up to one instance (0 or 1) of an ECS is supported for each DuploCloud Infrastructure.

Creating an Infrastructure with ECS can take some time. See the section for details about other elements on the Add Infrastructure form.

Infrastructure

Enable ECS logging

Enable ECS Elasticsearch logging for containers at the Tenant level

To generate logs for AWS ECS clusters, you must first create an Elasticsearch logging container. Once auditing is enabled, your container logging data can be captured for analysis.

Prerequisites

  • Create a Task Definition

  • Define at least one .

  • Enable the feature.

Enabling ECS ElasticSearch logging

  1. In the DuploCloud Portal, navigate to Administrator -> Tenant. The Tenant page displays.

  2. From the Name column, select the Tenant that is running the container for which you want to enable logging.

  3. Click the Settings tab.

Verifying ECS logging is enabled

You can verify that ECS logging is enabled for a specific container.

  1. In the DuploCloud Portal, navigate to Cloud Services -> ECS.

  2. In the Task Definitions tab, select the Task Definition Family Name in which your container is defined.

  3. Click the Task Definitions tab.

In the Container - 1 area, in the Container Other Config field, your LogConfiguration is displayed.

In the Container-2 area, another container is created by DuploCloud with the name log_router.

Click Add. The Add Tenant Feature pane displays.
  • From the Select Feature list box, select Other. The Configuration field displays.

  • In the Configuration field, enter Enable ECS ElasticSearch Logging.

  • In the field below the Configuration field, enter True.

  • Click Add. In the Settings tab, Enable ECS ElasticSearch Logging displays a Value of True.

  • Menu icon ( ) in the row of the task definition and select Edit Task Definition. The Edit Task Definition page displays your defined Containers.

    Service and container
    Audit
    The Task Definition Family Name detail page with Task Definitions tab selected
    Task Definitions tab menu with Edit Task Definition highlighted
    Container - 1 area of the Task Definition editor with highlighted Container Other Config field for container1
    Container - 2 area of the Task Definition editor displaying configuration for log_router container, created by DuploCloud