I'm trying to create a S3 destination that writes ...
# ask-community-for-troubleshooting
r
I'm trying to create a S3 destination that writes to the root of a bucket. But since the
s3_bucket_path
variable is mandatory, I cant. 😢 Did I miss something ?
c
Does it work if you put "/" or leave empty?
r
I might need to retest it. But cant leave empty, and
/
gave me a path like
bucket//folder
, being
/
also a folder pretty weird that this is even allowed on s3 lol I'm just not sure if the extra
/
came from the
s3_bucket_path
or other field, but I had no other slash in the configs.
c
if you use the latest version of the s3 destination, the method
getBucketObjectPath
i m linking below should avoid doing things like
bucket//folder
pretty weird that this is even allowed on s3 lol
well i guess the connector does not allow that then… https://github.com/airbytehq/airbyte/blob/22f2206f0749d63855c376e8a5a567826e286e17[…]io/airbyte/integrations/destination/s3/S3StorageOperations.java
👍 1
btw, this makes me realize that setting your bucket path to
/
may be super dangerous (if you use full_refresh sync modes afterwards), see https://airbytehq-team.slack.com/archives/C01MFR03D5W/p1649146926653149?thread_ts=1649143378.677749&cid=C01MFR03D5W