aws-amplify / aws-amplify/docs

AWS Amplify Gen 2 - Add Existing S3: Where to find settings "AWS-account-ID" and "role-name?

Open
#8,007 1 comment 0 reactions 0 assignees View on GitHub
amplify/backend
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

I am following the docs here: [Use Amplify Storage with any S3 bucket](https://docs.amplify.aws/angular/build-a-backend/storage/use-with-custom-s3/

In the first step, it's asking to edit the S3 bucket policy with the following information: Replace with your AWS account ID and with the IAM role associated with your Amplify Auth setup.

![image](https://github.com/user-attachments/assets/bb6b119b-55f3-4211-a985-250849ecfec8)

Where can I find the "AWS-account-ID" and the "role-name"?

I am guessing that the "AWS-account-ID" is the ID found in the Amplify App Settings where it says App ARN:
![image](https://github.com/user-attachments/assets/41465fee-468d-4545-8a69-53713cc5c745)

I can find the Cognito User Pool associated with my Auth, but I am not sure where to find the "role-name". (There are about 200 roles in my account). The existing S3 that I want to re-use was created with Amplify Gen 1 v5.

The documentation should explain those steps in more details.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.