Skip to content

Commit 517e3e8

Browse files
update callout for adding existing bucket and amplify storage together, revert callout on owners example section
1 parent 730e80d commit 517e3e8

File tree

1 file changed

+2
-3
lines changed
  • src/pages/[platform]/build-a-backend/storage/use-with-custom-s3

1 file changed

+2
-3
lines changed

src/pages/[platform]/build-a-backend/storage/use-with-custom-s3/index.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ In order to make calls to your manually configured S3 bucket from your applicati
8383
Next, use the `addOutput` method from the backend definition object to define a custom S3 bucket by specifying the name and region of the bucket in your `amplify/backend.ts` file. You must also set up the appropriate resources and IAM policies to be attached to the backend.
8484

8585
<Callout>
86-
**Important:** You can use a storage backend configured through Amplify and a custom S3 bucket at the same time using this method. However, the Amplify-configured storage will be used as the default bucket, and automatically provide its name and region to `addOutput`.
86+
**Important:** You can use a storage backend configured through Amplify and a custom S3 bucket at the same time using this method. However, the Amplify-configured storage will be used as the **default bucket** and the custom S3 bucket will only be used as an additional bucket.
8787
</Callout>
8888

8989
Below are several examples of configuring the backend to define a custom S3 bucket:
@@ -340,9 +340,8 @@ backend.auth.resources.groups["admin"].role.attachInlinePolicy(adminPolicy);
340340
{/* cSpell:enable */}
341341
</Block>
342342
<Block name="Owners">
343-
<Callout>
344343
Amplify allows scoping file access to individual users via the user's identity ID. To specify the user's identity ID, you can use the token `${cognito-identity.amazonaws.com:sub}`.
345-
</Callout>
344+
346345
Below is an example of expanding the original backend object to define read access for guests to the `public/` folder, as well as defining a `protected/` folder where anyone can view uploaded files, but only the file owner can modify/delete them:
347346

348347
{/* cSpell:disable */}

0 commit comments

Comments
 (0)