<@U04S8PLJWMT> I dont have acess to create folder ...
# ask-ai
p
@kapa.ai I dont have acess to create folder in datlake in s3 can i create a connector to put data in the data lake with a path that has not been created
k
Yes, you can create an Airbyte connector to write data to a path in your S3 data lake even if that path (or "folder") does not already exist. In S3, "folders" are a logical concept—S3 will automatically create the necessary path structure when you write an object to a new path. Airbyte will create the required directories as part of the sync process, so you do not need to manually create the folder beforehand. However, you must have the necessary permissions to write to the target bucket and path. If your IAM user or role does not have permission to create objects (which includes creating new paths), the sync will fail. Make sure your policy allows actions like
s3:PutObject
and
s3:PutObjectAcl
on the relevant bucket and path. Example policies are provided in the Airbyte documentation for both the S3 and S3 Data Lake connectors, and they include the permissions required to create new objects (and thus new paths) in the bucket [Setup guide - S3](https://docs.airbyte.com/integrations/destinations/s3#s3), [Setup guide - S3 Data Lake](https://docs.airbyte.com/integrations/destinations/s3-data-lake#setup-guide). If you do not have permission to create objects in the desired path, you will need to request the necessary access from your AWS administrator.
p
@kapa.ai i m getting this User: arnawssts:232668690067assumed-role/AWSReservedSSO_Administrator-Offshore_afbd05830a43bc4d/piyushratna.shakya@abacusinsights.com is not authorized to perform: kms:GenerateDataKey on resource: arnawskmsus east 1232668690067:key/7447da7d-c003-45bd-ba03-8bdf4ae19a57 because no resource-based policy allows the kms:GenerateDataKey action
k
A message from kapa.ai
The error message you are seeing indicates that your IAM role does not have permission to perform the
kms:GenerateDataKey
action on the specified AWS KMS key. This permission is required when S3 buckets are configured to use server-side encryption with a customer-managed KMS key. Based on the available Airbyte documentation, Airbyte supports S3 server-side encryption with S3-managed keys (SSE-S3) out of the box, but does not support using customer-managed KMS keys for encryption at rest. Specifically, the documentation states: > We DO NOT support using [customer keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) or KMS. > — [Troubleshooting S3 Destinations](https://docs.airbyte.com/integrations/destinations/s3/s3-troubleshooting#troubleshooting-s3-destinations) If your S3 bucket is configured to require KMS encryption, Airbyte will not be able to write to it unless this restriction is removed or changed to use S3-managed keys. If you must use a KMS key, you would need to ensure your IAM role has the necessary permissions (
kms:GenerateDataKey
, etc.) on the KMS key, but please note that Airbyte's official documentation does not guarantee support for this setup. Summary: - Airbyte does not officially support S3 destinations encrypted with customer-managed KMS keys. - If you must use KMS, you need to update your KMS key policy to allow your IAM role to perform
kms:GenerateDataKey
, but this is not officially supported by Airbyte and may not work as expected. If possible, switch your S3 bucket encryption to use S3-managed keys (SSE-S3) for compatibility with Airbyte.