diff --git a/packages/@aws-cdk/aws-ecs/lib/container-definition.ts b/packages/@aws-cdk/aws-ecs/lib/container-definition.ts index 25fa86faae901..b06ee9cdf44eb 100644 --- a/packages/@aws-cdk/aws-ecs/lib/container-definition.ts +++ b/packages/@aws-cdk/aws-ecs/lib/container-definition.ts @@ -194,6 +194,13 @@ export interface ContainerDefinitionOptions { * @default - No Linux paramters. */ readonly linuxParameters?: LinuxParameters; + + /** + * The Secret property specifies an object representing the secret to expose to the container + * For more information, see [Specifying Sensitive Data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) + * in the Amazon Elastic Container Service Developer Guide. + */ + readonly secrets?: Array } /** @@ -444,6 +451,7 @@ export class ContainerDefinition extends cdk.Construct { healthCheck: this.props.healthCheck && renderHealthCheck(this.props.healthCheck), links: this.links, linuxParameters: this.linuxParameters && this.linuxParameters.renderLinuxParameters(), + secrets: this.props.secrets }; } }