Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Oct 16, 2024
1 parent b85fa80 commit 791a9b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 1 addition & 3 deletions examples/aws-api/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export default $config({
};
},
async run() {
const bucket = new sst.aws.Bucket("MyBucket", {
access: "public",
});
const bucket = new sst.aws.Bucket("MyBucket");
const api = new sst.aws.ApiGatewayV2("MyApi");
api.route("GET /", {
link: [bucket],
Expand Down
4 changes: 1 addition & 3 deletions examples/aws-hono/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export default $config({
};
},
async run() {
const bucket = new sst.aws.Bucket("MyBucket", {
access: "public",
});
const bucket = new sst.aws.Bucket("MyBucket");
const hono = new sst.aws.Function("Hono", {
url: true,
link: [bucket],
Expand Down
6 changes: 2 additions & 4 deletions www/src/content/docs/docs/start/aws/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ This will give you the URL of your API.

## 3. Add an S3 Bucket

Let's allow public `access` to our S3 Bucket for file uploads. Update your `sst.config.ts`.
Let's add an S3 Bucket for file uploads. Update your `sst.config.ts`.

```js title="sst.config.ts"
const bucket = new sst.aws.Bucket("MyBucket", {
access: "public"
});
const bucket = new sst.aws.Bucket("MyBucket");
```

Add this above the `Api` component.
Expand Down
6 changes: 2 additions & 4 deletions www/src/content/docs/docs/start/aws/hono.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ This will give you the URL of your API.

## 3. Add an S3 Bucket

Let's allow public `access` to our S3 Bucket for file uploads. Update your `sst.config.ts`.
Let's add an S3 Bucket for file uploads. Update your `sst.config.ts`.

```js title="sst.config.ts"
const bucket = new sst.aws.Bucket("MyBucket", {
access: "public"
});
const bucket = new sst.aws.Bucket("MyBucket");
```

#### Link the bucket
Expand Down

0 comments on commit 791a9b6

Please sign in to comment.