Starting the Amazon AppConfig agent for Amazon ECS integration - Amazon AppConfig
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).

Starting the Amazon AppConfig agent for Amazon ECS integration

The Amazon AppConfig Agent sidecar container is automatically available in your Amazon ECS environment. To use it, you must start it, as described in the following procedure.

To start Amazon ECS (console)
  1. Open the console at https://console.amazonaws.cn/ecs/v2.

  2. In the navigation pane, choose Task definitions.

  3. Choose the task definition for your application, and then select the latest revision.

  4. Choose Create new revision, Create new revision.

  5. Choose Add more containers.

  6. For Name, enter a unique name for the Amazon AppConfig Agent container.

  7. For Image URI, enter: public.ecr.aws/aws-appconfig/aws-appconfig-agent:2.x

  8. For Essential container, choose Yes.

  9. In the Port mappings section, choose Add port mapping.

  10. For Container port, enter 2772.

    Note

    Amazon AppConfig Agent runs on port 2772, by default. You can specify a different port.

  11. Choose Create. Amazon ECS creates a new container revision and displays the details.

  12. In the navigation pane, choose Clusters, and then choose your application cluster in the list.

  13. On the Services tab, select the service for your application.

  14. Choose Update.

  15. Under Deployment configuration, for Revision, choose the latest revision.

  16. Choose Update. Amazon ECS deploys the latest task definition.

  17. After the deployment finishes, you can verify that Amazon AppConfig Agent is running on the Configuration and tasks tab. On the Tasks tab, choose the running task.

  18. In the Containers section, verify that the Amazon AppConfig Agent container is listed.

  19. To verify that Amazon AppConfig Agent started, choose the Logs tab. Locate a statement like the following for the Amazon AppConfig Agent container: [appconfig agent] 1970/01/01 00:00:00 INFO serving on localhost:2772

Note

Note the following information.