Adding tags to External container instances for Amazon ECS - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Adding tags to External container instances for Amazon ECS

You can associate tags with your external container instances for Amazon ECS by using one of the following methods.

  • Method 1 – Before running the installation script to register your external instance with your cluster, create or edit the Amazon ECS container agent configuration file at /etc/ecs/ecs.config and add the ECS_CONTAINER_INSTANCE_TAGS container agent configuration parameter. This creates tags that are associated with the external instance.

    The following is example syntax.

    ECS_CONTAINER_INSTANCE_TAGS={"tag_key": "tag_value"}
  • Method 2 – After your external instance is registered to your cluster, you can use the Amazon Web Services Management Console to add tags. For more information, see Adding tags to existing resources (Amazon ECS console).