***

title: ecs cf-fragment command reference
approved: 2025-05-30T00:00:00.000Z
max-toc-depth: 2
----------------

The `ecs cf-fragment` command prints a code fragment that can be inserted into a CloudFormation template to add the Postman Insights Agent as a sidecar container. For help, use `-h` or `--help`.

## Usage

```bash
postman-insights-agent ecs cf-fragment [flags]
```

## Flags

* `--cluster string` - The name or ARN of the ECS cluster.
* `--dry-run` - Perform a dry run: Show what will be done, but don't change ECS.
* `--log-format string` - Set to `color`, `plain`, or `json` to control the log format.
* `--profile string` - The AWS profiles to use to access ECS.
* `--project string` - The Postman Insights project ID.
* `--proxy string` - The domain name, IP address, or URL of an HTTP proxy server to use.
* `--region string` - The AWS region in which the ECS cluster resides.
* `--service string` - The name or ARN of the ECS service.
* `--task string` - The name of the ECS task definition to change.
