Skip to content

Commit

Permalink
chore(ecs): fix incorrect volume interface docs (aws#13302)
Browse files Browse the repository at this point in the history
fix: aws#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 authored 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
Original file line number Diff line number Diff line change
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.