I’m wondering what’s the best way to share a S3 bucket (read and write access) with a third party.
They will be using it to provide us with some files on daily bases but I don’t want to create a user on our account.
Dispute AWS having very good and precise IAM policies I want to try and get them to authenticate without having to create a user and give them access to our AWS account.
What’s the best way to achieve this? Any thoughts?
That doesn’t sound too bad actually I didn’t think about cyberduck. Technical users can use the Cli and non technical people can use cyberduck and manage the files that way. I’ll give that a try.
If they have their own AWS account, you can use S3 bucket policies to share access to the bucket to principals from their account. (make them deal with their own user accounts and credentials). The S3 transfer service could be another option, it essentially turns the bucket to a filesystem available via SFTP. Other than that, I think you are stuck using an IAM user in your own account with only Access and Secret Keys, and properly scoped permissions.
You could look into presigned urls. Basically you generate presigned urls and distribute them to the third party, they can upload to these urls without requiring any credentials. You can set each url to expire in, for example, a day, so the third party does not need to hold on to any long term credentials, and you don’t need to worry about rotating them.
If they have an aws account, create a cross account role with their external ID for them in your account and give access to the s3 service only to the bucket in question.
Sharing access key and secret is not recommended, amazon suggests using temporary credentials by using roles. In this case create a cross account role and give access to the bucket required for their aws account (use along with external ID parameter). If they don’t have aws account use presigned url but it has a expiration time limitation.