How to Resolve "Access Denied (403) Forbidden" Error in Azure Data Factory When Connecting to AWS S3

Smaran Thoomu 24,260 Reputation points Microsoft External Staff Moderator
2024-07-31T15:12:48.01+00:00

Why am I receiving an "Access Denied (403) Forbidden" error when trying to connect Azure Data Factory to my AWS S3 account, and how can I resolve it?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 24,260 Reputation points Microsoft External Staff Moderator
    2024-07-31T15:13:59.21+00:00

    Greetings!

    The "Access Denied (403) Forbidden" error typically occurs when there are incorrect credentials or inadequate permissions for accessing the AWS S3 bucket. Ensure that the IAM user or role associated with the S3 bucket has the necessary permissions. Here’s a step-by-step approach to resolve this issue:

    1. Verify IAM Permissions: Ensure that the IAM user or role used in the linked service configuration has the required permissions. You should have at least the following permissions:
      • s3:GetObject
      • s3:ListBucket
      • s3:PutObject
      For more details on the required permissions, refer to the official documentation: Azure Data Factory - Amazon S3 Connector
    2. Check Credentials: Ensure that the Access Key ID and Secret Access Key are correctly configured in the linked service for AWS S3 within Azure Data Factory.
    3. Test Connection: After verifying the permissions and credentials, use the "Test Connection" feature in the linked service configuration to ensure the connection is successful.
    4. Error Handling: If the connection test is successful, but you still encounter issues while running the pipeline, ensure that the file path specified is correct and that the files exist in the specified location.

    By following these steps, you should be able to resolve the "Access Denied (403) Forbidden" error and establish a successful connection between Azure Data Factory and AWS S3.

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.