- Newest
- Most votes
- Most comments
You're right that the documentation section about creating a role for Firehose to use S3 tables as a destination mentions an inline policy but doesn't provide the complete JSON policy example.
For a Firehose role that can access AWS Glue tables and write data to S3 tables, you need a policy that includes permissions for:
- AWS Glue operations (GetTable, GetDatabase, UpdateTable)
- S3 operations (AbortMultipartUpload, GetBucketLocation, GetObject, ListBucket, ListBucketMultipartUploads, PutObject)
- Lake Formation access (GetDataAccess)
Here's what the policy should include:
- Permissions to access Glue catalog, databases, and tables
- S3 bucket permissions for data delivery and error handling
- Lake Formation permissions for metadata reads and writes
- CloudWatch Logs permissions if error logging is enabled
- Lambda permissions if you're using Lambda for transformations
- KMS permissions if you're using encryption
The trust policy for the role should allow the Firehose service to assume the role:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sts:AssumeRole" ], "Principal": { "Service": [ "firehose.amazonaws.com" ] } } ] }
When creating the role in the IAM console, you can select "Kinesis" as the service and "Kinesis Firehose" as the use case, which will automatically create this trust policy.
Sources
Controlling access with Amazon Data Firehose - Amazon Data Firehose
Streaming data to tables with Amazon Data Firehose - Amazon Simple Storage Service
Error in connecting between Data Firehose and Glue ETL. Data format conversion error | AWS re:Post
Manage IAM roles through Amazon Data Firehose console - Amazon Data Firehose
Hello.
Until recently, the following document included an example of an IAM policy.
Please try the following IAM policy.
The example documentation below also lists access to Lambda, but if you're not using it you can remove it from your IAM policy.
https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-s3-tables
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "S3TableAccessViaGlueFederation",
"Effect": "Allow",
"Action": [
"glue:GetTable",
"glue:GetDatabase",
"glue:UpdateTable"
],
"Resource": [
"arn:aws:glue:ap-northeast-1:account-id:catalog/s3tablescatalog/*",
"arn:aws:glue:ap-northeast-1:account-id:catalog/s3tablescatalog",
"arn:aws:glue:ap-northeast-1:account-id:catalog",
"arn:aws:glue:ap-northeast-1:account-id:database/*",
"arn:aws:glue:ap-northeast-1:account-id:table/*/*"
]
},
{
"Sid": "S3DeliveryErrorBucketPermission",
"Effect": "Allow",
"Action": [
"s3:AbortMultipartUpload",
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket",
"s3:ListBucketMultipartUploads",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::*",
"arn:aws:s3:::*/*"
]
},
{
"Sid": "RequiredWhenDoingMetadataReadsANDDataAndMetadataWriteViaLakeformation",
"Effect": "Allow",
"Action": [
"lakeformation:GetDataAccess"
],
"Resource": "*"
},
{
"Sid": "LoggingInCloudWatch",
"Effect": "Allow",
"Action": [
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:ap-northeast-1:account-id:log-group:*:log-stream:log-*"
]
}
]
}
Relevant content
asked 2 years ago
asked 2 years ago

Thank you. off-topic but I noticed that Lake formation "Super" table permission is also required for firehouse to work properly. but that doesn't seem right. It doesn't work if I just provide Table permissions = Select, Insert, Describe, Alter (Excluding delete and drop).
"Error: Access was denied. Ensure that right permission for the resource is defined in Lakeformation end." is shown by firehose apparently if it doesn't have super table permissions via lake formation.
Note that my firehose is just configured for inserting data.