- Newest
- Most votes
- Most comments
To enable cross-account S3 bucket access for Amazon Bedrock, you need to configure permissions in both accounts. Here's how to set it up:
In the bucket owner's account, you should have a bucket policy that grants access to users in the bucket owner's account, including ListBucket and GetObject permissions. The policy should specify the appropriate role ARN and bucket resources.
I would request you to check if you have given permissions to the correct lambda execution role.
In the user's AWS account, create an import execution role policy that specifies the bucket owner's account ID using aws:ResourceAccount condition and includes necessary S3 permissions.
If the S3 bucket is encrypted with a custom AWS KMS key, additional steps are required:
- In the bucket owner's account, create a resource policy allowing the user's account import role to perform kms:Decrypt and kms:DescribeKey actions
- In the user's account, update the import execution role policy to include permissions for the specific KMS key
You can refer below documents in reference for troubleshooting the error :
References :
[1] Cross-account access to Amazon S3 bucket for custom model import jobs - https://docs.aws.amazon.com/bedrock/latest/userguide/cross-account-access-cmi.html [2] How to configure cross-account model deployment using Amazon Bedrock Custom Model Import - https://aws.amazon.com/blogs/machine-learning/how-to-configure-cross-account-model-deployment-using-amazon-bedrock-custom-model-import/?nc2=h_mo-lang
Relevant content
- AWS OFFICIALUpdated 16 days ago