Skip to content

Commit

Permalink
chore(ecs): fix incorrect volume interface docs (#13302)
Browse files Browse the repository at this point in the history
fix: #13282


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
MrArnoldPalmer committed Feb 27, 2021
1 parent 1231ecc commit 4f464ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ecs/README.md
Expand Up @@ -258,14 +258,14 @@ container.addPortMappings({
To add data volumes to a task definition, call `addVolume()`:

```ts
const volume = ecs.Volume("Volume", {
const volume = {
// Use an Elastic FileSystem
name: "mydatavolume",
efsVolumeConfiguration: ecs.EfsVolumeConfiguration({
fileSystemId: "EFS"
// ... other options here ...
})
});
};

const container = fargateTaskDefinition.addVolume("mydatavolume");
```
Expand Down

0 comments on commit 4f464ac

Please sign in to comment.