Skip to content

Commit

Permalink
fix: rename ephemeralStorageSize to ephemeralStorageSizeMB
Browse files Browse the repository at this point in the history
  • Loading branch information
fossamagna committed Dec 13, 2024
1 parent df7d618 commit 724314b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export const myDemoFunction = defineFunction({
});
```

## `ephemeralStorageSize`
## `ephemeralStorageSizeMB`

By default, functions have 512MB of ephemeral storage to them. This can be configured from 512 MB upto 10240 MB. Note that this can increase the cost of function invocation. For more pricing information see [here](https://aws.amazon.com/lambda/pricing/).

```ts title="amplify/functions/my-demo-function/resource.ts"
export const myDemoFunction = defineFunction({
// highlight-next-line
ephemeralStorageSize: 1024 // allocate 1024 MB of ephemeral storage to the function.
ephemeralStorageSizeMB: 1024 // allocate 1024 MB of ephemeral storage to the function.
});
```

Expand Down

0 comments on commit 724314b

Please sign in to comment.