

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Pipes::Pipe EcsEnvironmentVariable
<a name="aws-properties-pipes-pipe-ecsenvironmentvariable"></a>

The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.

## Syntax
<a name="aws-properties-pipes-pipe-ecsenvironmentvariable-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pipes-pipe-ecsenvironmentvariable-syntax.json"></a>

```
{
  "[Name](#cfn-pipes-pipe-ecsenvironmentvariable-name)" : String,
  "[Value](#cfn-pipes-pipe-ecsenvironmentvariable-value)" : String
}
```

### YAML
<a name="aws-properties-pipes-pipe-ecsenvironmentvariable-syntax.yaml"></a>

```
  [Name](#cfn-pipes-pipe-ecsenvironmentvariable-name): String
  [Value](#cfn-pipes-pipe-ecsenvironmentvariable-value): String
```

## Properties
<a name="aws-properties-pipes-pipe-ecsenvironmentvariable-properties"></a>

`Name`  <a name="cfn-pipes-pipe-ecsenvironmentvariable-name"></a>
The name of the key-value pair. For environment variables, this is the name of the environment variable.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-pipes-pipe-ecsenvironmentvariable-value"></a>
The value of the key-value pair. For environment variables, this is the value of the environment variable.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)