Using IntelliSense for Amazon ECS task-definition files - AWS Toolkit for VS Code

Using IntelliSense for Amazon ECS task-definition files

One of the things that you might do when working with Amazon Elastic Container Service (Amazon ECS) is to create task definitions, as described in Creating a Task Definition from the Amazon Elastic Container Service Developer Guide. When you install the AWS Toolkit for Visual Studio Code, the installation includes IntelliSense functionality for Amazon ECS task-definition files.

Prerequisites

Use IntelliSense in Amazon ECS task-definition files

The following example shows you how you can take advantage of IntelliSense in Amazon ECS task-definition files.

  1. Create a JSON file for your Amazon ECS task definition. The file's name must have ecs-task-def.json at the end, but can have additional characters at the beginning.

    For this example, create a file named my-ecs-task-def.json

  2. Open the file in a VS Code editor and enter the initial curly braces.

  3. Enter the letter "c" as if you wanted to add cpu to the definition. Observe the IntelliSense dialog that opens, which is similar to the following.

    
                        IntelliSense dialog.