Can I integrate aws S3 with strapi without an IAM user?

System Information
  • Strapi version: 4.23.0
  • Operating System: macOS
  • Database: postgres (aws RDS)
  • Node Version: from node:20 base image; node: v20.14.0
  • NPM Version: 10.7.0
  • Yarn Version: /


I am trying to configure AWS S3 for file upload with strapi.

The problem is, I don’t have an IAM user, hence I am unable to provide credentials: accessKeyId and secretAccessKey.

The reason is that I am using a company provided federated identity with which I can provision aws resources and give them required permissions with roles but I cannot create IAM users.

So what I CAN do is, as we are hosting strapi on aws AppRunner (fully managed server), I give AppRunner permissions on the S3 bucket in hope that this will do the job.

But it does not seem to be working. I tried omitting the credentials part from the config and giving the values of ‘undefined’.

Is what I am trying to do even possible? Strapi s3 integraton without direct IAM role credentials?

Any guidance highly appreciated!

1 Like