- Newest
- Most votes
- Most comments
This error occurs because the workflow role doesn't have the necessary permissions to access the S3 target location or there's an issue with how the S3 location is being referenced in your blueprint configuration.
When creating a Lake Formation workflow using blueprints, there are several permissions and configuration requirements that need to be met:
-
Workflow Role Permissions: Ensure that the workflow role has the required Lake Formation permissions on both the target database and the Amazon S3 target location. The error "Unrecognized scheme null; expected s3, s3n, or s3a" suggests that the workflow is unable to properly access or recognize the S3 location.
-
S3 Location Registration: The target S3 location needs to be registered with Lake Formation. If it's not registered, the workflow won't be able to properly access it.
-
IAM Permissions: The workflow role needs the appropriate IAM permissions to access the S3 bucket, including s3:GetObject, s3:PutObject, and other relevant permissions.
-
Temporary Directory for Redshift: When working with Redshift as a source, you might need to specify a temporary directory in S3 where Redshift can store intermediate results. Make sure this is properly configured and the workflow role has access to it.
-
Data Location Permissions: Grant data location permissions on the target Amazon S3 location to the IAM role used for the workflow.
To resolve this issue:
- Verify that the S3 location is correctly formatted (should start with "s3://")
- Ensure the S3 location is registered with Lake Formation
- Check that the workflow role has the necessary Lake Formation permissions on both the database and S3 location
- Confirm that the workflow role has the required IAM permissions to access the S3 bucket
- If using Redshift, ensure any required temporary directories are properly configured
Since you mentioned that your Redshift connection is working, the issue is most likely related to the S3 target location configuration or permissions.
Sources
Creating a workflow - AWS Lake Formation
Ingestion layer - AWS Serverless Data Analytics Pipeline
Crawler errors when the crawler is using Lake Formation permissions - AWS Glue
Relevant content
- asked 3 years ago
